@zayne-labs/tsconfig 0.11.6 → 0.11.7
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 +26 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@ pnpm add -D @zayne-labs/tsconfig
|
|
|
18
18
|
|
|
19
19
|
3. Add it to your `tsconfig.json`:
|
|
20
20
|
|
|
21
|
-
```
|
|
21
|
+
```json
|
|
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
|
|
|
@@ -33,17 +33,17 @@ pnpm add -D @zayne-labs/tsconfig
|
|
|
33
33
|
|
|
34
34
|
If yes, use this selection of configs:
|
|
35
35
|
|
|
36
|
-
```
|
|
36
|
+
```json
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
+
"extends": "@zayne-labs/tsconfig/tsc/dom/library-monorepo", // For a library in a monorepo
|
|
42
|
+
|
|
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
|
|
|
@@ -51,17 +51,17 @@ If yes, use this selection of configs:
|
|
|
51
51
|
|
|
52
52
|
If no, you're probably using an external bundler.
|
|
53
53
|
|
|
54
|
-
```
|
|
54
|
+
```json
|
|
55
55
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/library-monorepo", // For a library in a monorepo
|
|
60
|
+
|
|
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
|
|
|
@@ -69,9 +69,9 @@ If no, you're probably using an external bundler.
|
|
|
69
69
|
|
|
70
70
|
The following are currently supported framework-specific options, will add more if needed in future:
|
|
71
71
|
|
|
72
|
-
```
|
|
72
|
+
```json
|
|
73
73
|
{
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// For a nextjs app
|
|
75
|
+
"extends": "@zayne-labs/tsconfig/bundler/dom/next"
|
|
76
76
|
}
|
|
77
77
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/tsconfig",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.7",
|
|
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
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|