@naturalcycles/dev-lib 18.4.9 → 19.0.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/lint.util.js +2 -3
  2. package/package.json +19 -9
package/dist/lint.util.js CHANGED
@@ -183,9 +183,8 @@ export function runCommitlintCommand() {
183
183
  const env = {
184
184
  GIT_BRANCH: git2.getCurrentBranchName(),
185
185
  };
186
- // todo: findPackageBinPath('@commitlint/cli', 'commitlint')
187
- // await execWithArgs(`commitlint`, [`--edit`, editMsg, `--config`, config], { env })
188
- exec2.spawn(`node ./node_modules/.bin/commitlint --edit ${editMsg} --config ${config}`, {
186
+ const commitlintPath = findPackageBinPath('@commitlint/cli', 'commitlint');
187
+ exec2.spawn(`${commitlintPath} --edit ${editMsg} --config ${config}`, {
189
188
  env,
190
189
  passProcessEnv: true, // important to pass it through, to preserve $PATH
191
190
  forceColor: false,
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "18.4.9",
4
+ "version": "19.0.1",
5
5
  "dependencies": {
6
- "@biomejs/biome": "^1",
7
6
  "@commitlint/cli": "^19",
8
7
  "@commitlint/config-conventional": "^19",
9
8
  "@eslint/js": "^9",
@@ -14,27 +13,38 @@
14
13
  "@types/node": "^22",
15
14
  "@vitest/coverage-v8": "^3",
16
15
  "@vitest/eslint-plugin": "^1",
17
- "eslint": "^9",
18
16
  "eslint-plugin-import-x": "^4",
19
17
  "eslint-plugin-jsdoc": "^50",
20
18
  "eslint-plugin-simple-import-sort": "^12",
21
19
  "eslint-plugin-unicorn": "^59",
22
20
  "eslint-plugin-vue": "^10",
23
21
  "globals": "^16",
24
- "husky": "^9",
25
22
  "lint-staged": "^16",
26
23
  "micromatch": "^4",
27
24
  "mitm": "^1",
28
- "prettier": "^3",
29
25
  "timekeeper": "^2",
30
- "typescript": "^5",
31
26
  "typescript-eslint": "^8",
32
27
  "vue-eslint-parser": "^10"
33
28
  },
34
- "devDependencies": {
35
- "@types/mitm": "^1",
29
+ "peerDependencies": {
30
+ "@biomejs/biome": "^1",
31
+ "eslint": "^9",
32
+ "husky": "^9",
33
+ "prettier": "^3",
36
34
  "stylelint": "^16",
37
- "stylelint-config-standard-scss": "^15"
35
+ "stylelint-config-standard-scss": "^15",
36
+ "typescript": "^5"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "stylelint": {
40
+ "optional": true
41
+ },
42
+ "stylelint-config-standard-scss": {
43
+ "optional": true
44
+ }
45
+ },
46
+ "devDependencies": {
47
+ "@types/mitm": "^1"
38
48
  },
39
49
  "files": [
40
50
  "dist",