mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove unused dep, fix esbuild plugins
This commit is contained in:
4 files changed
+2
-287
No files matched your search
@@ -78,12 +78,12 @@ export function esmPlugin(packageLock: PackageLock, target?: string): Plugin {
|
||||
// fallthrough
|
||||
}
|
||||
|
||||
keys.push(`node_modules/${packageName}`);
|
||||
|
||||
if (packageName.startsWith("@jsr/")) {
|
||||
keys.push(`node_modules/@${packageName.slice(5).replace("__", "/")}`);
|
||||
}
|
||||
|
||||
keys.push(`node_modules/${packageName}`);
|
||||
|
||||
const packageInfo = keys
|
||||
.map((key) => packageLock.packages[key])
|
||||
.find((info) => info);
|
||||
|
||||
@@ -73,7 +73,6 @@ async function tryFileVariants(
|
||||
return indexFile;
|
||||
}
|
||||
}
|
||||
throw new Error("Directory without index file");
|
||||
}
|
||||
|
||||
// Try direct file with extensions
|
||||
|
||||
Reference in new issue
Block a user