chore: update convert_to_workspace.ts script (#4631)

This commit is contained in:
Bartek Iwańczuk 2024-04-23 20:46:15 +01:00 committed by GitHub
parent 3149cdbc81
commit 4a1ed50dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",