From 7f46192758c06f532599a7442e880e853eef652a Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Wed, 28 Apr 2021 18:44:11 +0100 Subject: [PATCH] * Don't package .map files into final NPM package * Support sourceMaps in tsconfig * Support launch file for debugging * show lib directory --- .npmignore | 2 +- .vscode/launch.json | 13 +++++++++++++ .vscode/settings.json | 3 +-- tsconfig.json | 3 ++- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.npmignore b/.npmignore index f008484..2dc5299 100644 --- a/.npmignore +++ b/.npmignore @@ -3,7 +3,7 @@ node_modules/ *.swp *.swo .DS_Store -*.log +*.map log.txt test-workspace diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cf428f6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "attach", + "name": "Debug Styled Plugin", + "skipFiles": ["/**"], + "outFiles": ["${workspaceFolder}/lib/**/*.js"], + "port": 9229 + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 8760365..f126580 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,7 +5,6 @@ "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, - "lib": true, "**/*.log": true } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 8cc54b9..56d7e3a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,8 @@ "outDir": "lib", "rootDir": "src", "strict": true, - "declaration": true + "declaration": true, + "sourceMap": true }, "exclude": ["lib", "e2e", "node_modules", "test-workspace"] }