diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..4ff61fa1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "path-intellisense.mappings": { + "@main/*": "${workspaceFolder}/src/main/*", + "@renderer/*": "${workspaceFolder}/src/renderer/*", + "@lyric/*": "${workspaceFolder}/src/renderer-lyric/*", + "@static/*": "${workspaceFolder}/src/static/*", + "@common/*": "${workspaceFolder}/src/common/*", + } +} diff --git a/jsconfig.json b/jsconfig.json index aa3964b1..ca2d0131 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,19 +1,13 @@ { "compilerOptions": { - "module": "commonjs", - "target": "es6", - // This is the line you want to add - "allowSyntheticDefaultImports": true, - - "baseUrl": ".", + "baseUrl": "./", "paths": { - "@main": ["src/main"], - "@renderer": ["src/renderer"], - "@lyric": ["src/renderer-lyric"], - "@static": ["src/static"], - "@common": ["src/common"], + "@main/*": ["src/main/*"], + "@renderer/*": ["src/renderer/*"], + "@lyric/*": ["src/renderer-lyric/*"], + "@static/*": ["src/static/*"], + "@common/*": ["src/common/*"], } }, - "include": ["src/**/*"], - "exclude": ["node_modules/**/*"] + "exclude": ["node_modules", "build", "dist"] }