@zayne-labs/tsconfig 0.1.1 → 0.2.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/.github/workflows/release-and-publish.yml +1 -1
- package/CHANGELOG.md +24 -0
- package/README.md +18 -21
- package/package.json +3 -4
- package/bundler/tsconfig.vite.json +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @zayne-labs/tsconfig
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b92f8e1: fix provenance
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 599c354: feat: remove vite config
|
|
14
|
+
|
|
15
|
+
## 1.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- 9dadb83: feat:! removed vite config
|
|
20
|
+
|
|
21
|
+
## 0.1.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- cd7243e: add provenance
|
|
26
|
+
|
|
3
27
|
## 0.1.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ pnpm add -D @zayne-labs/tsconfig
|
|
|
20
20
|
|
|
21
21
|
```jsonc
|
|
22
22
|
{
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// For building an app that runs in the DOM with an external bundler
|
|
24
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/app"
|
|
25
25
|
}
|
|
26
26
|
```
|
|
27
27
|
|
|
@@ -35,15 +35,15 @@ If yes, use this selection of configs:
|
|
|
35
35
|
|
|
36
36
|
```jsonc
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
// For code that runs in the DOM:
|
|
39
|
+
"extends": "@zayne-labs/tsconfig/tsc/dom/app", // For an app
|
|
40
|
+
"extends": "@zayne-labs/tsconfig/tsc/dom/library", // For a library
|
|
41
41
|
"extends": "@zayne-labs/tsconfig/tsc/dom/library-monorepo", // For a library in a monorepo
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"extends": "@zayne-labs/tsconfig/tsc/no-dom/library-monorepo"
|
|
43
|
+
// For code that doesn't run in the DOM (for instance, in Node.js):
|
|
44
|
+
"extends": "@zayne-labs/tsconfig/tsc/no-dom/app", // For an app
|
|
45
|
+
"extends": "@zayne-labs/tsconfig/tsc/no-dom/library", // For a library
|
|
46
|
+
"extends": "@zayne-labs/tsconfig/tsc/no-dom/library-monorepo" // For a library in a monorepo
|
|
47
47
|
}
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -53,15 +53,15 @@ If no, you're probably using an external bundler.
|
|
|
53
53
|
|
|
54
54
|
```jsonc
|
|
55
55
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
// For code that runs in the DOM:
|
|
57
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/app", // For an app
|
|
58
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/library", // For a library
|
|
59
59
|
"extends": "@zayne-labs/tsconfig/bundler/dom/library-monorepo", // For a library in a monorepo
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"extends": "@zayne-labs/tsconfig/bundler/no-dom/library-monorepo"
|
|
61
|
+
// For code that doesn't run in the DOM (for instance, in Node.js):
|
|
62
|
+
"extends": "@zayne-labs/tsconfig/bundler/no-dom/app", // For an app
|
|
63
|
+
"extends": "@zayne-labs/tsconfig/bundler/no-dom/library", // For a library
|
|
64
|
+
"extends": "@zayne-labs/tsconfig/bundler/no-dom/library-monorepo" // For a library in a monorepo
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|
|
@@ -71,10 +71,7 @@ The following are currently supported framework-specific options, will add more
|
|
|
71
71
|
|
|
72
72
|
```jsonc
|
|
73
73
|
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// For a nextjs app
|
|
78
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/next",
|
|
74
|
+
// For a nextjs app
|
|
75
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/next"
|
|
79
76
|
}
|
|
80
77
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/tsconfig",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A collection of TypeScript configurations for various projects, based on Total TypeScript's TSConfig Cheat Sheet, with a few additions.",
|
|
6
6
|
"repository": {
|
|
@@ -27,12 +27,11 @@
|
|
|
27
27
|
"./bundler/dom/app": "./bundler/tsconfig.dom.json",
|
|
28
28
|
"./bundler/dom/library": "./bundler/tsconfig.dom.json",
|
|
29
29
|
"./bundler/dom/library-monorepo": "./bundler/tsconfig.dom.json",
|
|
30
|
+
"./bundler/next": "./bundler/tsconfig.next.json",
|
|
30
31
|
"./bundler/no-dom": "./bundler/tsconfig.no-dom.json",
|
|
31
32
|
"./bundler/no-dom/app": "./bundler/tsconfig.no-dom.json",
|
|
32
33
|
"./bundler/no-dom/library": "./bundler/tsconfig.no-dom.json",
|
|
33
|
-
"./bundler/no-dom/library-monorepo": "./bundler/tsconfig.no-dom.json"
|
|
34
|
-
"./bundler/vite": "./bundler/tsconfig.vite.json",
|
|
35
|
-
"./bundler/next": "./bundler/tsconfig.next.json"
|
|
34
|
+
"./bundler/no-dom/library-monorepo": "./bundler/tsconfig.no-dom.json"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@changesets/cli": "^2.27.5"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Base Options: */
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"moduleDetection": "force",
|
|
8
|
-
"useDefineForClassFields": true,
|
|
9
|
-
"isolatedModules": true,
|
|
10
|
-
"verbatimModuleSyntax": true,
|
|
11
|
-
|
|
12
|
-
/* Don't allow importing JavaScript files by default, to avoid mistake "any" (burnt me before): */
|
|
13
|
-
"allowJs": false,
|
|
14
|
-
|
|
15
|
-
/* Linting: */
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noImplicitOverride": true,
|
|
18
|
-
"noImplicitReturns": true,
|
|
19
|
-
"noImplicitThis": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"allowUnreachableCode": false,
|
|
22
|
-
"allowSyntheticDefaultImports": true,
|
|
23
|
-
"forceConsistentCasingInFileNames": true,
|
|
24
|
-
"noErrorTruncation": true,
|
|
25
|
-
"noUncheckedIndexedAccess": true,
|
|
26
|
-
|
|
27
|
-
/* Bundler mode: */
|
|
28
|
-
"module": "Preserve",
|
|
29
|
-
"target": "ESNext",
|
|
30
|
-
"noEmit": true,
|
|
31
|
-
"jsx": "preserve",
|
|
32
|
-
|
|
33
|
-
/* Vite specific ambient types: */
|
|
34
|
-
"types": ["vite/client"],
|
|
35
|
-
|
|
36
|
-
/* If your code runs in the DOM: */
|
|
37
|
-
"lib": ["ESNext", "DOM", "DOM.Iterable"]
|
|
38
|
-
}
|
|
39
|
-
}
|