@huangjunsen/encode-fe-lint 1.0.2 → 1.0.4
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/lib/cli.js +1 -1
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -147,7 +147,7 @@ commander_1.program
|
|
|
147
147
|
.command('commit-msg-scan')
|
|
148
148
|
.description('commit message 检查: git commit 时对 commit message 进行检查')
|
|
149
149
|
.action(function () {
|
|
150
|
-
var result = cross_spawn_1.default.sync('commitlint', ['-E', '
|
|
150
|
+
var result = cross_spawn_1.default.sync('commitlint', ['-E', '$1'], { stdio: 'inherit' });
|
|
151
151
|
if (result.status !== 0) {
|
|
152
152
|
process.exit(result.status);
|
|
153
153
|
}
|
package/package.json
CHANGED