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

Commit

Permalink
build: create a separate tsconfig file for build (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianjuar authored Dec 14, 2020
1 parent 84045bc commit eba93bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"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.",
"main": "index.js",
"scripts": {
"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",
"prebuild": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts",
"build": "tsc -p tsconfig.build.json",
"postbuild": "copyfiles README.md builders.json collection.json ng-add-schema.json package.json ngx-deploy-starter deploy/schema.json dist",
"test": "jest",
"prettier": "prettier --write ."
},
Expand Down
4 changes: 4 additions & 0 deletions src/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "**/*spec.ts"]
}

0 comments on commit eba93bb

Please sign in to comment.