@aryaemami59/tsconfig 0.0.6 → 0.0.8

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +75 -143
  3. package/scripts/build.ts +192 -182
  4. package/scripts/typeHelpers.ts +17 -11
  5. package/scripts/types.ts +302 -157
  6. package/src/bundler/commonjs/tsconfig.json +8 -0
  7. package/src/bundler/commonjs/with-js/tsconfig.json +9 -0
  8. package/src/bundler/esnext/tsconfig.json +1 -1
  9. package/src/bundler/preserve/tsconfig.json +1 -1
  10. package/src/create-react-app/tsconfig.json +2 -2
  11. package/src/node/commonjs/tsconfig.json +30 -0
  12. package/src/node/commonjs/with-js/tsconfig.json +9 -0
  13. package/src/node/{with-js → esnext/with-js}/tsconfig.json +1 -1
  14. package/src/node-10/commonjs/tsconfig.json +8 -0
  15. package/src/node-10/commonjs/with-js/tsconfig.json +9 -0
  16. package/src/node-10/{tsconfig.json → esnext/tsconfig.json} +1 -1
  17. package/src/node-10/{with-js → esnext/with-js}/tsconfig.json +1 -1
  18. package/src/node-16/{tsconfig.json → node16/tsconfig.json} +1 -1
  19. package/src/node-16/{with-js → node16/with-js}/tsconfig.json +1 -1
  20. package/src/node-16/node18/tsconfig.json +9 -0
  21. package/src/node-16/node18/with-js/tsconfig.json +9 -0
  22. package/src/node-16/node20/tsconfig.json +9 -0
  23. package/src/node-16/node20/with-js/tsconfig.json +9 -0
  24. package/src/node-next/node18/tsconfig.json +9 -0
  25. package/src/node-next/node18/with-js/tsconfig.json +9 -0
  26. package/src/node-next/node20/tsconfig.json +9 -0
  27. package/src/node-next/node20/with-js/tsconfig.json +9 -0
  28. package/src/node-next/{tsconfig.json → nodenext/tsconfig.json} +1 -1
  29. package/src/node-next/{with-js → nodenext/with-js}/tsconfig.json +1 -1
  30. /package/src/node/{tsconfig.json → esnext/tsconfig.json} +0 -0
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "@aryaemami59/tsconfig/node",
3
2
  "$schema": "https://json.schemastore.org/tsconfig",
4
3
  "compilerOptions": {
5
4
  "allowJs": true,
@@ -9,5 +8,6 @@
9
8
  "target": "es5",
10
9
  "types": null
11
10
  },
12
- "display": "TypeScript configuration for `create-react-app` projects"
11
+ "display": "TypeScript configuration for `create-react-app` projects",
12
+ "extends": "@aryaemami59/tsconfig/node/esnext"
13
13
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowSyntheticDefaultImports": true,
5
+ "declaration": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "isolatedModules": true,
9
+ "jsx": "react",
10
+ "lib": ["DOM", "ESNext"],
11
+ "module": "commonjs",
12
+ "moduleDetection": "force",
13
+ "moduleResolution": "node",
14
+ "noEmit": false,
15
+ "noEmitOnError": true,
16
+ "noErrorTruncation": true,
17
+ "noFallthroughCasesInSwitch": true,
18
+ "noImplicitOverride": true,
19
+ "noImplicitReturns": true,
20
+ "resolveJsonModule": true,
21
+ "skipLibCheck": true,
22
+ "sourceMap": true,
23
+ "strict": true,
24
+ "target": "esnext",
25
+ "types": ["node"],
26
+ "useDefineForClassFields": true,
27
+ "useUnknownInCatchVariables": true
28
+ },
29
+ "display": "TypeScript configuration with module set to `commonjs` and module resolution set to `node`, intended for TypeScript versions earlier than 5.0."
30
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `commonjs`, module resolution set to `node`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/node/commonjs"
9
+ }
@@ -5,5 +5,5 @@
5
5
  "checkJs": true
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `esnext`, module resolution set to `node`, and JavaScript files support enabled",
8
- "extends": "@aryaemami59/tsconfig/node"
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "moduleResolution": "node10"
5
+ },
6
+ "display": "TypeScript configuration with module set to `commonjs` and module resolution set to `node10`. It serves as a backwards compatible replacement for the deprecated `node` module resolution.",
7
+ "extends": "@aryaemami59/tsconfig/node/commonjs"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `commonjs`, module resolution set to `node10`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/node10/commonjs"
9
+ }
@@ -4,5 +4,5 @@
4
4
  "moduleResolution": "node10"
5
5
  },
6
6
  "display": "TypeScript configuration with module set to `esnext` and module resolution set to `node10`. It serves as a backwards compatible replacement for the deprecated `node` module resolution.",
7
- "extends": "@aryaemami59/tsconfig/node"
7
+ "extends": "@aryaemami59/tsconfig/node/esnext"
8
8
  }
@@ -5,5 +5,5 @@
5
5
  "checkJs": true
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `esnext`, module resolution set to `node10`, and JavaScript files support enabled",
8
- "extends": "@aryaemami59/tsconfig/node-10"
8
+ "extends": "@aryaemami59/tsconfig/node10/esnext"
9
9
  }
@@ -5,5 +5,5 @@
5
5
  "moduleResolution": "node16"
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `node16` and module resolution set to `node16`",
8
- "extends": "@aryaemami59/tsconfig/node"
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
9
  }
@@ -5,5 +5,5 @@
5
5
  "checkJs": true
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `node16`, module resolution set to `node16`, and JavaScript files support enabled",
8
- "extends": "@aryaemami59/tsconfig/node-16"
8
+ "extends": "@aryaemami59/tsconfig/node16/node16"
9
9
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "node18",
5
+ "moduleResolution": "node16"
6
+ },
7
+ "display": "TypeScript configuration with module set to `node18` and module resolution set to `node16`",
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `node18`, module resolution set to `node16`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/node16/node18"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "node20",
5
+ "moduleResolution": "node16"
6
+ },
7
+ "display": "TypeScript configuration with module set to `node20` and module resolution set to `node16`",
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `node20`, module resolution set to `node16`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/node16/node20"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "node18",
5
+ "moduleResolution": "nodenext"
6
+ },
7
+ "display": "TypeScript configuration with module set to `node18` and module resolution set to `nodenext`",
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `node18`, module resolution set to `nodenext`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/nodenext/node18"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "node20",
5
+ "moduleResolution": "nodenext"
6
+ },
7
+ "display": "TypeScript configuration with module set to `node20` and module resolution set to `nodenext`",
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `node20`, module resolution set to `nodenext`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/nodenext/node20"
9
+ }
@@ -5,5 +5,5 @@
5
5
  "moduleResolution": "nodenext"
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `nodenext` and module resolution set to `nodenext`",
8
- "extends": "@aryaemami59/tsconfig/node"
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
9
  }
@@ -5,5 +5,5 @@
5
5
  "checkJs": true
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `nodenext`, module resolution set to `nodenext`, and JavaScript files support enabled",
8
- "extends": "@aryaemami59/tsconfig/node-next"
8
+ "extends": "@aryaemami59/tsconfig/nodenext/nodenext"
9
9
  }