summaryrefslogtreecommitdiffhomepage
path: root/nix/scripts/canonicalize-node-modules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nix/scripts/canonicalize-node-modules.ts')
-rw-r--r--nix/scripts/canonicalize-node-modules.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/nix/scripts/canonicalize-node-modules.ts b/nix/scripts/canonicalize-node-modules.ts
index 791d96dfe..bb004f3c5 100644
--- a/nix/scripts/canonicalize-node-modules.ts
+++ b/nix/scripts/canonicalize-node-modules.ts
@@ -35,9 +35,11 @@ for (const entry of directories) {
versions.set(slug, list)
}
-const semverModule = (await import(join(bunRoot, "node_modules/semver"))) as SemverLike | {
- default: SemverLike
-}
+const semverModule = (await import(join(bunRoot, "node_modules/semver"))) as
+ | SemverLike
+ | {
+ default: SemverLike
+ }
const semver = "default" in semverModule ? semverModule.default : semverModule
const selections = new Map<string, Entry>()
@@ -91,4 +93,4 @@ for (const line of rewrites.slice(0, 20)) {
}
if (rewrites.length > 20) {
console.log(" ...")
-} \ No newline at end of file
+}