Skip to content

Commit f8ead24

Browse files
author
Eli Skeggs
committed
refactor: use --if-ci flag
1 parent c4640db commit f8ead24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
"src"
88
],
99
"scripts": {
10-
"ci": "npm run lint && npm run commitlint",
11-
"commitlint": "if [ \"$CI\" != '' ]; then node .; else commitlint --from HEAD; fi",
12-
"lint": "eslint .",
10+
"ci": "npm run lint",
11+
"lint": "eslint . && node . --if-ci",
1312
"prepublishOnly": "if [ \"$CI\" = '' ]; then node -p 'JSON.parse(process.env.npm_package_config_manualPublishMessage)'; exit 1; fi",
1413
"test": "echo \"Error: no test specified\" && exit 1",
1514
"semantic-release": "semantic-release"

0 commit comments

Comments
 (0)