Skip to content

Commit b47ff20

Browse files
authored
Merge pull request #159 from simplito/build/tsconfig-ide-build-split
build(config): split tsconfig into IDE config and dedicated production compile
2 parents 862641a + 3e2dad8 commit b47ff20

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"build:wasm": "scripts/pipeline.sh",
4444
"build:js": "npm run compile && npm run bundle && npm run build:worker && cp ./dist/assets/* ./assets/ && cp ./dist/bundle/rms-processor.js ./assets/",
4545
"build:worker": "webpack --config ./webpack.worker.config.js",
46-
"compile": "tsc",
46+
"compile": "tsc --project tsconfig.build.json",
4747
"bundle": "webpack",
48-
"watch:types": "tsc -w",
48+
"watch:types": "tsc -w --project tsconfig.build.json",
4949
"test:e2e": "playwright test --project=chromium",
5050
"test:e2e:manybrowsers": "playwright test",
5151
"lint": "eslint -c eslint.config.mjs .",

tsconfig.build.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"],
4+
"exclude": ["node_modules", "dist", "**/__tests__", "**/__mocks__"]
5+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"skipLibCheck": true
3131
},
3232
"include": ["src"],
33-
"exclude": ["node_modules", "dist", "**/__tests__", "**/__mocks__"]
33+
"exclude": ["node_modules", "dist"]
3434
}

tsconfig.test.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"allowJs": true
5-
}
4+
"allowJs": true,
5+
"types": ["jest", "node"]
6+
},
7+
"include": ["src"],
8+
"exclude": ["node_modules", "dist"]
69
}

0 commit comments

Comments
 (0)