blokctl 0.2.4 → 0.2.5
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.
|
@@ -382,13 +382,20 @@ export async function createProject(opts, version, currentPath = false, localRep
|
|
|
382
382
|
const deps = packageJsonContent[depGroup];
|
|
383
383
|
if (!deps)
|
|
384
384
|
continue;
|
|
385
|
+
for (const pkg of Object.keys(deps)) {
|
|
386
|
+
if (pkg.startsWith("@blok/")) {
|
|
387
|
+
const newPkg = pkg.replace("@blok/", "@blokjs/");
|
|
388
|
+
deps[newPkg] = "^0.2.0";
|
|
389
|
+
delete deps[pkg];
|
|
390
|
+
}
|
|
391
|
+
}
|
|
385
392
|
for (const [pkg, ver] of Object.entries(deps)) {
|
|
386
393
|
if (typeof ver === "string" && ver.startsWith("workspace:")) {
|
|
387
394
|
if (localRepoPath && workspacePackageMap[pkg]) {
|
|
388
395
|
deps[pkg] = `file:${path.resolve(repoSource, workspacePackageMap[pkg])}`;
|
|
389
396
|
}
|
|
390
397
|
else {
|
|
391
|
-
deps[pkg] = "^0.
|
|
398
|
+
deps[pkg] = "^0.2.0";
|
|
392
399
|
}
|
|
393
400
|
}
|
|
394
401
|
}
|