typescript-bedrock 0.1.9 → 0.1.11

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/oxlintrc.json CHANGED
@@ -367,6 +367,12 @@
367
367
  "promise/no-callback-in-promise": "off"
368
368
  }
369
369
  },
370
+ {
371
+ "files": ["**/hooks/register.{js,mjs,ts,mts}"],
372
+ "rules": {
373
+ "import/max-dependencies": "off"
374
+ }
375
+ },
370
376
  {
371
377
  "files": ["**/*.d.{ts,mts,cts}"],
372
378
  "rules": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-bedrock",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Strictest Bun + TypeScript 7 tooling: shared configs, git hooks, a guard, and an adopt command.",
5
5
  "license": "MIT",
6
6
  "author": "xsyetopz",
@@ -18,7 +18,9 @@ const SCRIPTS = {
18
18
 
19
19
  /**
20
20
  * Picks where the repo gets typescript-bedrock from: the --package spec, then the
21
- * repo's own non-catalog spec, then its catalog pin, then this version.
21
+ * repo's own non-catalog spec, then its catalog pin, then this version. A `file:` or
22
+ * `link:` spec points into one machine's disk, which a clean runner lacks, so only
23
+ * --package keeps one.
22
24
  */
23
25
  const bedrockSpec = (
24
26
  manifest: Json,
@@ -30,7 +32,11 @@ const bedrockSpec = (
30
32
  if (packageSpec !== undefined) {
31
33
  return packageSpec;
32
34
  }
33
- if (typeof current === "string" && current !== "catalog:") {
35
+ if (
36
+ typeof current === "string" &&
37
+ current !== "catalog:" &&
38
+ !/^(?:file|link):/u.test(current)
39
+ ) {
34
40
  return current;
35
41
  }
36
42
  return typeof pinned === "string" ? pinned : String(own["version"]);