Skip to content

Commit 6fcdc10

Browse files
authored
refactor [NET-1644]: Clean-up tsconfigs for the browser-test-runner package (#3268)
This pull request updates the TypeScript build and lint configuration for the `browser-test-runner` package to use the main `tsconfig.json` instead of `tsconfig.node.json`. It also adds a new script for type-checking without emitting output. ### Changes **Build and TypeScript configuration updates:** * Changed the ESLint TypeScript parser configuration in `eslint.config.mjs` to use `tsconfig.json` instead of `tsconfig.node.json` for project references. * Updated the `build` script in `package.json` to use the default `tsconfig.json` and added a `check` script for running TypeScript type checks without emitting files.
1 parent b92286b commit 6fcdc10

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/browser-test-runner/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default [
1717
process: 'readonly'
1818
},
1919
parserOptions: {
20-
project: ['./tsconfig.node.json'],
20+
project: ['./tsconfig.json'],
2121
tsconfigRootDir: __dirname
2222
}
2323
}

packages/browser-test-runner/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"./dist/src/exports.js": false
1414
},
1515
"scripts": {
16-
"build": "tsc -b tsconfig.node.json",
16+
"build": "tsc -b",
17+
"check": "tsc --noEmit",
1718
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '**/*.{js,ts}'"
1819
},
1920
"author": "Streamr Network AG <[email protected]>",
File renamed without changes.

0 commit comments

Comments
 (0)