@w0s/tsconfig 1.7.0 → 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 CHANGED
@@ -3,12 +3,21 @@
3
3
  [![npm version](https://badge.fury.io/js/%40w0s%2Ftsconfig.svg)](https://www.npmjs.com/package/@w0s/tsconfig)
4
4
  [![Workflow status](https://github.com/SaekiTominaga/w0s/actions/workflows/typescript.yml/badge.svg)](https://github.com/SaekiTominaga/w0s/actions/workflows/typescript.yml)
5
5
 
6
- [TSConfig](https://www.typescriptlang.org/tsconfig) file used on my personal website ([w0s.jp](https://github.com/SaekiTominaga/w0s.jp)).
6
+ [TSConfig](https://www.typescriptlang.org/tsconfig) file used on my personal website ([`w0s.jp`](https://github.com/SaekiTominaga/w0s.jp)).
7
7
 
8
8
  ## Usage
9
9
 
10
10
  ```json
11
11
  {
12
- "extends": "@w0s/tsconfig"
12
+ "extends": "@w0s/tsconfig(/bundler|/node)?"
13
13
  }
14
14
  ```
15
+
16
+ <dl>
17
+ <dt><code>@w0s/tsconfig</code></dt>
18
+ <dd>The <code><a href="https://www.typescriptlang.org/tsconfig/#module">module</a></code> and <code><a href="https://www.typescriptlang.org/tsconfig/#moduleResolution">moduleResolution</a></code> settings are not included.</dd>
19
+ <dt><code>@w0s/tsconfig/bundler</code></dt>
20
+ <dd>For use with bundlers.</dd>
21
+ <dt><code>@w0s/tsconfig/node</code></dt>
22
+ <dd>For Node.js projects.</dd>
23
+ </dl>
package/package.json CHANGED
@@ -1,25 +1,31 @@
1
1
  {
2
2
  "name": "@w0s/tsconfig",
3
- "version": "1.7.0",
4
- "description": "TSConfig file used on w0s.jp",
3
+ "version": "2.0.1",
4
+ "description": "TSConfig file used on `w0s.jp`",
5
5
  "keywords": [
6
6
  "tsconfig"
7
7
  ],
8
- "license": "MIT",
9
- "author": "Saeki Tominaga",
10
- "files": [],
11
- "type": "module",
12
- "main": "tsconfig.json",
13
8
  "repository": {
14
9
  "type": "git",
15
10
  "url": "git+https://github.com/SaekiTominaga/config.git"
16
11
  },
12
+ "license": "MIT",
13
+ "author": "Saeki Tominaga",
14
+ "type": "module",
15
+ "exports": {
16
+ ".": "./tsconfig.json",
17
+ "./*": "./tsconfig-*.json"
18
+ },
19
+ "files": [
20
+ "tsconfig.json",
21
+ "tsconfig-*.json"
22
+ ],
17
23
  "scripts": {
18
- "test": "tsc --project __tests__/tsconfig-valid.json",
19
- "test-invalid": "tsc --project __tests__/tsconfig-invalid.json"
24
+ "test": "tsc -p __tests__/tsconfig-valid.json",
25
+ "test:invalid": "tsc -p __tests__/tsconfig-invalid.json"
20
26
  },
21
27
  "devDependencies": {
22
- "typescript": "^5.9.2"
28
+ "typescript": "^5.9.3"
23
29
  },
24
30
  "peerDependencies": {
25
31
  "typescript": "^5.8.0"
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ /* Modules */
5
+ "module": "es2022",
6
+ "moduleResolution": "bundler"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ /* Modules */
5
+ "module": "node18",
6
+ "moduleResolution": "node16"
7
+ }
8
+ }
package/tsconfig.json CHANGED
@@ -1,40 +1,37 @@
1
- {
2
- "compilerOptions": {
3
- /* Type Checking */
4
- "allowUnreachableCode": false,
5
- "allowUnusedLabels": false,
6
- "alwaysStrict": false,
7
- "exactOptionalPropertyTypes": true,
8
- "noFallthroughCasesInSwitch": true,
9
- "noImplicitOverride": true,
10
- "noImplicitReturns": true,
11
- "noPropertyAccessFromIndexSignature": true,
12
- "noUncheckedIndexedAccess": true,
13
- "noUnusedLocals": true,
14
- "noUnusedParameters": true,
15
- "strict": true,
16
-
17
- /* Modules */
18
- "module": "node18",
19
- "moduleResolution": "node16",
20
- "rewriteRelativeImportExtensions": true,
21
-
22
- /* Emit */
23
- "newLine": "lf",
24
-
25
- /* Interop Constraints */
26
- "erasableSyntaxOnly": true,
27
- "esModuleInterop": true,
28
- "forceConsistentCasingInFileNames": true,
29
- "verbatimModuleSyntax": true,
30
-
31
- /* Language and Environment */
32
- "target": "es2024",
33
-
34
- /* Projects */
35
- "incremental": true,
36
-
37
- /* Completeness */
38
- "skipLibCheck": true
39
- }
40
- }
1
+ {
2
+ "compilerOptions": {
3
+ /* Type Checking */
4
+ "allowUnreachableCode": false,
5
+ "allowUnusedLabels": false,
6
+ "exactOptionalPropertyTypes": true,
7
+ "noFallthroughCasesInSwitch": true,
8
+ "noImplicitOverride": true,
9
+ "noImplicitReturns": true,
10
+ "noPropertyAccessFromIndexSignature": true,
11
+ "noUncheckedIndexedAccess": true,
12
+ "noUnusedLocals": true,
13
+ "noUnusedParameters": true,
14
+ "strict": true,
15
+
16
+ /* Modules */
17
+ "rewriteRelativeImportExtensions": true,
18
+
19
+ /* Emit */
20
+ "newLine": "lf",
21
+
22
+ /* Interop Constraints */
23
+ "erasableSyntaxOnly": true,
24
+ "esModuleInterop": true,
25
+ "forceConsistentCasingInFileNames": true,
26
+ "verbatimModuleSyntax": true,
27
+
28
+ /* Language and Environment */
29
+ "target": "es2024",
30
+
31
+ /* Projects */
32
+ "incremental": true,
33
+
34
+ /* Completeness */
35
+ "skipLibCheck": true
36
+ }
37
+ }