Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit eba93bb

Browse files
authored
build: create a separate tsconfig file for build (#28)
1 parent 84045bc commit eba93bb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Deployment from the Angular CLI to the file system. This is a sample project that helps you to implement your own deployment builder (`ng deploy`) for the Angular CLI.",
55
"main": "index.js",
66
"scripts": {
7-
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles README.md builders.json collection.json ng-add-schema.json package.json ngx-deploy-starter deploy/schema.json dist",
7+
"prebuild": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts",
8+
"build": "tsc -p tsconfig.build.json",
9+
"postbuild": "copyfiles README.md builders.json collection.json ng-add-schema.json package.json ngx-deploy-starter deploy/schema.json dist",
810
"test": "jest",
911
"prettier": "prettier --write ."
1012
},

src/tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "test", "**/*spec.ts"]
4+
}

0 commit comments

Comments
 (0)