@codecompose/typescript-config 2.0.1 → 2.1.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -6
- package/src/base.json +10 -2
- package/src/library.json +1 -3
- package/src/nextjs.json +1 -3
- package/src/react-library.json +1 -5
- package/src/shared-library.json +2 -1
- package/src/shared-react-library.json +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecompose/typescript-config",
|
|
3
3
|
"description": "Opinionated reusable TypeScript configurations",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0-0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Thijs Koerselman",
|
|
7
7
|
"publishConfig": {
|
|
@@ -31,9 +31,5 @@
|
|
|
31
31
|
"./shared-library": "./src/shared-library.json",
|
|
32
32
|
"./shared-react-library": "./src/shared-react-library.json"
|
|
33
33
|
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"eslint": "^8.57.0",
|
|
36
|
-
"prettier": "^3.3.3",
|
|
37
|
-
"prettier-plugin-jsdoc": "^1.3.0"
|
|
38
|
-
}
|
|
34
|
+
"devDependencies": {}
|
|
39
35
|
}
|
package/src/base.json
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"noUncheckedIndexedAccess": true,
|
|
19
19
|
"noImplicitOverride": true,
|
|
20
20
|
|
|
21
|
+
/* Assuming bundler will output EVERYTHING. You'll need a modern bundler
|
|
22
|
+
like tsdown to output declarationMaps for shared monorepo libraries. */
|
|
23
|
+
"noEmit": true,
|
|
21
24
|
/* Opinion */
|
|
22
25
|
"incremental": true,
|
|
23
26
|
"tsBuildInfoFile": "${configDir}/tsconfig.tsbuildinfo",
|
|
@@ -26,9 +29,14 @@
|
|
|
26
29
|
"baseUrl": "${configDir}",
|
|
27
30
|
"rootDir": "${configDir}/src",
|
|
28
31
|
"paths": {
|
|
29
|
-
"~/*": ["./src/*"]
|
|
32
|
+
"~/*": ["./src/*"],
|
|
33
|
+
"@/*": ["./src/*"]
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
"include": ["${configDir}/src", "${configDir}/src/**/*.json"],
|
|
33
|
-
"exclude": [
|
|
37
|
+
"exclude": [
|
|
38
|
+
"${configDir}/node_modules",
|
|
39
|
+
"${configDir}/dist",
|
|
40
|
+
"${configDir}/isolate"
|
|
41
|
+
]
|
|
34
42
|
}
|
package/src/library.json
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
"display": "Standalone shared library",
|
|
4
4
|
"extends": "./base.json",
|
|
5
5
|
"compilerOptions": {
|
|
6
|
-
/*
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true
|
|
6
|
+
/* Assuming your bundler will output declaration and declarationMap */
|
|
9
7
|
}
|
|
10
8
|
}
|
package/src/nextjs.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
"jsx": "preserve", // next does its own jsx transformation
|
|
7
7
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
8
|
-
"noEmit": true,
|
|
9
8
|
"rootDir": "${configDir}", // nextjs targets files outside of src in root as well
|
|
10
9
|
"plugins": [
|
|
11
10
|
{
|
|
@@ -18,6 +17,5 @@
|
|
|
18
17
|
"${configDir}/**/*.json",
|
|
19
18
|
"${configDir}/next-env.d.ts",
|
|
20
19
|
"${configDir}/.next/types/**/*.ts"
|
|
21
|
-
]
|
|
22
|
-
"exclude": ["${configDir}/node_modules"]
|
|
20
|
+
]
|
|
23
21
|
}
|
package/src/react-library.json
CHANGED
package/src/shared-library.json
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
"display": "Monorepo shared library",
|
|
4
4
|
"extends": "./library.json",
|
|
5
5
|
"compilerOptions": {
|
|
6
|
-
/*
|
|
6
|
+
/* Required for project references, which provide go-to-definition in your IDE without first having to build the module, which is essential during development. */
|
|
7
7
|
"composite": true
|
|
8
|
+
/* Assuming your bundler will output type declarations and declaration-maps */
|
|
8
9
|
}
|
|
9
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"display": "Monorepo shared React component library",
|
|
4
4
|
"extends": "./react-library.json",
|
|
5
5
|
"compilerOptions": {
|
|
6
|
-
/*
|
|
7
|
-
"composite": true
|
|
8
|
-
|
|
6
|
+
/* Required for project references, which provide go-to-definition in your IDE without first having to build the module, which is essential during development. */
|
|
7
|
+
"composite": true
|
|
8
|
+
/* Assuming your bundler will output type declarations and declaration-maps */
|
|
9
9
|
}
|
|
10
10
|
}
|