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 +6 -0
- package/package.json +1 -1
- package/src/adopt/template.ts +8 -2
package/oxlintrc.json
CHANGED
package/package.json
CHANGED
package/src/adopt/template.ts
CHANGED
|
@@ -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 (
|
|
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"]);
|