diff --git a/package.json b/package.json index d00ca53..6a92254 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,9 @@ "build:wasm": "scripts/pipeline.sh", "build:js": "npm run compile && npm run bundle && npm run build:worker && cp ./dist/assets/* ./assets/ && cp ./dist/bundle/rms-processor.js ./assets/", "build:worker": "webpack --config ./webpack.worker.config.js", - "compile": "tsc", + "compile": "tsc --project tsconfig.build.json", "bundle": "webpack", - "watch:types": "tsc -w", + "watch:types": "tsc -w --project tsconfig.build.json", "test:e2e": "playwright test --project=chromium", "test:e2e:manybrowsers": "playwright test", "lint": "eslint -c eslint.config.mjs .", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..5ee44e7 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src"], + "exclude": ["node_modules", "dist", "**/__tests__", "**/__mocks__"] +} diff --git a/tsconfig.json b/tsconfig.json index 8f7513f..6cfab46 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,5 +30,5 @@ "skipLibCheck": true }, "include": ["src"], - "exclude": ["node_modules", "dist", "**/__tests__", "**/__mocks__"] + "exclude": ["node_modules", "dist"] } \ No newline at end of file diff --git a/tsconfig.test.json b/tsconfig.test.json index 1809033..c0a7af4 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "allowJs": true - } + "allowJs": true, + "types": ["jest", "node"] + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] }