Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca6a614

Browse files
authored
chore(state): fix state build configuration (#925)
1 parent 88fb798 commit ca6a614

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

angular.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,16 +517,11 @@
517517
"prefix": "rx",
518518
"architect": {
519519
"build": {
520-
"builder": "@nrwl/angular:ng-packagr-lite",
520+
"builder": "@nrwl/angular:package",
521521
"options": {
522522
"tsConfig": "libs/state/tsconfig.lib.json",
523523
"project": "libs/state/ng-package.json"
524524
},
525-
"configurations": {
526-
"production": {
527-
"tsConfig": "libs/state/tsconfig.lib.prod.json"
528-
}
529-
},
530525
"outputs": ["dist/libs/state"]
531526
},
532527
"lint": {

libs/state/ng-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/libs/state",
44
"lib": {
5-
"entryFile": "src/index.ts"
5+
"entryFile": "src/index.ts",
6+
"flatModuleFile": "state"
67
}
78
}

libs/state/tsconfig.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"compilerOptions": {
4-
"types": [
5-
"node",
6-
"jest"
7-
],
8-
"strictNullChecks": true,
9-
"noImplicitAny": true
10-
},
11-
"include": [
12-
"**/*.ts"
3+
"files": [],
4+
"include": [],
5+
"references": [
6+
{
7+
"path": "./tsconfig.lib.json"
8+
},
9+
{
10+
"path": "./tsconfig.spec.json"
11+
}
1312
]
1413
}

libs/state/tsconfig.lib.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
54
"target": "es2015",
5+
"module": "es2015",
6+
"inlineSources": true,
67
"declaration": true,
78
"declarationMap": true,
8-
"inlineSources": true,
9-
"types": [],
9+
"strictNullChecks": true,
10+
"noImplicitAny": true,
1011
"lib": ["dom", "es2018"]
1112
},
1213
"angularCompilerOptions": {
13-
"enableIvy": false,
14+
"enableIvy": "true",
15+
"compilationMode": "partial",
16+
"annotateForClosureCompiler": true,
1417
"skipTemplateCodegen": true,
1518
"strictMetadataEmit": true,
1619
"enableResourceInlining": true
1720
},
18-
"include": ["**/*.ts"],
1921
"exclude": ["src/test-setup.ts", "**/*.spec.ts"]
2022
}

0 commit comments

Comments
 (0)