@pob/root 18.1.1 → 18.3.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [18.3.0](https://github.com/christophehurpeau/pob/compare/@pob/root@18.2.0...@pob/root@18.3.0) (2025-08-23)
7
+
8
+ ### Features
9
+
10
+ * run eslint on package.json change ([e2de0ed](https://github.com/christophehurpeau/pob/commit/e2de0edb7e404023415a5f3fb1b2fecfa73af166))
11
+
12
+ ### Bug Fixes
13
+
14
+ * **deps:** update dependency lint-staged to v16.1.5 ([#2553](https://github.com/christophehurpeau/pob/issues/2553)) ([d82b99c](https://github.com/christophehurpeau/pob/commit/d82b99c900482bf51e033f88dba59ac0ee141ec9))
15
+ * update to node 22 ([212c133](https://github.com/christophehurpeau/pob/commit/212c133a06a1e361aadab5c01357a5a330e14007))
16
+
17
+ Version bump for dependency: yarn-version
18
+
19
+
20
+ ## [18.2.0](https://github.com/christophehurpeau/pob/compare/@pob/root@18.1.1...@pob/root@18.2.0) (2025-06-28)
21
+
22
+ ### Features
23
+
24
+ * add transcrypt support ([16b6cea](https://github.com/christophehurpeau/pob/commit/16b6ceab9dba23293af954d475a8bb4aa3197a9c))
25
+ * **deps:** upgrade prettier to v3.6.2 ([c5648ab](https://github.com/christophehurpeau/pob/commit/c5648ab7a87da2e2b56d2589d4f574283f6eb1e9))
26
+
27
+ Version bump for dependency: @pob/pretty-pkg
28
+ Version bump for dependency: yarn-version
29
+
30
+
6
31
  ## [18.1.1](https://github.com/christophehurpeau/pob/compare/@pob/root@18.1.0...@pob/root@18.1.1) (2025-06-08)
7
32
 
8
33
  ### Bug Fixes
@@ -66,6 +66,8 @@ export default function installHusky({ pkg, pm }) {
66
66
  const shouldRunTest = () => pkg.scripts && pkg.scripts.test;
67
67
  const shouldRunChecks = () => pkg.scripts && pkg.scripts.checks;
68
68
  const shouldRunLint = () => pkg.scripts && pkg.scripts.lint;
69
+ const shouldEnableTranscrypt = () =>
70
+ fs.existsSync(path.resolve("scripts/transcrypt"));
69
71
 
70
72
  try {
71
73
  fs.mkdirSync(path.resolve(".husky"));
@@ -80,7 +82,19 @@ export default function installHusky({ pkg, pm }) {
80
82
  } = getPackageManagerCommands(pm, isYarnBerry);
81
83
 
82
84
  writeHook("commit-msg", `${pmExec} commitlint --edit $1`);
83
- writeHook("pre-commit", `${pmExec} pob-root-lint-staged`);
85
+ writeHook(
86
+ "pre-commit",
87
+ `${pmExec} pob-root-lint-staged${
88
+ shouldEnableTranscrypt()
89
+ ? `
90
+ # Transcrypt pre-commit hook: fail if secret file in staging lacks the magic prefix "Salted" in B64
91
+ RELATIVE_GIT_DIR=$(git rev-parse --git-dir 2>/dev/null || printf '')
92
+ CRYPT_DIR=$(git config transcrypt.crypt-dir 2>/dev/null || printf '%s/crypt' "\${RELATIVE_GIT_DIR}")
93
+ "\${CRYPT_DIR}/transcrypt" pre_commit
94
+ `
95
+ : ""
96
+ }`,
97
+ );
84
98
 
85
99
  if (isYarnPnp) {
86
100
  // https://yarnpkg.com/features/zero-installs
@@ -79,6 +79,7 @@ module.exports = function createLintStagedConfig() {
79
79
  return [
80
80
  ...installAndDedupe,
81
81
  pkg.scripts?.checks ? `${pm.name} run checks` : undefined,
82
+ "eslint --fix --quiet",
82
83
  packagejsonFilenames.length === 0
83
84
  ? undefined
84
85
  : `pretty-pkg "${packagejsonFilenames.join('" "')}"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "18.1.1",
3
+ "version": "18.3.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -69,17 +69,17 @@
69
69
  "prettier": "@pob/root/prettier-config",
70
70
  "dependencies": {
71
71
  "@commitlint/cli": "19.8.1",
72
- "@pob/pretty-pkg": "12.1.1",
72
+ "@pob/pretty-pkg": "12.2.0",
73
73
  "conventional-changelog-conventionalcommits": "^8.0.0",
74
74
  "cosmiconfig": "^9.0.0",
75
75
  "husky": "~9.1.7",
76
76
  "json5": "^2.2.3",
77
- "lint-staged": "15.5.2",
78
- "pob-dependencies": "19.1.1",
79
- "prettier": "3.5.3",
77
+ "lint-staged": "16.1.5",
78
+ "pob-dependencies": "19.3.0",
79
+ "prettier": "3.6.2",
80
80
  "repository-check-dirty": "10.0.2",
81
81
  "semver": "^7.3.7",
82
82
  "which-pm-runs": "1.1.0",
83
- "yarn-version": "7.0.3"
83
+ "yarn-version": "7.2.0"
84
84
  }
85
85
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "@pob:target:Node12",
3
+ "display": "@pob:target:Node22",
4
4
  "extends": "./base-node.json",
5
5
 
6
6
  "compilerOptions": {