npq 3.16.6 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/npq.js +2 -1
- package/package.json +2 -17
package/bin/npq.js
CHANGED
|
@@ -91,8 +91,9 @@ Promise.resolve()
|
|
|
91
91
|
})
|
|
92
92
|
.then((result) => {
|
|
93
93
|
if (auditOnly) {
|
|
94
|
+
const auditFailed = result && (result.countErrors > 0 || result.countWarnings > 0)
|
|
94
95
|
CliParser.exit({
|
|
95
|
-
errorCode: 0,
|
|
96
|
+
errorCode: auditFailed ? 1 : 0,
|
|
96
97
|
spinner
|
|
97
98
|
})
|
|
98
99
|
return undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npq",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "marshall your npm/npm package installs with high quality and class 🎖",
|
|
5
5
|
"bin": {
|
|
6
6
|
"npq": "./bin/npq.js",
|
|
@@ -9,11 +9,10 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"lint": "eslint && npm run lint:lockfile",
|
|
11
11
|
"lint:lockfile": "lockfile-lint --path package-lock.json --type npm --validate-https --allowed-hosts npm npm",
|
|
12
|
-
"fix": "eslint --fix",
|
|
12
|
+
"lint:fix": "eslint --fix",
|
|
13
13
|
"test": "jest",
|
|
14
14
|
"build": "node scripts/build.js",
|
|
15
15
|
"test:watch": "jest --watch",
|
|
16
|
-
"commit": "git-cz",
|
|
17
16
|
"format": "prettier --config .prettierrc.js --write \"**/*.js\"",
|
|
18
17
|
"semantic-release": "npx semantic-release",
|
|
19
18
|
"#postinstall": "node scripts/postinstall.js",
|
|
@@ -49,11 +48,7 @@
|
|
|
49
48
|
"ssri": "^13.0.1"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"@commitlint/cli": "^20.5.0",
|
|
53
|
-
"@commitlint/config-angular": "^20.5.0",
|
|
54
51
|
"@eslint/js": "^9.32.0",
|
|
55
|
-
"commitizen": "^4.3.1",
|
|
56
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
57
52
|
"eslint": "^9.32.0",
|
|
58
53
|
"eslint-plugin-n": "^17.21.3",
|
|
59
54
|
"eslint-plugin-security": "^3.0.1",
|
|
@@ -64,16 +59,6 @@
|
|
|
64
59
|
"lockfile-lint": "^5.0.0",
|
|
65
60
|
"prettier": "^3.6.2"
|
|
66
61
|
},
|
|
67
|
-
"config": {
|
|
68
|
-
"commitizen": {
|
|
69
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"commitlint": {
|
|
73
|
-
"extends": [
|
|
74
|
-
"@commitlint/config-angular"
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
62
|
"lint-staged": {
|
|
78
63
|
"**/*.js": [
|
|
79
64
|
"npm run format",
|