@meetploy/cli 1.11.0 → 1.11.1

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 +51 -1
  2. package/package.json +1 -1
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) {
@@ -3984,6 +4032,8 @@ function runWranglerBuild(entrypoint, ployConfig) {
3984
4032
  const compatibilityDate = getCompatibilityDate(ployConfig);
3985
4033
  const wranglerConfig = {
3986
4034
  ...existingConfig,
4035
+ // Wrangler requires a name, use placeholder since ploy build doesn't deploy
4036
+ name: existingConfig.name || "ploy-build",
3987
4037
  main: relativeEntrypoint,
3988
4038
  // Use compatibility date from config, or from existing wrangler config, or default
3989
4039
  compatibility_date: existingConfig.compatibility_date || compatibilityDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetploy/cli",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",