@taiga-ui/tsconfig 0.288.0 → 0.290.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.
- package/README.md +1 -5
- package/package.json +1 -1
- package/tsconfig.json +2 -2
package/README.md
CHANGED
|
@@ -24,16 +24,12 @@ Add to your `tsconfig.json`:
|
|
|
24
24
|
outDir: 'dist',
|
|
25
25
|
target: 'es2018',
|
|
26
26
|
lib: ['es2018'],
|
|
27
|
-
typeRoots: ['./node_modules/@types', './node_modules/@taiga-ui/tsconfig'],
|
|
28
|
-
types: ['node', 'ng-dev-mode'],
|
|
29
27
|
},
|
|
30
28
|
}
|
|
31
29
|
```
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
This package also has a type for `ngDevMode`:
|
|
34
32
|
|
|
35
33
|
```ts
|
|
36
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
37
|
-
|
|
38
34
|
ngDevMode && console.log('My log');
|
|
39
35
|
```
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"es2021.string",
|
|
51
51
|
"dom"
|
|
52
52
|
],
|
|
53
|
-
"typeRoots": ["node_modules/@types"],
|
|
54
|
-
"types": ["node"],
|
|
53
|
+
"typeRoots": ["node_modules/@types", "node_modules/@taiga-ui/tsconfig"],
|
|
54
|
+
"types": ["node", "ng-dev-mode"],
|
|
55
55
|
"skipLibCheck": true,
|
|
56
56
|
"downlevelIteration": true,
|
|
57
57
|
"skipDefaultLibCheck": true,
|