@w0s/tsconfig 1.7.0 → 2.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.
Files changed (3) hide show
  1. package/README.md +11 -2
  2. package/package.json +13 -10
  3. package/tsconfig.json +0 -40
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,28 @@
1
1
  {
2
2
  "name": "@w0s/tsconfig",
3
- "version": "1.7.0",
4
- "description": "TSConfig file used on w0s.jp",
3
+ "version": "2.0.0",
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": [],
17
20
  "scripts": {
18
- "test": "tsc --project __tests__/tsconfig-valid.json",
19
- "test-invalid": "tsc --project __tests__/tsconfig-invalid.json"
21
+ "test": "tsc -p __tests__/tsconfig-valid.json",
22
+ "test:invalid": "tsc -p __tests__/tsconfig-invalid.json"
20
23
  },
21
24
  "devDependencies": {
22
- "typescript": "^5.9.2"
25
+ "typescript": "^5.9.3"
23
26
  },
24
27
  "peerDependencies": {
25
28
  "typescript": "^5.8.0"
package/tsconfig.json DELETED
@@ -1,40 +0,0 @@
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
- }