Skip to content

Commit f750eed

Browse files
author
wSedlacek
committed
chore: update build process to use ng-packgr builder
1 parent f5ce0c3 commit f750eed

File tree

8 files changed

+19
-70
lines changed

8 files changed

+19
-70
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ packages/angular/dist
4242
# System Files
4343
.DS_Store
4444
Thumbs.db
45+
46+
.angular
File renamed without changes.

packages/angular/ng-package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/package.schema.json",
3+
"assets": [".npmignore"],
34
"lib": {
45
"entryFile": "src/index.ts"
56
},
7+
"dest": "../../dist/packages/angular",
68
"allowedNonPeerDependencies": ["."]
79
}

packages/angular/project.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
"generators": {},
66
"targets": {
77
"build": {
8-
"executor": "@nrwl/workspace:run-commands",
9-
"outputs": ["dist/packages"],
8+
"builder": "@angular-devkit/build-angular:ng-packagr",
109
"options": {
11-
"commands": ["node tools/scripts/build-angular.ts angular"],
12-
"parallel": false
10+
"tsConfig": "packages/angular/tsconfig.lib.prod.json",
11+
"project": "packages/angular/ng-package.json"
1312
}
1413
},
1514
"lint": {

packages/angular/tsconfig.angular.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/angular/tsconfig.lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../../dist/out-tsc",
5-
"types": []
4+
"types": ["node", "./references"],
5+
"outDir": "../../dist/out-tsc"
66
},
77
"exclude": ["**/*.spec.ts", "dist/**/*"],
88
"include": ["**/*.ts"]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.lib.json",
3+
"compilerOptions": {
4+
"declarationMap": false
5+
},
6+
"angularCompilerOptions": {
7+
"enableIvy": true,
8+
"compilationMode": "partial"
9+
}
10+
}

tools/scripts/build-angular.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)