@genesislcap/eslint-stylelint-builder 14.70.2 → 14.70.4-es2021.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const build_kit_1 = require("@genesislcap/build-kit");
5
5
  const consola_1 = tslib_1.__importDefault(require("consola"));
6
- exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
+ exports.default = async (ctx) => {
7
7
  const { dirs: { cwd }, cli: { isLint, options: { profile, linter, fix }, }, } = ctx;
8
8
  if (isLint) {
9
9
  const fixArg = fix ? ' --fix' : '';
@@ -12,13 +12,13 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
12
12
  if (profile) {
13
13
  process.env.TIMING = '1';
14
14
  }
15
- const eslint = yield (0, build_kit_1.resolveBin)('eslint');
15
+ const eslint = await (0, build_kit_1.resolveBin)('eslint');
16
16
  (0, build_kit_1.run)(cwd, `${eslint} "./**/*.{ts,js}" ${fixArg}`);
17
17
  consola_1.default.success('ESLint completed');
18
18
  }
19
19
  if (!linter || linter === 'stylelint' || linter === 'all') {
20
20
  consola_1.default.info('Running Stylelint...');
21
- const stylelint = yield (0, build_kit_1.resolveBin)('stylelint');
21
+ const stylelint = await (0, build_kit_1.resolveBin)('stylelint');
22
22
  (0, build_kit_1.run)(cwd, `${stylelint} "./**/*.styles.ts" ${fixArg}`);
23
23
  consola_1.default.success('Stylelint completed');
24
24
  }
@@ -26,4 +26,4 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
26
26
  else {
27
27
  throw new Error(`Unrecognized command: ${JSON.stringify(ctx.cli.options)}`);
28
28
  }
29
- });
29
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/eslint-stylelint-builder",
3
3
  "description": "ESLint/Stylelint builder",
4
- "version": "14.70.2",
4
+ "version": "14.70.4-es2021.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "dev": "tsc -b ./tsconfig.json -w"
12
12
  },
13
13
  "dependencies": {
14
- "@genesislcap/build-kit": "14.70.2",
14
+ "@genesislcap/build-kit": "14.70.4-es2021.1",
15
15
  "consola": "^3.0.2",
16
16
  "eslint": "8.22.0",
17
17
  "stylelint": "^14.0.0",
@@ -29,5 +29,5 @@
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "efc54c4f5968451219d8ab6da8a0c73cb054c2b7"
32
+ "gitHead": "5d0d8ee36cfd068cfc6211033b326d0a978cfc05"
33
33
  }