Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 35c9f8b

Browse files
committed
misc: build lib when running link:lib script
- remove unused paths in tsconfig.json
1 parent 0d73e8c commit 35c9f8b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"scripts": {
66
"start": "npm run link:lib && ng serve",
77
"build:lib": "npm run clean && ng build angular-datatables --configuration=production && npm run lib:schematics:build",
8-
"clean": "rimraf -f lib/**/index.{d.ts,js,js.map,metadata.json} demo/**/*.{d.ts,js,map,metadata.json} bundles schematics/**/*.{d.ts,js,map}",
9-
"link:lib": "rimraf node_modules/angular-datatables && linklocal",
8+
"clean": "rimraf -f lib/**/index.{d.ts,js,js.map,metadata.json} demo/**/*.{d.ts,js,map,metadata.json} schematics/**/*.{d.ts,js,map}",
9+
"link:lib": "rimraf node_modules/angular-datatables && npm run build:lib && linklocal",
1010
"demo:test": "ng test",
1111
"demo:test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",
1212
"lib:schematics:build": "tsc -p lib/schematics/tsconfig.json",
13-
"demo:build:prod": "ng build --configuration production --aot --base-href /angular-datatables/",
13+
"demo:build:prod": "npm run clean && ng build angular-datatables-demo --configuration production --base-href=/angular-datatables",
1414
"version": "npm run build && git add -A",
1515
"postversion": "git push && git push --tags"
1616
},

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
"paths": {
2828
"@angular/*": [
2929
"node_modules/@angular/*"
30-
],
31-
"angular-datatables": [
32-
"./lib/"
3330
]
3431
},
3532
"resolveJsonModule": true,

0 commit comments

Comments
 (0)