Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions packages/actor-core-cli/src/utils/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,21 +326,17 @@ export function resolvePlatformSpecificOptions(
pkgJson.name = opts.packageName;
}

if (pkgJson.devDependencies) {
pkgJson.devDependencies["actor-core"] = opts.version;
// If local dev, then use workspace names
const isLocalDev = process.env._ACTOR_CORE_CLI_DEV_TEMPLATE === "1";

for (const name in pkgJson.devDependencies) {
if (name.includes("actor-core"))
pkgJson.devDependencies[name] = isLocalDev ? "workspace:*" : opts.version;
}

// If local dev, then use workspace names
if (process.env._ACTOR_CORE_CLI_DEV_TEMPLATE === "1") {
for (const name in pkgJson.devDependencies) {
if (name.includes("actor-core"))
pkgJson.devDependencies[name] = "workspace:*";
}

for (const name in pkgJson.dependencies) {
if (name.includes("actor-core"))
pkgJson.devDependencies[name] = "workspace:*";
}
for (const name in pkgJson.dependencies) {
if (name.includes("actor-core"))
pkgJson.devDependencies[name] = isLocalDev ? "workspace:*" : opts.version;
}

const configOpts = {
Expand Down