mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore: update convert_to_workspace.ts script (#4631)
This commit is contained in:
parent
3149cdbc81
commit
4a1ed50dba
@ -252,10 +252,6 @@ function fixPackagePath(path: string) {
|
||||
// Generate `deno.json` file.
|
||||
const denoJson = JSON.parse(await Deno.readTextFile("deno.json"));
|
||||
denoJson.workspaces = orderedPackages.map((pkg) => `./${pkg}`);
|
||||
for (const pkg of packages) {
|
||||
const fixedPkg = fixPackageName(pkg);
|
||||
denoJson.imports[`@std/${fixedPkg}`] = `jsr:@std/${fixedPkg}@^${VERSION}`;
|
||||
}
|
||||
await Deno.writeTextFile(
|
||||
"deno.json",
|
||||
JSON.stringify(denoJson, null, 2) + "\n",
|
||||
|
Loading…
Reference in New Issue
Block a user