@huangjunsen/encode-fe-lint 1.0.5 → 1.0.6

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.
@@ -197,10 +197,10 @@ exports.default = (function (options) { return __awaiter(void 0, void 0, void 0,
197
197
  if (!pkg.scripts) {
198
198
  pkg.scripts = {};
199
199
  }
200
- if (!pkg.scripts["".concat(constants_1.PKG_NAME, "-scan")]) {
200
+ if (!pkg.scripts["".concat(constants_1.PKG_NAME.split("/").pop(), "-scan")]) {
201
201
  pkg.scripts["".concat(constants_1.PKG_NAME.split("/").pop(), "-scan")] = "".concat(constants_1.PKG_NAME.split("/").pop(), " scan");
202
202
  }
203
- if (!pkg.scripts["".concat(constants_1.PKG_NAME, "-fix")]) {
203
+ if (!pkg.scripts["".concat(constants_1.PKG_NAME.split("/").pop(), "-fix")]) {
204
204
  pkg.scripts["".concat(constants_1.PKG_NAME.split("/").pop(), "-fix")] = "".concat(constants_1.PKG_NAME.split("/").pop(), " fix");
205
205
  }
206
206
  log_1.default.info("Step ".concat(++step, ". \u914D\u7F6E git commit \u5361\u70B9"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huangjunsen/encode-fe-lint",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "前端编码规范工程化标准脚手架",
5
5
  "bin": "./lib/cli.js",
6
6
  "main": "./lib/index.js",