@meetploy/cli 1.11.1 → 1.11.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.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Ploy Dev Dashboard</title>
7
+ <script type="module" crossorigin src="/assets/main-X-CWS305.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/main-Bsiap3cJ.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
package/dist/index.js CHANGED
@@ -3998,15 +3998,11 @@ async function authCommand(options) {
3998
3998
 
3999
3999
  // src/commands/build.ts
4000
4000
  init_cli();
4001
- function detectPackageManager() {
4002
- const cwd = process.cwd();
4003
- if (existsSync(join(cwd, "pnpm-lock.yaml"))) {
4004
- return "pnpm";
4005
- }
4006
- if (existsSync(join(cwd, "yarn.lock"))) {
4007
- return "yarn";
4008
- }
4009
- return "npm";
4001
+ function getWranglerBinPath() {
4002
+ const wranglerMain = import.meta.resolve("wrangler");
4003
+ const wranglerMainPath = fileURLToPath(wranglerMain);
4004
+ const wranglerPackageDir = dirname(dirname(wranglerMainPath));
4005
+ return join(wranglerPackageDir, "bin", "wrangler.js");
4010
4006
  }
4011
4007
  function readExistingWranglerConfig(cwd) {
4012
4008
  const jsonPath = join(cwd, "wrangler.json");
@@ -4025,7 +4021,6 @@ function readExistingWranglerConfig(cwd) {
4025
4021
  function runWranglerBuild(entrypoint, ployConfig) {
4026
4022
  return new Promise((resolve, reject) => {
4027
4023
  const cwd = process.cwd();
4028
- const packageManager = detectPackageManager();
4029
4024
  const existingConfig = readExistingWranglerConfig(cwd);
4030
4025
  const relativeEntrypoint = relative(cwd, entrypoint);
4031
4026
  const compatibilityFlags = getCompatibilityFlags(ployConfig);
@@ -4042,18 +4037,9 @@ function runWranglerBuild(entrypoint, ployConfig) {
4042
4037
  };
4043
4038
  const tempConfigPath = join(cwd, ".wrangler-ploy-build.json");
4044
4039
  writeFileSync(tempConfigPath, JSON.stringify(wranglerConfig, null, " "));
4045
- let command2;
4046
- let args2;
4047
- if (packageManager === "npm") {
4048
- command2 = "npx";
4049
- args2 = ["wrangler", "build", "--config", tempConfigPath];
4050
- } else if (packageManager === "yarn") {
4051
- command2 = "yarn";
4052
- args2 = ["wrangler", "build", "--config", tempConfigPath];
4053
- } else {
4054
- command2 = "pnpm";
4055
- args2 = ["wrangler", "build", "--config", tempConfigPath];
4056
- }
4040
+ const wranglerBin = getWranglerBinPath();
4041
+ const command2 = "node";
4042
+ const args2 = [wranglerBin, "build", "--config", tempConfigPath];
4057
4043
  console.log(`Running: ${command2} ${args2.join(" ")}`);
4058
4044
  const child = spawn(command2, args2, {
4059
4045
  cwd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetploy/cli",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  "esbuild": "^0.24.0",
42
42
  "hono": "^4.7.0",
43
43
  "openapi-fetch": "0.14.0",
44
- "workerd": "1.20260103.0",
45
- "wrangler": "4.53.0",
44
+ "workerd": "1.20260117.0",
45
+ "wrangler": "4.59.2",
46
46
  "yaml": "2.8.1"
47
47
  },
48
48
  "devDependencies": {