@pob/root 28.0.0 → 28.2.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.
@@ -47,6 +47,7 @@ const { default: config } = await import(pathToFileURL(configPath).href);
47
47
  const SKIP = [
48
48
  "git add", // side effects during agent execution
49
49
  "tsc", // too slow per-file (matches "tsc" and "tsc -b")
50
+ "tsrs", // too slow per-file (matches "tsrs" and "tsrs -b")
50
51
  "rollup", // too slow per-file
51
52
  "yarn", // package manager install/dedupe
52
53
  "pnpm", // package manager install/dedupe
@@ -82,6 +82,10 @@ const CODE_COMMANDS = [hasOxlint && OXLINT_FIX, ESLINT_FIX, OXFMT].filter(
82
82
  // a monorepo without packages has no tsconfig.json, and tsc fails without one
83
83
  const hasTsconfig = fs.existsSync(path.resolve("tsconfig.json"));
84
84
 
85
+ // same compiler as the "tsc" script added by pob: tsrs and tsc do not share
86
+ // their .tsbuildinfo
87
+ const TSC = pkg.devDependencies?.tsrs ? "tsrs" : "tsc";
88
+
85
89
  const getSrcDirectories = () => {
86
90
  if (workspacesPattern) {
87
91
  return `${workspacesPattern}/{src,lib}`;
@@ -227,8 +231,8 @@ const createConfig = ({
227
231
  // Both build the whole project, in parallel.
228
232
  const buildCommands = (
229
233
  hasRollup
230
- ? ["rollup --config rollup.config.mjs", hasTsconfig && "tsc -b"]
231
- : [hasTsconfig && "tsc"]
234
+ ? ["rollup --config rollup.config.mjs", hasTsconfig && `${TSC} -b`]
235
+ : [hasTsconfig && TSC]
232
236
  ).filter(Boolean);
233
237
 
234
238
  // A single function at the top level: lint-staged runs its commands
@@ -299,10 +303,10 @@ export default function createLintStagedConfig() {
299
303
  ? [
300
304
  [
301
305
  () => "rollup --config rollup.config.mjs",
302
- hasTsconfig && (() => "tsc -b"),
306
+ hasTsconfig && (() => `${TSC} -b`),
303
307
  ].filter(Boolean),
304
308
  ] // run in parallel
305
- : [hasTsconfig && (() => "tsc")].filter(Boolean),
309
+ : [hasTsconfig && (() => TSC)].filter(Boolean),
306
310
  cssPattern: `{.storybook,${srcDirectories}}/**/*.css`,
307
311
  hasRollup,
308
312
  otherJsonPattern: "!(package|package-lock|.eslintrc).json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "28.0.0",
3
+ "version": "28.2.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",
@@ -66,7 +66,7 @@
66
66
  "@commitlint/format": "21.2.3",
67
67
  "@commitlint/lint": "21.2.3",
68
68
  "@commitlint/types": "21.2.3",
69
- "@pob/version": "8.0.0",
69
+ "@pob/version": "8.2.0",
70
70
  "conventional-changelog-conventionalcommits": "^10.0.0",
71
71
  "conventional-changelog-writer": "^9.0.0",
72
72
  "conventional-commits-parser": "^7.0.0",
@@ -76,7 +76,7 @@
76
76
  "oxlint": "1.85.0",
77
77
  "oxlint-tsgolint": "7.0.2003",
78
78
  "picomatch": "^4.0.7",
79
- "pob-dependencies": "28.0.0",
79
+ "pob-dependencies": "28.2.0",
80
80
  "semver": "^7.7.3"
81
81
  },
82
82
  "engines": {