@meetploy/cli 1.11.0 → 1.11.2

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
@@ -981,7 +981,11 @@ async function bundleWorker(options) {
981
981
  outfile: bundlePath,
982
982
  minify: false,
983
983
  sourcemap: false,
984
- external: ["cloudflare:*"],
984
+ external: [
985
+ "cloudflare:*",
986
+ "node:*",
987
+ ...NODE_BUILTINS
988
+ ],
985
989
  alias: {
986
990
  __ploy_user_worker__: entryPoint
987
991
  },
@@ -992,11 +996,55 @@ async function bundleWorker(options) {
992
996
  await build(buildOptions);
993
997
  return bundlePath;
994
998
  }
999
+ var NODE_BUILTINS;
995
1000
  var init_bundler = __esm({
996
1001
  "../emulator/dist/bundler/bundler.js"() {
997
1002
  init_db_runtime();
998
1003
  init_queue_runtime();
999
1004
  init_workflow_runtime();
1005
+ NODE_BUILTINS = [
1006
+ "assert",
1007
+ "async_hooks",
1008
+ "buffer",
1009
+ "child_process",
1010
+ "cluster",
1011
+ "console",
1012
+ "constants",
1013
+ "crypto",
1014
+ "dgram",
1015
+ "diagnostics_channel",
1016
+ "dns",
1017
+ "domain",
1018
+ "events",
1019
+ "fs",
1020
+ "http",
1021
+ "http2",
1022
+ "https",
1023
+ "inspector",
1024
+ "module",
1025
+ "net",
1026
+ "os",
1027
+ "path",
1028
+ "perf_hooks",
1029
+ "process",
1030
+ "punycode",
1031
+ "querystring",
1032
+ "readline",
1033
+ "repl",
1034
+ "stream",
1035
+ "string_decoder",
1036
+ "sys",
1037
+ "timers",
1038
+ "tls",
1039
+ "trace_events",
1040
+ "tty",
1041
+ "url",
1042
+ "util",
1043
+ "v8",
1044
+ "vm",
1045
+ "worker_threads",
1046
+ "zlib"
1047
+ ];
1000
1048
  }
1001
1049
  });
1002
1050
  function createFileWatcher(srcDir, onRebuild) {
@@ -3951,12 +3999,18 @@ async function authCommand(options) {
3951
3999
  // src/commands/build.ts
3952
4000
  init_cli();
3953
4001
  function detectPackageManager() {
3954
- const cwd = process.cwd();
3955
- if (existsSync(join(cwd, "pnpm-lock.yaml"))) {
3956
- return "pnpm";
3957
- }
3958
- if (existsSync(join(cwd, "yarn.lock"))) {
3959
- return "yarn";
4002
+ let dir = process.cwd();
4003
+ while (dir !== "/") {
4004
+ if (existsSync(join(dir, "pnpm-lock.yaml"))) {
4005
+ return "pnpm";
4006
+ }
4007
+ if (existsSync(join(dir, "yarn.lock"))) {
4008
+ return "yarn";
4009
+ }
4010
+ if (existsSync(join(dir, "package-lock.json"))) {
4011
+ return "npm";
4012
+ }
4013
+ dir = join(dir, "..");
3960
4014
  }
3961
4015
  return "npm";
3962
4016
  }
@@ -3984,6 +4038,8 @@ function runWranglerBuild(entrypoint, ployConfig) {
3984
4038
  const compatibilityDate = getCompatibilityDate(ployConfig);
3985
4039
  const wranglerConfig = {
3986
4040
  ...existingConfig,
4041
+ // Wrangler requires a name, use placeholder since ploy build doesn't deploy
4042
+ name: existingConfig.name || "ploy-build",
3987
4043
  main: relativeEntrypoint,
3988
4044
  // Use compatibility date from config, or from existing wrangler config, or default
3989
4045
  compatibility_date: existingConfig.compatibility_date || compatibilityDate,
@@ -3999,10 +4055,10 @@ function runWranglerBuild(entrypoint, ployConfig) {
3999
4055
  args2 = ["wrangler", "build", "--config", tempConfigPath];
4000
4056
  } else if (packageManager === "yarn") {
4001
4057
  command2 = "yarn";
4002
- args2 = ["wrangler", "build", "--config", tempConfigPath];
4058
+ args2 = ["dlx", "wrangler", "build", "--config", tempConfigPath];
4003
4059
  } else {
4004
4060
  command2 = "pnpm";
4005
- args2 = ["wrangler", "build", "--config", tempConfigPath];
4061
+ args2 = ["exec", "wrangler", "build", "--config", tempConfigPath];
4006
4062
  }
4007
4063
  console.log(`Running: ${command2} ${args2.join(" ")}`);
4008
4064
  const child = spawn(command2, args2, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetploy/cli",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
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": "catalog:",
45
+ "wrangler": "catalog:",
46
46
  "yaml": "2.8.1"
47
47
  },
48
48
  "devDependencies": {