Skip to content

Commit 944dd5b

Browse files
build: create a separate tsconfig file for build by @dianjuar (#141)
see angular-schule/ngx-deploy-starter#28
1 parent 1c375f9 commit 944dd5b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-2020 Johannes Hoppe
3+
Copyright (c) 2017-2021 Johannes Hoppe
44
Copyright (c) 2019 Minko Gechev
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of

src/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"ngh": "angular-cli-ghpages"
99
},
1010
"scripts": {
11-
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles builders.json collection.json ng-add-schema.json package.json angular-cli-ghpages deploy/schema.json dist && copyfiles ../README.md dist/README.md",
11+
"prebuild": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts",
12+
"build": "tsc -p tsconfig.build.json",
13+
"postbuild": "copyfiles builders.json collection.json ng-add-schema.json package.json angular-cli-ghpages deploy/schema.json dist && copyfiles ../README.md dist/README.md",
1214
"test": "jest",
1315
"prettier": "prettier --write ."
1416
},

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)