Skip to content
2 changes: 2 additions & 0 deletions .changeset/cold-webs-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
12 changes: 2 additions & 10 deletions apps/themebuilder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,14 @@
],
"exclude": ["**/dist/**/*"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": ["node", "vite/client", "../../internal/digdir/themes/types.d.ts"],
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"rootDirs": [".", "./.react-router/types"],
// Required for ~/ path alias resolution — do not remove
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
"verbatimModuleSyntax": true
}
}
14 changes: 3 additions & 11 deletions apps/www/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,19 @@
],
"exclude": ["**/dist/**/*"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"types": [
"node",
"vite/client",
"@digdir/designsystemet-react/react-types",
"../../internal/digdir/themes/types.d.ts"
],
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"rootDirs": [".", "./.react-router/types"],
// Required for ~/ path alias resolution — do not remove
"baseUrl": ".",
"rootDirs": [".", "./.react-router/types"],
"paths": {
"~/*": ["./app/*"]
},
"esModuleInterop": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
"verbatimModuleSyntax": true
}
}
4 changes: 0 additions & 4 deletions internal/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"extends": "../../tsconfig.base.json",
"rootDir": "./src",
"compilerOptions": {
"outDir": "./tsc-build",
"declarationDir": "./dist/types",
"emitDeclarationOnly": false,
"composite": false,
"jsx": "react",
"allowSyntheticDefaultImports": true,
"noEmit": false,
"incremental": true,
"moduleResolution": "Bundler",
"types": [
"@digdir/designsystemet-css/theme",
"./declarations.d.ts",
Expand Down
3 changes: 0 additions & 3 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
"rootDir": "./",
"outDir": "./dist",
"composite": false,
"allowSyntheticDefaultImports": true,
"emitDeclarationOnly": false,
"noEmit": false,
"esModuleInterop": true,
"resolveJsonModule": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"sourceMap": false,
Expand Down
2 changes: 0 additions & 2 deletions packages/react/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./tsc-build",
"allowSyntheticDefaultImports": true,
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"incremental": true,
"types": [
"./declarations.d.ts",
"./react-types.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/react/tsconfig.stories.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
"compilerOptions": {
"rootDir": "../../",
"outDir": "./tsc-build",
"allowSyntheticDefaultImports": true,
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"incremental": true,
"types": [
"./declarations.d.ts",
"./react-types.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/react/tsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"incremental": true,
"types": [
"@testing-library/jest-dom",
"vitest/globals",
Expand Down
4 changes: 1 addition & 3 deletions packages/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"incremental": true
"emitDeclarationOnly": true
},
"include": ["src"]
}
2 changes: 0 additions & 2 deletions packages/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"compilerOptions": {
"noEmit": false,
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true,
"outDir": "dist/esm",
"composite": true
},
Expand Down
2 changes: 0 additions & 2 deletions packages/web/tsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./tsc-build",
"allowSyntheticDefaultImports": true,
"composite": true,
"noEmit": true,
"types": ["@testing-library/jest-dom", "vitest/globals"]
},
"include": ["src/**/*.test.ts*", "../../test/vitest.d.ts"],
Expand Down
Loading