@naturalcycles/dev-lib 19.0.1 → 19.0.2

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/dist/lint.util.js CHANGED
@@ -108,7 +108,8 @@ export async function eslintAll(opt) {
108
108
  async function runESLint(dir, eslintConfigPath, tsconfigPath, extensions = eslintExtensions.split(','), fix = true) {
109
109
  if (!eslintConfigPath || !existsSync(dir))
110
110
  return; // faster to bail-out like this
111
- await exec2.spawnAsync('eslint', {
111
+ const eslintPath = findPackageBinPath('eslint', 'eslint');
112
+ await exec2.spawnAsync(eslintPath, {
112
113
  args: [
113
114
  `--config`,
114
115
  eslintConfigPath,
@@ -156,7 +157,7 @@ export function stylelintAll() {
156
157
  const config = [`./stylelint.config.js`].find(f => existsSync(f));
157
158
  if (!config)
158
159
  return;
159
- // todo: findPackageBinPath('stylelint', 'stylelint')
160
+ // stylelint is never hoisted from dev-lib, so, no need to search for its path
160
161
  exec2.spawn('stylelint', {
161
162
  args: [fix ? `--fix` : '', `--allow-empty-input`, `--config`, config, ...stylelintPaths].filter(Boolean),
162
163
  shell: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "19.0.1",
4
+ "version": "19.0.2",
5
5
  "dependencies": {
6
6
  "@commitlint/cli": "^19",
7
7
  "@commitlint/config-conventional": "^19",