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. */