Skip to content

Commit 5151bb0

Browse files
authored
Update build scripts
1 parent 6426475 commit 5151bb0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"private": true,
1515
"license": "MIT",
16-
"main": "dist/htmldiff.ts",
16+
"main": "dist/htmldiff.js",
1717
"files": [
1818
"dist/htmldiff.d.ts",
1919
"dist/htmldiff.js",
@@ -33,8 +33,11 @@
3333
"mocha": "~8.3.0"
3434
},
3535
"scripts": {
36+
"build": "tsc -p tsconfig.json",
37+
"dist": "npm run lint:ci && npm run make && npm run test:ci",
3638
"lint": "eslint --config='.eslintrc.cjs' './src/*.ts' --fix",
37-
"test": "npm run make && mocha -R min",
38-
"make": "tsc -p tsconfig.json"
39+
"lint:ci": "npm run lint -- --max-warnings 0",
40+
"test": "npm run build && mocha -R min",
41+
"test:ci": "mocha -R min"
3942
}
4043
}

0 commit comments

Comments
 (0)