Cleaned up tsconfig.json a bit ( moved tsnode config to own file ).
Fixed breakpoints for all modules under tsnode
This commit is contained in:
parent
e89a2ee2f1
commit
a396a41a0e
10
bundle/.vscode/launch.json
vendored
10
bundle/.vscode/launch.json
vendored
@ -5,6 +5,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
|
"sourceMaps": true,
|
||||||
"name": "ts-node",
|
"name": "ts-node",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
@ -15,9 +16,12 @@
|
|||||||
"-r",
|
"-r",
|
||||||
"ts-node/register"
|
"ts-node/register"
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
"protocol": "inspector",
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
"internalConsoleOptions": "openOnSessionStart",
|
||||||
|
"env": {
|
||||||
|
"TS_NODE_PROJECT": "${workspaceFolder}/tsnode.tsconfig.json",
|
||||||
|
},
|
||||||
|
"resolveSourceMapLocations": null, /* allow breakpoints in modules other than bundle */
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"sourceMaps": true,
|
"sourceMaps": true,
|
||||||
@ -27,7 +31,7 @@
|
|||||||
"program": "${workspaceFolder}/dist/bundle/src/start.js",
|
"program": "${workspaceFolder}/dist/bundle/src/start.js",
|
||||||
"preLaunchTask": "tsc: build - tsconfig.json",
|
"preLaunchTask": "tsc: build - tsconfig.json",
|
||||||
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
|
||||||
"envFile": "${workspaceFolder}/.env"
|
"envFile": "${workspaceFolder}/.env",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,6 @@
|
|||||||
"@babel/preset-typescript": "^7.15.0",
|
"@babel/preset-typescript": "^7.15.0",
|
||||||
"@fosscord/api": "file:../api",
|
"@fosscord/api": "file:../api",
|
||||||
"@fosscord/cdn": "file:../cdn",
|
"@fosscord/cdn": "file:../cdn",
|
||||||
"@fosscord/util": "file:../util",
|
|
||||||
"@fosscord/gateway": "file:../gateway",
|
"@fosscord/gateway": "file:../gateway",
|
||||||
"@sentry/node": "^6.16.1",
|
"@sentry/node": "^6.16.1",
|
||||||
"@sentry/tracing": "^6.16.1",
|
"@sentry/tracing": "^6.16.1",
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
{
|
{
|
||||||
"include": ["dist/**/*.ts"],
|
"include": ["dist/**/*.ts"],
|
||||||
"exclude": [],
|
"exclude": [],
|
||||||
"ts-node": {
|
|
||||||
"transpileOnly": true,
|
|
||||||
"preferTsExts": true,
|
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "../",
|
|
||||||
"baseUrl": ".",
|
|
||||||
},
|
|
||||||
"require": ["tsconfig-paths/register"]
|
|
||||||
},
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||||
|
|
||||||
@ -83,10 +74,10 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"baseUrl": "./dist/",
|
"baseUrl": "./dist/",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@fosscord/api": ["api/src/index", "../../api/src/index"],
|
"@fosscord/api": ["api/src/index"],
|
||||||
"@fosscord/gateway": ["gateway/src/index", "../../gateway/src/index"],
|
"@fosscord/gateway": ["gateway/src/index"],
|
||||||
"@fosscord/cdn": ["cdn/src/index", "../../cdn/src/index"],
|
"@fosscord/cdn": ["cdn/src/index"],
|
||||||
"@fosscord/util": ["util/src/index", "../../util/src/index"]
|
"@fosscord/util": ["util/src/index"]
|
||||||
},
|
},
|
||||||
"plugins": [{ "transform": "@zerollup/ts-transform-paths" }],
|
"plugins": [{ "transform": "@zerollup/ts-transform-paths" }],
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
|
14
bundle/tsnode.tsconfig.json
Normal file
14
bundle/tsnode.tsconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"ts-node": {
|
||||||
|
"transpileOnly": true,
|
||||||
|
"preferTsExts": true,
|
||||||
|
"require": ["tsconfig-paths/register"]
|
||||||
|
},
|
||||||
|
"compilerOptions": {
|
||||||
|
"rootDir": "../",
|
||||||
|
"baseUrl": "../",
|
||||||
|
"sourceRoot": "../",
|
||||||
|
"sourceMap": true,
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user