@ship-cli/opencode 0.2.1 → 0.2.3
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/package.json +1 -1
- package/src/plugin.ts +5 -5
package/package.json
CHANGED
package/src/plugin.ts
CHANGED
|
@@ -374,8 +374,8 @@ const ShellService = Context.GenericTag<ShellService>("ShellService");
|
|
|
374
374
|
*/
|
|
375
375
|
const makeShellService = (_$: BunShell, defaultCwd?: string): ShellService => {
|
|
376
376
|
const getCommand = (): string[] => {
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
// Use SHIP_DEV_MODE for explicit dev mode opt-in (avoids NODE_ENV conflicts)
|
|
378
|
+
if (process.env.SHIP_DEV_MODE === "true") {
|
|
379
379
|
return ["node", "--import=tsx", "packages/cli/src/bin.ts"];
|
|
380
380
|
}
|
|
381
381
|
return ["ship"];
|
|
@@ -912,8 +912,8 @@ const makeShipService = Effect.gen(function* () {
|
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
-
// Build command
|
|
916
|
-
const cmd = process.env.
|
|
915
|
+
// Build command - use pnpm in dev mode (SHIP_DEV_MODE=true)
|
|
916
|
+
const cmd = process.env.SHIP_DEV_MODE === "true" ? ["pnpm", "ship"] : ["ship"];
|
|
917
917
|
const args = [...cmd, "webhook", "forward"];
|
|
918
918
|
if (events) {
|
|
919
919
|
args.push("--events", events);
|
|
@@ -1567,7 +1567,7 @@ const actionHandlers: Record<string, ActionHandler> = {
|
|
|
1567
1567
|
Effect.gen(function* () {
|
|
1568
1568
|
const status = yield* ship.getStackStatus(args.workdir);
|
|
1569
1569
|
if (!status.isRepo) {
|
|
1570
|
-
return `Error: ${status.error || "Not a jj repository"}`;
|
|
1570
|
+
return `Error: ${status.error || "Not a jj repository. Run 'jj git init --colocate' to set up jj for stacked changes."}`;
|
|
1571
1571
|
}
|
|
1572
1572
|
if (!status.change) {
|
|
1573
1573
|
return "Error: Could not get current change";
|