@pob/root 10.0.0 → 11.0.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,55 @@
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
+ ## [11.0.0](https://github.com/christophehurpeau/pob/compare/@pob/root@10.0.0...@pob/root@11.0.0) (2024-06-07)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **deps:** use async prettier or prettier/sync
11
+
12
+ ### Features
13
+
14
+ * add package yarn-version ([e2e8be6](https://github.com/christophehurpeau/pob/commit/e2e8be65fd50f9084c519fd07503748a1d970509))
15
+ * **deps:** update @pob/eslint-config to v56 (major) ([#2036](https://github.com/christophehurpeau/pob/issues/2036)) ([b26302b](https://github.com/christophehurpeau/pob/commit/b26302bd6dbf9bf4da2e97238c59ae80282ad9a4))
16
+ * **deps:** update dependency @rollup/plugin-run to v3.1.0 ([#2079](https://github.com/christophehurpeau/pob/issues/2079)) ([c2ef4fa](https://github.com/christophehurpeau/pob/commit/c2ef4fa22322952dcb626a5d99bc16e141684cd0))
17
+ * **deps:** update dependency conventional-changelog-conventionalcommits to v8 ([#2033](https://github.com/christophehurpeau/pob/issues/2033)) ([e7a568e](https://github.com/christophehurpeau/pob/commit/e7a568e4fabea00955bc6f005d85088f947f58cb))
18
+ * **deps:** update dependency esbuild to v0.21.0 ([#2040](https://github.com/christophehurpeau/pob/issues/2040)) ([dc252dc](https://github.com/christophehurpeau/pob/commit/dc252dc815dd450e2687e3f5784c3604bcfbab3c))
19
+ * **deps:** update dependency glob to v10.4.0 ([#2061](https://github.com/christophehurpeau/pob/issues/2061)) ([05dd06f](https://github.com/christophehurpeau/pob/commit/05dd06f1fb51d3cff0b95d6457fb9060d5d2db29))
20
+ * **deps:** update dependency prettier to v3 ([#1698](https://github.com/christophehurpeau/pob/issues/1698)) ([a65e641](https://github.com/christophehurpeau/pob/commit/a65e6418d4b80680b753a773b02925603df8ea12))
21
+ * **deps:** update dependency prettier to v3.3.0 ([#2071](https://github.com/christophehurpeau/pob/issues/2071)) ([04f24c3](https://github.com/christophehurpeau/pob/commit/04f24c33fcab0472cc830675696c219ee5ba14f9))
22
+ * **deps:** update dependency yeoman-generator to v7.2.0 ([#2063](https://github.com/christophehurpeau/pob/issues/2063)) ([a5b8748](https://github.com/christophehurpeau/pob/commit/a5b8748fecedff6291475656672feb1766c60e5f))
23
+ * migrate pob.babelEnvs to pob.envs + pob.bundler ([6baa9bb](https://github.com/christophehurpeau/pob/commit/6baa9bb986a1321beefcf9de3de566c285e548d1))
24
+
25
+ ### Bug Fixes
26
+
27
+ * commit build of yarn-version ([539f4b2](https://github.com/christophehurpeau/pob/commit/539f4b2e12d8df4dc5cec272a24343721f4d2bdb))
28
+ * **deps:** update dependency esbuild to v0.21.1 ([#2042](https://github.com/christophehurpeau/pob/issues/2042)) ([2c47629](https://github.com/christophehurpeau/pob/commit/2c476296d1ecabaf272461df0901786bcea07aab))
29
+ * **deps:** update dependency esbuild to v0.21.2 ([#2051](https://github.com/christophehurpeau/pob/issues/2051)) ([8e8596f](https://github.com/christophehurpeau/pob/commit/8e8596f11350ee7e152ebec5603295edea8e6da7))
30
+ * **deps:** update dependency esbuild to v0.21.3 ([#2055](https://github.com/christophehurpeau/pob/issues/2055)) ([f27179c](https://github.com/christophehurpeau/pob/commit/f27179c5d6f4259a2885ee9097cf857b73849cef))
31
+ * **deps:** update dependency esbuild to v0.21.4 ([#2065](https://github.com/christophehurpeau/pob/issues/2065)) ([984e479](https://github.com/christophehurpeau/pob/commit/984e479c1958c224bc584936c13908578563e29d))
32
+ * **deps:** update dependency glob to v10.3.14 ([#2047](https://github.com/christophehurpeau/pob/issues/2047)) ([201fff2](https://github.com/christophehurpeau/pob/commit/201fff2e3def4a8c7344af403464e7bf16eb44bc))
33
+ * **deps:** update dependency glob to v10.3.15 ([#2050](https://github.com/christophehurpeau/pob/issues/2050)) ([8142969](https://github.com/christophehurpeau/pob/commit/8142969c29cda5fb5f8cf924522fd719ac0278d7))
34
+ * **deps:** update dependency glob to v10.3.16 ([#2056](https://github.com/christophehurpeau/pob/issues/2056)) ([d5ce7c0](https://github.com/christophehurpeau/pob/commit/d5ce7c0922a93a188250eb5e6a5eb8b14ac76630))
35
+ * **deps:** update dependency glob to v10.4.1 ([#2062](https://github.com/christophehurpeau/pob/issues/2062)) ([c9eb614](https://github.com/christophehurpeau/pob/commit/c9eb614f8b0906bf4757bb21ed2bed570dbf55c4))
36
+ * **deps:** update dependency lint-staged to v15.2.4 ([#2057](https://github.com/christophehurpeau/pob/issues/2057)) ([3266770](https://github.com/christophehurpeau/pob/commit/3266770fc90c82ccc25cd0bce67106063cf38b51))
37
+ * **deps:** update dependency lint-staged to v15.2.5 ([#2066](https://github.com/christophehurpeau/pob/issues/2066)) ([0c5396b](https://github.com/christophehurpeau/pob/commit/0c5396b73c9a99e37964c9752f2f55b4079f888e))
38
+ * **deps:** update dependency mem-fs-editor to v11.0.1 ([#2060](https://github.com/christophehurpeau/pob/issues/2060)) ([a4824cb](https://github.com/christophehurpeau/pob/commit/a4824cb89b8d94846ac7eb4ca062a500cadcc606))
39
+ * **deps:** update dependency prettier to v3.3.1 ([#2078](https://github.com/christophehurpeau/pob/issues/2078)) ([57ecb30](https://github.com/christophehurpeau/pob/commit/57ecb301bc6dded8e9063c1e3afc9f6f04d023b1))
40
+ * **deps:** update dependency semver to v7.6.1 ([#2041](https://github.com/christophehurpeau/pob/issues/2041)) ([17b20a3](https://github.com/christophehurpeau/pob/commit/17b20a3a352e4fbcda88d2e43938a8dbafe0667c))
41
+ * **deps:** update dependency semver to v7.6.2 ([#2048](https://github.com/christophehurpeau/pob/issues/2048)) ([e4a50f3](https://github.com/christophehurpeau/pob/commit/e4a50f3c11b87306ed30ec0cbcdd8f6f23a4ac75))
42
+ * **deps:** update dependency yeoman-environment to v4.4.1 ([#2073](https://github.com/christophehurpeau/pob/issues/2073)) ([528734e](https://github.com/christophehurpeau/pob/commit/528734e27f1f0b59ab5f5d87ff98e95385168b72))
43
+ * **deps:** update yarn monorepo ([#2045](https://github.com/christophehurpeau/pob/issues/2045)) ([bfce168](https://github.com/christophehurpeau/pob/commit/bfce1680e6df15f6a57e83fefc39e1257bf8f6e3))
44
+ * fix for CommonTestingGenerator ([e7f93df](https://github.com/christophehurpeau/pob/commit/e7f93df65007fe8a6e5faac6fd3d796adf6d3233))
45
+ * fix yarn-version command ([87e25ca](https://github.com/christophehurpeau/pob/commit/87e25cae86d3730f14e50e6370efe69bd2e21814))
46
+ * **pob:** leave default compressionLevel config ([3d4c5d1](https://github.com/christophehurpeau/pob/commit/3d4c5d1e92ec1194dec99e768c2743e085c1fa94))
47
+ * **pob:** missing await ([f91682b](https://github.com/christophehurpeau/pob/commit/f91682b72016733065d7d505c6be5d4fddad25d8))
48
+ * update json5 ([4034c94](https://github.com/christophehurpeau/pob/commit/4034c947a1111021ee037144cefbee0cd39b9d33))
49
+ Version bump for dependency: @pob/pretty-eslint-config
50
+ Version bump for dependency: @pob/pretty-pkg
51
+ Version bump for dependency: repository-check-dirty
52
+ Version bump for dependency: yarn-version
53
+
54
+
6
55
  ## [10.0.0](https://github.com/christophehurpeau/pob/compare/@pob/root@9.5.0...@pob/root@10.0.0) (2024-05-05)
7
56
 
8
57
 
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import cliPath from "@commitlint/cli";
4
+
5
+ await import(cliPath);
@@ -7,7 +7,7 @@ import whichPmRuns from "which-pm-runs";
7
7
 
8
8
  if (!process.env.INIT_CWD) {
9
9
  console.error(
10
- "Missing process.env.INIT_CWD. Did you use postinstall script ?"
10
+ "Missing process.env.INIT_CWD. Did you use postinstall script ?",
11
11
  );
12
12
  process.exit(1);
13
13
  }
@@ -30,7 +30,7 @@ if (!pm) {
30
30
 
31
31
  if (pm.name !== "yarn" && pm.name !== "npm" && pm.name !== "bun") {
32
32
  console.error(
33
- `Package manager not supported: ${pm.name}. Please run with yarn or npm!`
33
+ `Package manager not supported: ${pm.name}. Please run with yarn or npm!`,
34
34
  );
35
35
  process.exit(1);
36
36
  }
@@ -44,5 +44,7 @@ if (pm.name !== "yarn" && pm.name !== "npm" && pm.name !== "bun") {
44
44
  (await import("./postinstall/install-scripts.js")).default({ pkg, pm });
45
45
 
46
46
  if (process.env.POB_EXPERIMENTAL_VSCODE_TASKS) {
47
- (await import("./postinstall/install-vscode-tasks.js")).default({ pkg, pm });
47
+ await (
48
+ await import("./postinstall/install-vscode-tasks.js")
49
+ ).default({ pkg, pm });
48
50
  }
@@ -16,9 +16,9 @@ const installWorkflow = (workflowName, condition = true) => {
16
16
  fs.readFileSync(
17
17
  path.resolve(
18
18
  path.dirname(fileURLToPath(import.meta.url)),
19
- `github-workflows/${workflowName}.yml`
20
- )
21
- )
19
+ `github-workflows/${workflowName}.yml`,
20
+ ),
21
+ ),
22
22
  );
23
23
  } else {
24
24
  ensureWorkflowUninstalled(workflowName);
@@ -17,7 +17,7 @@ const ensureLegacyHuskyConfigDeleted = () => {
17
17
  const ensureHuskyNotInDevDependencies = (pkg) => {
18
18
  if (pkg.devDependencies && pkg.devDependencies.husky) {
19
19
  throw new Error(
20
- "Found husky in devDependencies. Husky is provided by @pob/root, please remove"
20
+ "Found husky in devDependencies. Husky is provided by @pob/root, please remove",
21
21
  );
22
22
  }
23
23
  };
@@ -28,7 +28,7 @@ const writeHook = (hookName, hookContent) => {
28
28
  `#!/usr/bin/env sh\n\n${hookContent.trim()}\n`,
29
29
  {
30
30
  mode: "755",
31
- }
31
+ },
32
32
  );
33
33
  };
34
34
 
@@ -97,7 +97,7 @@ export default function installHusky({ pkg, pm }) {
97
97
  }
98
98
 
99
99
  throw new Error(
100
- `Package manager not supported: ${pm.name}. Please run with yarn, npm or bun !`
100
+ `Package manager not supported: ${pm.name}. Please run with yarn, npm or bun !`,
101
101
  );
102
102
  })();
103
103
 
@@ -162,7 +162,7 @@ do
162
162
  fi
163
163
  fi
164
164
  done
165
- `
165
+ `,
166
166
  );
167
167
  } else {
168
168
  ensureHookDeleted("pre-push");
@@ -4,9 +4,8 @@ const addPobRootPostinstallInScript = (pkg, scriptName) => {
4
4
  if (!pkg.scripts[scriptName]) {
5
5
  pkg.scripts[scriptName] = "pob-root-postinstall";
6
6
  } else if (!pkg.scripts[scriptName].includes("pob-root-postinstall")) {
7
- pkg.scripts[
8
- scriptName
9
- ] = `pob-root-postinstall ; ${pkg.scripts.postinstall}`;
7
+ pkg.scripts[scriptName] =
8
+ `pob-root-postinstall ; ${pkg.scripts.postinstall}`;
10
9
  }
11
10
  };
12
11
 
@@ -26,7 +26,7 @@ function getProblemMatcherFromScriptName(scriptName) {
26
26
  return [];
27
27
  }
28
28
 
29
- export default function installVscodeTasks({ pkg }) {
29
+ export default async function installVscodeTasks({ pkg }) {
30
30
  const existingConfig = readJSON5(".vscode/tasks.json");
31
31
  const existingTasks = existingConfig?.tasks || [];
32
32
 
@@ -46,7 +46,7 @@ export default function installVscodeTasks({ pkg }) {
46
46
  (name !== "lint" &&
47
47
  name.startsWith("lint") &&
48
48
  !name.endsWith(":fix")) ||
49
- name === "tsc"
49
+ name === "tsc",
50
50
  ),
51
51
  });
52
52
  return;
@@ -75,7 +75,7 @@ export default function installVscodeTasks({ pkg }) {
75
75
 
76
76
  fs.writeFileSync(
77
77
  ".vscode/tasks.json",
78
- prettier.format(
78
+ await prettier.format(
79
79
  `{
80
80
  // See https://go.microsoft.com/fwlink/?LinkId=733558
81
81
  // for the documentation about the tasks.json format
@@ -85,7 +85,7 @@ export default function installVscodeTasks({ pkg }) {
85
85
  `,
86
86
  {
87
87
  filepath: ".vscode/tasks.json",
88
- }
89
- )
88
+ },
89
+ ),
90
90
  );
91
91
  }
package/bin/prettier.cjs CHANGED
@@ -6,7 +6,9 @@ const path = require("node:path");
6
6
  const pkg = require("prettier/package.json");
7
7
 
8
8
  // eslint-disable-next-line import/no-dynamic-require
9
- require(path.join(
10
- "prettier",
11
- typeof pkg.bin === "string" ? pkg.bin : pkg.bin.prettier
12
- ));
9
+ require(
10
+ path.join(
11
+ "prettier",
12
+ typeof pkg.bin === "string" ? pkg.bin : pkg.bin.prettier,
13
+ ),
14
+ );
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import "yarn-version";
@@ -31,7 +31,7 @@ const { lockfile, installAndDedupe } = (() => {
31
31
  }
32
32
 
33
33
  throw new Error(
34
- `Package manager not supported: ${pm.name}. Please run with yarn, npm or bun !`
34
+ `Package manager not supported: ${pm.name}. Please run with yarn, npm or bun !`,
35
35
  );
36
36
  })();
37
37
 
@@ -71,7 +71,7 @@ module.exports = function createLintStagedConfig() {
71
71
  : ""
72
72
  }}`]: (filenames) => {
73
73
  const packagejsonFilenames = filenames.filter((filename) =>
74
- filename.endsWith(".json")
74
+ filename.endsWith(".json"),
75
75
  );
76
76
 
77
77
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -17,14 +17,15 @@
17
17
  },
18
18
  "sideEffects": false,
19
19
  "bin": {
20
- "commitlint": "./bin/commitlint.cjs",
20
+ "commitlint": "./bin/commitlint.js",
21
21
  "pob-root-lint-staged": "./bin/pob-root-lint-staged.js",
22
22
  "pob-root-postinstall": "./bin/pob-root-postinstall.js",
23
23
  "pob-root-prettier": "./bin/prettier.cjs",
24
24
  "prettier": "./bin/prettier.cjs",
25
25
  "pretty-eslint-config": "./bin/pretty-eslint-config.js",
26
26
  "pretty-pkg": "./bin/pretty-pkg.js",
27
- "repository-check-dirty": "./bin/repository-check-dirty.js"
27
+ "repository-check-dirty": "./bin/repository-check-dirty.js",
28
+ "yarn-version": "./bin/yarn-version.js"
28
29
  },
29
30
  "main": "./lib/index.js",
30
31
  "exports": {
@@ -68,18 +69,19 @@
68
69
  "pob": {},
69
70
  "prettier": "@pob/root/prettier-config",
70
71
  "dependencies": {
71
- "@commitlint/cli": "18.6.1",
72
- "@pob/pretty-eslint-config": "5.4.1",
73
- "@pob/pretty-pkg": "7.1.1",
74
- "conventional-changelog-conventionalcommits": "^7.0.0",
75
- "cosmiconfig": "^8.3.6",
72
+ "@commitlint/cli": "19.3.0",
73
+ "@pob/pretty-eslint-config": "6.0.0",
74
+ "@pob/pretty-pkg": "8.0.0",
75
+ "conventional-changelog-conventionalcommits": "^8.0.0",
76
+ "cosmiconfig": "^9.0.0",
76
77
  "husky": "~9.0.11",
77
78
  "json5": "^2.2.2",
78
- "lint-staged": "15.2.2",
79
- "pob-dependencies": "11.3.1",
80
- "prettier": "2.8.8",
81
- "repository-check-dirty": "6.3.3",
79
+ "lint-staged": "15.2.5",
80
+ "pob-dependencies": "12.0.0",
81
+ "prettier": "3.3.1",
82
+ "repository-check-dirty": "7.0.0",
82
83
  "semver": "^7.3.7",
83
- "which-pm-runs": "1.1.0"
84
+ "which-pm-runs": "1.1.0",
85
+ "yarn-version": "1.0.0"
84
86
  }
85
87
  }
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- "use strict";
4
-
5
- const path = require("node:path");
6
- const pkg = require("@commitlint/cli/package.json");
7
-
8
- // eslint-disable-next-line import/no-dynamic-require
9
- require(path.join(
10
- "@commitlint/cli",
11
- typeof pkg.bin === "string" ? pkg.bin : pkg.bin.commitlint
12
- ));