spfn 0.3.0-beta.8 → 0.3.0-beta.9

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -72,6 +72,9 @@ function detectPackageManager(cwd) {
72
72
  function getRunCommand(pm) {
73
73
  return pm === "npm" ? "npm run" : `${pm} run`;
74
74
  }
75
+ function getRunScriptArgs(pm, script, args) {
76
+ return pm === "npm" ? ["run", script, "--", ...args] : ["run", script, ...args];
77
+ }
75
78
  var init_package_manager = __esm({
76
79
  "src/utils/package-manager.ts"() {
77
80
  "use strict";
@@ -948,7 +951,7 @@ import { dirname as dirname2, join as join10 } from "path";
948
951
  import { fileURLToPath as fileURLToPath2 } from "url";
949
952
  function getCliVersion() {
950
953
  if (true) {
951
- return "0.3.0-beta.8";
954
+ return "0.3.0-beta.9";
952
955
  }
953
956
  return fromPackageJson ?? (fromPackageJson = readPackageVersion());
954
957
  }
@@ -2650,7 +2653,7 @@ catch (error)
2650
2653
  };
2651
2654
  const startNext = () => {
2652
2655
  const nextCmd = pm === "npm" ? "npm" : pm;
2653
- const nextArgs = ["run", "spfn:next", "--", "--port", String(nextPort)];
2656
+ const nextArgs = getRunScriptArgs(pm, "spfn:next", ["--port", String(nextPort)]);
2654
2657
  nextProcess = execa6(nextCmd, nextArgs, {
2655
2658
  cwd,
2656
2659
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spfn",
3
- "version": "0.3.0-beta.8",
3
+ "version": "0.3.0-beta.9",
4
4
  "description": "Scaffold a full-stack TypeScript backend onto a Next.js app built with an AI coding agent: auth, database, typed routes and codegen, one fixed vertical slice per feature",
5
5
  "type": "module",
6
6
  "bin": {