@pob/root 27.11.0 → 27.13.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.
File without changes
@@ -60,7 +60,7 @@ export const getPackageManagerCommands = (pm, isYarnBerry) => {
60
60
  ciPreStep: `name: Install pnpm
61
61
  uses: pnpm/action-setup@v6
62
62
  with:
63
- version: 11`,
63
+ version: 12`,
64
64
  installOnCICommand: "pnpm install --frozen-lockfile",
65
65
  installMutableCommand: "pnpm install",
66
66
  installOnDiffCommand: "pnpm install --frozen-lockfile",
@@ -78,6 +78,9 @@ const CODE_COMMANDS = [OXFMT, hasOxlint && OXLINT_FIX, ESLINT_FIX].filter(
78
78
  Boolean,
79
79
  );
80
80
 
81
+ // a monorepo without packages has no tsconfig.json, and tsc fails without one
82
+ const hasTsconfig = fs.existsSync(path.resolve("tsconfig.json"));
83
+
81
84
  const getSrcDirectories = () => {
82
85
  if (workspacesPattern) {
83
86
  return `${workspacesPattern}/{src,lib}`;
@@ -188,7 +191,7 @@ const createLegacyConfig = ({
188
191
  [cssPattern]: [OXFMT],
189
192
  // Tasks are declared as functions so that lint-staged does not append the
190
193
  // matched filenames: both commands build the whole project.
191
- [tscTriggerPattern]: buildTasks,
194
+ ...(buildTasks.length > 0 && { [tscTriggerPattern]: buildTasks }),
192
195
  });
193
196
 
194
197
  /**
@@ -275,10 +278,10 @@ const createConfig = ({
275
278
  hasRollup
276
279
  ? [
277
280
  createBuildTask("rollup --config rollup.config.mjs"),
278
- createBuildTask("tsc -b"),
279
- ]
280
- : createBuildTask("tsc"),
281
- ],
281
+ hasTsconfig && createBuildTask("tsc -b"),
282
+ ].filter(Boolean)
283
+ : hasTsconfig && createBuildTask("tsc"),
284
+ ].filter(Boolean),
282
285
  });
283
286
  };
284
287
 
@@ -296,8 +299,13 @@ export default function createLintStagedConfig() {
296
299
 
297
300
  const patterns = {
298
301
  buildTasks: hasRollup
299
- ? [[() => "rollup --config rollup.config.mjs", () => "tsc -b"]] // run in parallel
300
- : [() => "tsc"],
302
+ ? [
303
+ [
304
+ () => "rollup --config rollup.config.mjs",
305
+ hasTsconfig && (() => "tsc -b"),
306
+ ].filter(Boolean),
307
+ ] // run in parallel
308
+ : [hasTsconfig && (() => "tsc")].filter(Boolean),
301
309
  cssPattern: `{.storybook,${srcDirectories}}/**/*.css`,
302
310
  hasRollup,
303
311
  otherJsonPattern: "!(package|package-lock|.eslintrc).json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "27.11.0",
3
+ "version": "27.13.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",
@@ -43,6 +43,7 @@
43
43
  "./oxfmt.js": "./oxfmt.js",
44
44
  "./tsconfigs/base.json": "./tsconfigs/base.json",
45
45
  "./tsconfigs/strict.json": "./tsconfigs/strict.json",
46
+ "./tsconfigs/targets/bun.json": "./tsconfigs/targets/bun.json",
46
47
  "./tsconfigs/targets/esbuild-node-22.json": "./tsconfigs/targets/esbuild-node-22.json",
47
48
  "./tsconfigs/targets/esbuild-node-24.json": "./tsconfigs/targets/esbuild-node-24.json",
48
49
  "./tsconfigs/targets/node-22.json": "./tsconfigs/targets/node-22.json",
@@ -65,6 +66,7 @@
65
66
  "@commitlint/format": "21.0.1",
66
67
  "@commitlint/lint": "21.0.2",
67
68
  "@commitlint/types": "21.0.1",
69
+ "@pob/version": "6.5.0",
68
70
  "conventional-changelog-conventionalcommits": "^9.1.0",
69
71
  "conventional-changelog-writer": "^8.2.0",
70
72
  "conventional-commits-parser": "^6.2.1",
@@ -72,11 +74,10 @@
72
74
  "lint-staged": "17.4.1",
73
75
  "oxfmt": "0.54.0",
74
76
  "oxlint": "1.85.0",
75
- "oxlint-tsgolint": "7.0.2002",
77
+ "oxlint-tsgolint": "7.0.2003",
76
78
  "picomatch": "^4.0.7",
77
- "semver": "^7.7.3",
78
- "@pob/version": "6.4.0",
79
- "pob-dependencies": "27.10.0"
79
+ "pob-dependencies": "27.11.0",
80
+ "semver": "^7.7.3"
80
81
  },
81
82
  "engines": {
82
83
  "node": ">=22.18.0"
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "@pob:target:Bun",
4
+
5
+ "compilerOptions": {
6
+ "target": "esnext",
7
+ "lib": ["esnext"],
8
+ "module": "preserve",
9
+ "moduleResolution": "bundler",
10
+ "moduleDetection": "force",
11
+ "allowImportingTsExtensions": true,
12
+ "rewriteRelativeImportExtensions": true,
13
+ "esModuleInterop": true,
14
+ "types": ["bun"]
15
+ }
16
+ }