diff --git a/data-extraction/package.json b/data-extraction/package.json index a88c6b8..d483c40 100644 --- a/data-extraction/package.json +++ b/data-extraction/package.json @@ -3,7 +3,7 @@ "description": "A library that helps implementing data extractors for the Debug Visualizer VS Code extension.", "version": "0.12.0", "main": "dist/index.js", - "types": "dist/src/index.d.ts", + "types": "dist/index.d.ts", "author": { "name": "Henning Dieterichs", "email": "henning.dieterichs@live.de" diff --git a/data-extraction/test/tsconfig.json b/data-extraction/test/tsconfig.json new file mode 100644 index 0000000..90a8e7e --- /dev/null +++ b/data-extraction/test/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "commonjs", + "strict": true, + "skipLibCheck": true, + "rootDir": "./", + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "newLine": "LF", + "sourceMap": true, + "noEmit": true + }, + "include": ["./**/*"] +} diff --git a/data-extraction/tsconfig.json b/data-extraction/tsconfig.json index ba0b7a4..3bcd10e 100644 --- a/data-extraction/tsconfig.json +++ b/data-extraction/tsconfig.json @@ -5,12 +5,12 @@ "strict": true, "outDir": "./dist", "skipLibCheck": true, - "rootDir": ".", + "rootDir": "./src", "resolveJsonModule": true, "declaration": true, "declarationMap": true, "newLine": "LF", "sourceMap": true }, - "include": ["./src/**/*", "./test/**/*"] + "include": ["./src/**/*"] } diff --git a/data-extraction/webpack.config.ts b/data-extraction/webpack.config.ts index b830d08..d8912b9 100644 --- a/data-extraction/webpack.config.ts +++ b/data-extraction/webpack.config.ts @@ -36,7 +36,7 @@ module.exports = { }, plugins: [ new CleanWebpackPlugin({ - protectWebpackAssets: true, + //protectWebpackAssets: true, cleanAfterEveryBuildPatterns: ["!**/*.d.ts", "!**/*.d.ts.map"], }), ], diff --git a/webview/src/model/MonacoBridge.ts b/webview/src/model/MonacoBridge.ts index 55d9ee3..10207f1 100644 --- a/webview/src/model/MonacoBridge.ts +++ b/webview/src/model/MonacoBridge.ts @@ -31,7 +31,7 @@ export class MonacoBridge { const es5Lib = require("!!raw-loader!./lib.es5.d.ts.txt").default; const commonTypes = require.context( - "!!raw-loader!@hediet/debug-visualizer-data-extraction/dist/src/", + "!!raw-loader!@hediet/debug-visualizer-data-extraction/dist/", true, /.*.d.ts$/ );