Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 4a02377

Browse files
committed
chore: use commonjs to build
1 parent 277feed commit 4a02377

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

angular.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
"lint": {
9090
"builder": "@angular-devkit/build-angular:tslint",
9191
"options": {
92+
"format": "stylish",
93+
"typeCheck": true,
9294
"tsConfig": [
9395
"src/tsconfig.app.json",
9496
"src/tsconfig.spec.json"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ts-node build.ts",
7+
"build": "ts-node -O '{\"module\": \"commonjs\"}' build.ts",
88
"build-data": "ts-node scripts/build-data.ts",
99
"test": "ng test ---watch=false --browsers=ChromeCI",
1010
"test:watch": "ng test --browsers=ChromeCI",
1111
"test:ci": "ng test --watch=false --code-coverage --no-progress --browsers=ChromeCI",
1212
"link": "cd dist/packages-dist && npm link",
13-
"lint": "ng lint ngx-numbered-codeblock --type-check --format stylish",
14-
"lint:fix": "ng lint ngx-numbered-codeblock --type-check --fix --format stylish",
13+
"lint": "ng lint",
14+
"lint:fix": "ng lint --fix",
1515
"ghpages": "ng build --prod --no-progress --baseHref='/ngx-numbered-codeblock/'",
1616
"travis-deploy-once": "travis-deploy-once",
1717
"commit": "git-cz",

0 commit comments

Comments
 (0)