From b2fc5a3a695bdc0f40787e1a02acc70a5fa1502d Mon Sep 17 00:00:00 2001 From: lanyi Date: Mon, 4 Jan 2021 05:39:08 +0100 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9=E8=B0=83=E8=AF=95=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E4=B8=80=E7=82=B9=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .vscode/launch.json | 21 +++++++++++++++++++++ package.json | 2 +- tsconfig.json | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 019d1f7..a7b15db 100644 --- a/.gitignore +++ b/.gitignore @@ -116,4 +116,5 @@ dist .pnp.* *.js +*.js.map mybotconfig.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..27adb84 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\index.js", + "args": ["-c", "mybotconfig.json"], + "outFiles": [ + "${workspaceFolder}/**/*.js" + ] + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index f639f1d..30b6c5a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "lanyi-forward-bot", "version": "0.0.1", "description": "用来在 mirai 上跨群转发消息的机器人,虽然很可能已经有人写了但反正我就是想试试!", - "main": "index.ts", + "main": "index.js", "dependencies": { "async-mutex": "^0.2.6", "mirai-ts": "^0.8.1", diff --git a/tsconfig.json b/tsconfig.json index 40c7205..43f54ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ // "declaration": true, /* Generates corresponding '.d.ts' file. */ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ // "outDir": "./", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */