@apitree.cz/ts-config 0.1.0 → 0.1.1-next.86a2c7b

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
@@ -65,3 +65,15 @@ Suitable for Next.js apps.
65
65
  "exclude": [".next", "node_modules"]
66
66
  }
67
67
  ```
68
+
69
+ ### Nest.js
70
+
71
+ Suitable for Nest.js apps.
72
+
73
+ ```json
74
+ {
75
+ "extends": "@apitree.cz/ts-config/nestjs",
76
+ "include": [".eslintrc.js", "**/*.js", "**/*.ts"],
77
+ "exclude": ["build", "node_modules"]
78
+ }
79
+ ```
package/base.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "incremental": true,
10
10
  "isolatedModules": true,
11
11
  "lib": ["DOM", "DOM.Iterable", "ESNext"],
12
- "module": "Node16",
12
+ "module": "node16",
13
13
  "moduleResolution": "node16",
14
14
  "noEmit": true,
15
15
  "noUnusedLocals": true,
@@ -19,6 +19,6 @@
19
19
  "skipLibCheck": true,
20
20
  "strict": true,
21
21
  "strictPropertyInitialization": false,
22
- "target": "ESNext"
22
+ "target": "esnext"
23
23
  }
24
24
  }
package/nestjs.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./app",
3
+ "compilerOptions": {
4
+ "emitDecoratorMetadata": true,
5
+ "experimentalDecorators": true,
6
+ "module": "commonjs",
7
+ "moduleResolution": "node"
8
+ }
9
+ }
package/nextjs.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "extends": "./app.json",
4
4
  "compilerOptions": {
5
- "module": "ESNext",
5
+ "module": "esnext",
6
6
  "moduleResolution": "bundler",
7
- "target": "ES5"
7
+ "target": "es5"
8
8
  }
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/ts-config",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-next.86a2c7b",
4
4
  "description": "TypeScript configuration for ApiTree projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,12 +13,15 @@
13
13
  ".": "./base.json",
14
14
  "./app": "./app.json",
15
15
  "./library": "./library.json",
16
+ "./nestjs": "./nestjs.json",
16
17
  "./nextjs": "./nextjs.json"
17
18
  },
19
+ "main": "base.json",
18
20
  "files": [
19
21
  "app.json",
20
22
  "base.json",
21
23
  "library.json",
24
+ "nestjs.json",
22
25
  "nextjs.json"
23
26
  ],
24
27
  "devDependencies": {