create-flow-os 0.0.1-dev.1771615229 → 0.0.1-dev.1771615498
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.
- package/index.ts +2 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -140,11 +140,12 @@ async function main() {
|
|
|
140
140
|
const finalPkg = (await Bun.file(pkgPath).json()) as { workspaces?: string[]; dependencies?: Record<string, string> };
|
|
141
141
|
delete finalPkg.workspaces;
|
|
142
142
|
if (finalPkg.dependencies) {
|
|
143
|
-
delete finalPkg.dependencies["@flow-os"];
|
|
144
143
|
for (const k of Object.keys(finalPkg.dependencies)) {
|
|
145
144
|
if (finalPkg.dependencies[k] === "workspace:*") finalPkg.dependencies[k] = "^0.0.1";
|
|
146
145
|
if (useDevTag && (k === "@flow-os" || k.startsWith("@flow-os/"))) finalPkg.dependencies[k] = "dev";
|
|
147
146
|
}
|
|
147
|
+
delete finalPkg.dependencies["@flow-os"];
|
|
148
|
+
finalPkg.dependencies = Object.fromEntries(Object.entries(finalPkg.dependencies).filter(([key]) => key !== "@flow-os"));
|
|
148
149
|
}
|
|
149
150
|
await Bun.write(pkgPath, JSON.stringify(finalPkg, null, 2));
|
|
150
151
|
|