@gamedev-sensei/ts-config 1.1.2 → 2.0.1
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/README.md +0 -21
- package/package.json +1 -1
- package/tsconfig.json +8 -0
package/README.md
CHANGED
|
@@ -6,27 +6,6 @@ We recommend extending:
|
|
|
6
6
|
* `@gamedev-sensei/ts-config/tsconfig.json` for plain typescript packages
|
|
7
7
|
* `@gamedev-sensei/ts-config/react.tsconfig.json` for react 18+ packages
|
|
8
8
|
|
|
9
|
-
## tsup
|
|
10
|
-
|
|
11
|
-
Due to bug a bug in the tsup package, `@` alias will not work properly.
|
|
12
|
-
You can work around it, by applying the patch below to the tsup@8.5.0:
|
|
13
|
-
```
|
|
14
|
-
diff --git a/node_modules/tsup/dist/rollup.js b/node_modules/tsup/dist/rollup.js
|
|
15
|
-
index 65df1bf..f32a5d5 100644
|
|
16
|
-
--- a/node_modules/tsup/dist/rollup.js
|
|
17
|
-
+++ b/node_modules/tsup/dist/rollup.js
|
|
18
|
-
@@ -6717,7 +6717,7 @@ var parseCompilerOptions = (compilerOptions) => {
|
|
19
|
-
const { options } = _typescript2.default.parseJsonConfigFileContent(
|
|
20
|
-
{ compilerOptions },
|
|
21
|
-
_typescript2.default.sys,
|
|
22
|
-
- "./"
|
|
23
|
-
+ _path2.default.resolve("./")
|
|
24
|
-
);
|
|
25
|
-
return options;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
|
|
30
9
|
## Installation
|
|
31
10
|
|
|
32
11
|
Yarn:
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -11,6 +11,14 @@
|
|
|
11
11
|
"moduleResolution": "bundler",
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"isolatedModules": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"noImplicitAny": true,
|
|
16
|
+
"noImplicitOverride": true,
|
|
17
|
+
"noImplicitReturns": true,
|
|
18
|
+
"noImplicitThis": true,
|
|
19
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
20
|
+
"noUncheckedIndexedAccess": true,
|
|
21
|
+
"useUnknownInCatchVariables": true,
|
|
14
22
|
"outDir": "${configDir}/dist",
|
|
15
23
|
"paths": { "@/*": ["${configDir}/src/*"] }
|
|
16
24
|
},
|