@apitree.cz/ts-config 0.1.1 → 0.1.3
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 +24 -0
- package/cjs-library.json +8 -0
- package/nestjs-library.json +7 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -34,6 +34,18 @@ Suitable for distributable `npm` packages (both Node.js and React).
|
|
|
34
34
|
|
|
35
35
|
> **Note:** If you are using React, you should also add `"**/*.tsx"` to the `include` array.
|
|
36
36
|
|
|
37
|
+
### CommonJS library
|
|
38
|
+
|
|
39
|
+
Suitable for distributable `npm` packages (Node.js only).
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"extends": "@apitree.cz/ts-config/cjs-library",
|
|
44
|
+
"include": [".eslintrc.cjs", "**/*.js", "**/*.ts"],
|
|
45
|
+
"exclude": ["dist", "node_modules"]
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
37
49
|
### App
|
|
38
50
|
|
|
39
51
|
Suitable for stand-alone applications (both Node.js and React).
|
|
@@ -77,3 +89,15 @@ Suitable for Nest.js apps.
|
|
|
77
89
|
"exclude": ["build", "node_modules"]
|
|
78
90
|
}
|
|
79
91
|
```
|
|
92
|
+
|
|
93
|
+
### Nest.js Library
|
|
94
|
+
|
|
95
|
+
Suitable for distributable `npm` packages consumed by Nest.js apps.
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"extends": "@apitree.cz/ts-config/nestjs-library",
|
|
100
|
+
"include": [".eslintrc.js", "**/*.js", "**/*.ts"],
|
|
101
|
+
"exclude": ["dist", "node_modules"]
|
|
102
|
+
}
|
|
103
|
+
```
|
package/cjs-library.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apitree.cz/ts-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "TypeScript configuration for ApiTree projects.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,10 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"app.json",
|
|
22
22
|
"base.json",
|
|
23
|
+
"cjs-library.json",
|
|
23
24
|
"library.json",
|
|
24
25
|
"nestjs.json",
|
|
26
|
+
"nestjs-library.json",
|
|
25
27
|
"nextjs.json"
|
|
26
28
|
],
|
|
27
29
|
"devDependencies": {
|