create-cloudflare 0.0.0-881ea7be → 0.0.0-941764d0

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.
@@ -37,7 +37,8 @@ async function bundleMain() {
37
37
  ],
38
38
  });
39
39
 
40
- let main = result.outputFiles[0].text;
40
+ // Store the original promise (before Angular/Zone.js replaces it) on the global scope.
41
+ let main = "globalThis.OGPromise = Promise;\n" + result.outputFiles[0].text;
41
42
 
42
43
  // Patch any dynamic imports (converting `require()` calls to `import()` calls).
43
44
  main = main.replace(
@@ -45,7 +46,9 @@ async function bundleMain() {
45
46
  'promises.push(import("./" + __webpack_require__.u(chunkId)).then((mod) => installChunk(mod.default))'
46
47
  );
47
48
  // Export the fetch handler (grabbing it from the global).
48
- main += "\nexport default { fetch : globalThis.__workerFetchHandler };";
49
+ // Also Cloudflare expects `fetch()` to return an original Promise (not a ZoneAwarePromise).
50
+ main +=
51
+ "\nexport default { fetch: (request, env) => globalThis.OGPromise.resolve(globalThis.__workerFetchHandler(request, env)) };";
49
52
 
50
53
  await fs.writeFile(path.resolve(workerPath, "index.js"), main);
51
54
  }
package/dist/cli.js CHANGED
@@ -53150,7 +53150,7 @@ var status = {
53150
53150
  success: bgRed(` SUCCESS `)
53151
53151
  };
53152
53152
  var space = (n = 1) => {
53153
- return [...Array(n)].map(() => hidden("-")).join("");
53153
+ return hidden("\u200A".repeat(n));
53154
53154
  };
53155
53155
  var logRaw = (msg) => {
53156
53156
  if (process.env.VITEST)
@@ -54350,6 +54350,7 @@ var leftT = gray(shapes.leftT);
54350
54350
  var textInput = async (opts) => {
54351
54351
  const { renderSubmitted, question, defaultValue, validate, acceptDefault } = opts;
54352
54352
  const helpText = opts.helpText || ``;
54353
+ const format3 = opts.format || ((val) => val);
54353
54354
  const prompt = new oD({
54354
54355
  defaultValue,
54355
54356
  validate,
@@ -54359,19 +54360,21 @@ var textInput = async (opts) => {
54359
54360
  case "initial":
54360
54361
  body += `${blCorner} ${bold(question)} ${dim(helpText)}
54361
54362
  `;
54362
- body += `${space(2)}${gray(defaultValue)}
54363
+ body += `${space(2)}${gray(format3(defaultValue))}
54363
54364
  `;
54364
54365
  break;
54365
54366
  case "active":
54366
54367
  body += `${blCorner} ${bold(question)} ${dim(helpText)}
54367
54368
  `;
54368
- body += `${space(2)}${this.value}
54369
+ body += `${space(2)}${format3(this.value || dim(defaultValue))}
54369
54370
  `;
54370
54371
  break;
54371
54372
  case "submit":
54372
54373
  body += `${leftT} ${question}
54373
54374
  `;
54374
- body += `${grayBar} ${renderSubmitted(this.value)}
54375
+ body += `${grayBar} ${renderSubmitted(
54376
+ format3(this.value)
54377
+ )}
54375
54378
  ${grayBar}`;
54376
54379
  break;
54377
54380
  case "error":
@@ -54381,7 +54384,7 @@ ${grayBar}`;
54381
54384
  `;
54382
54385
  body += `${blCorner} ${question} ${dim(helpText)}
54383
54386
  `;
54384
- body += `${space(2)}${this.value}
54387
+ body += `${space(2)}${format3(this.value)}
54385
54388
  `;
54386
54389
  break;
54387
54390
  default:
@@ -59416,7 +59419,7 @@ var Yargs = YargsFactory(esm_default);
59416
59419
  var yargs_default = Yargs;
59417
59420
 
59418
59421
  // package.json
59419
- var version = "0.0.0-881ea7be";
59422
+ var version = "0.0.0-941764d0";
59420
59423
 
59421
59424
  // src/common.ts
59422
59425
  var import_fs6 = require("fs");
@@ -59471,26 +59474,26 @@ var detectPackageManager = () => {
59471
59474
  };
59472
59475
 
59473
59476
  // src/helpers/command.ts
59474
- var runCommand = async (command2, opts) => {
59477
+ var runCommand = async (command2, opts = {}) => {
59475
59478
  if (typeof command2 === "string") {
59476
59479
  command2 = command2.trim().replace(/\s+/g, ` `).split(" ");
59477
59480
  }
59478
59481
  return printAsyncStatus({
59479
- useSpinner: opts?.useSpinner ?? opts?.silent,
59480
- startText: opts?.startText || command2.join(" "),
59481
- doneText: opts?.doneText,
59482
+ useSpinner: opts.useSpinner ?? opts.silent,
59483
+ startText: opts.startText || command2.join(" "),
59484
+ doneText: opts.doneText,
59482
59485
  promise() {
59483
59486
  const [executable, ...args] = command2;
59484
- const squelch = opts?.silent || process.env.VITEST;
59487
+ const squelch = opts.silent || process.env.VITEST;
59485
59488
  const cmd = (0, import_cross_spawn.spawn)(executable, [...args], {
59486
59489
  // TODO: ideally inherit stderr, but npm install uses this for warnings
59487
59490
  // stdio: [ioMode, ioMode, "inherit"],
59488
59491
  stdio: squelch ? "pipe" : "inherit",
59489
59492
  env: {
59490
59493
  ...process.env,
59491
- ...opts?.env
59494
+ ...opts.env
59492
59495
  },
59493
- cwd: opts?.cwd
59496
+ cwd: opts.cwd
59494
59497
  });
59495
59498
  let output = ``;
59496
59499
  if (opts?.captureOutput ?? squelch) {
@@ -59503,10 +59506,19 @@ var runCommand = async (command2, opts) => {
59503
59506
  }
59504
59507
  return new Promise((resolve9, reject) => {
59505
59508
  cmd.on("close", (code) => {
59506
- if (code === 0) {
59507
- resolve9(stripAnsi(output));
59508
- } else {
59509
- reject(new Error(output, { cause: code }));
59509
+ try {
59510
+ if (code !== 0) {
59511
+ throw new Error(output, { cause: code });
59512
+ }
59513
+ const transformOutput = opts.transformOutput ?? ((result) => result);
59514
+ const processedOutput = transformOutput(stripAnsi(output));
59515
+ resolve9(processedOutput);
59516
+ } catch (e) {
59517
+ if (opts.fallbackOutput) {
59518
+ resolve9(opts.fallbackOutput(e));
59519
+ } else {
59520
+ reject(new Error(output, { cause: e }));
59521
+ }
59510
59522
  }
59511
59523
  });
59512
59524
  });
@@ -59519,9 +59531,11 @@ async function runCommands({ commands, ...opts }) {
59519
59531
  startText: opts.startText,
59520
59532
  doneText: opts.doneText,
59521
59533
  async promise() {
59534
+ const results = [];
59522
59535
  for (const command2 of commands) {
59523
- await runCommand(command2, { ...opts, useSpinner: false });
59536
+ results.push(await runCommand(command2, { ...opts, useSpinner: false }));
59524
59537
  }
59538
+ return results.join("\n");
59525
59539
  }
59526
59540
  });
59527
59541
  }
@@ -59538,8 +59552,9 @@ var printAsyncStatus = async ({
59538
59552
  promise = promise();
59539
59553
  }
59540
59554
  try {
59541
- await promise;
59542
- s?.stop(opts.doneText);
59555
+ const output = await promise;
59556
+ const doneText = typeof opts.doneText === "function" ? opts.doneText(output) : opts.doneText;
59557
+ s?.stop(doneText);
59543
59558
  } catch (err) {
59544
59559
  s?.stop(err.message);
59545
59560
  } finally {
@@ -59652,6 +59667,24 @@ var listAccounts = async () => {
59652
59667
  });
59653
59668
  return accounts;
59654
59669
  };
59670
+ async function getWorkerdCompatibilityDate() {
59671
+ const { npm: npm12 } = detectPackageManager();
59672
+ return runCommand(`${npm12} info workerd dist-tags.latest`, {
59673
+ silent: true,
59674
+ captureOutput: true,
59675
+ startText: "Retrieving current workerd compatibility date",
59676
+ transformOutput: (result) => {
59677
+ const match = result.match(/\d+\.(\d{4})(\d{2})(\d{2})\.\d+/);
59678
+ if (!match) {
59679
+ throw new Error("Could not find workerd date");
59680
+ }
59681
+ const [, year, month, date] = match;
59682
+ return `${year}-${month}-${date}`;
59683
+ },
59684
+ fallbackOutput: () => "2023-05-18",
59685
+ doneText: (output) => `${brandColor("compatibility date")} ${dim(output)}`
59686
+ });
59687
+ }
59655
59688
 
59656
59689
  // src/helpers/poll.ts
59657
59690
  var import_promises = require("node:dns/promises");
@@ -59729,14 +59762,15 @@ var validateProjectDirectory = (relativePath) => {
59729
59762
  const existsAlready = (0, import_fs6.existsSync)(path3);
59730
59763
  const isEmpty = existsAlready && (0, import_fs6.readdirSync)(path3).length === 0;
59731
59764
  if (existsAlready && !isEmpty) {
59732
- crash(
59733
- `Directory \`${relativePath}\` already exists and is not empty. Please choose a new name.`
59734
- );
59765
+ return `Directory \`${relativePath}\` already exists and is not empty. Please choose a new name.`;
59735
59766
  }
59736
59767
  };
59737
59768
  var setupProjectDirectory = (args) => {
59738
59769
  const path3 = (0, import_path6.resolve)(args.projectName);
59739
- validateProjectDirectory(path3);
59770
+ const err = validateProjectDirectory(path3);
59771
+ if (err) {
59772
+ crash(err);
59773
+ }
59740
59774
  const directory = (0, import_path6.dirname)(path3);
59741
59775
  const name = (0, import_path6.basename)(path3);
59742
59776
  (0, import_fs6.mkdirSync)(directory, { recursive: true });
@@ -60021,10 +60055,10 @@ var config = {
60021
60055
  displayName: "Angular",
60022
60056
  packageScripts: {
60023
60057
  process: "node ./tools/copy-worker-files.mjs && node ./tools/copy-client-files.mjs && node ./tools/bundle.mjs",
60024
- prestart: `${npm2} run build:ssr && npm run process`,
60058
+ prestart: `${npm2} run build:ssr && ${npm2} run process`,
60025
60059
  start: "wrangler pages dev dist/cloudflare --compatibility-date=2021-09-20 --experimental-local",
60026
- predeploy: `${npm2} run build:ssr && npm run process`,
60027
- deploy: "wrangler pages publish dist/cloudflare"
60060
+ predeploy: `${npm2} run build:ssr && ${npm2} run process`,
60061
+ deploy: "wrangler pages deploy dist/cloudflare"
60028
60062
  },
60029
60063
  deployCommand: "deploy",
60030
60064
  devCommand: "start"
@@ -60119,7 +60153,7 @@ var config2 = {
60119
60153
  displayName: "Astro",
60120
60154
  packageScripts: {
60121
60155
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- astro dev`,
60122
- "pages:deploy": `astro build && wrangler pages publish ./dist`
60156
+ "pages:deploy": `astro build && wrangler pages deploy ./dist`
60123
60157
  },
60124
60158
  testFlags: [
60125
60159
  "--skip-houston",
@@ -60148,7 +60182,7 @@ var config3 = {
60148
60182
  displayName: "Docusaurus",
60149
60183
  packageScripts: {
60150
60184
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm3} run start`,
60151
- "pages:deploy": `NODE_VERSION=16 ${npm3} run build && wrangler pages publish ./build`
60185
+ "pages:deploy": `NODE_VERSION=16 ${npm3} run build && wrangler pages deploy ./build`
60152
60186
  }
60153
60187
  };
60154
60188
  var docusaurus_default = config3;
@@ -60189,7 +60223,7 @@ var config4 = {
60189
60223
  displayName: "Gatsby",
60190
60224
  packageScripts: {
60191
60225
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 8000 -- ${npm4} run develop`,
60192
- "pages:deploy": `${npm4} run build && wrangler pages publish ./public`
60226
+ "pages:deploy": `${npm4} run build && wrangler pages deploy ./public`
60193
60227
  }
60194
60228
  };
60195
60229
  var gatsby_default = config4;
@@ -60315,7 +60349,7 @@ var config6 = {
60315
60349
  displayName: "Next",
60316
60350
  packageScripts: {
60317
60351
  "pages:build": `${npx3} @cloudflare/next-on-pages@1`,
60318
- "pages:deploy": `${npm5} run pages:build && wrangler pages publish .vercel/output/static`,
60352
+ "pages:deploy": `${npm5} run pages:build && wrangler pages deploy .vercel/output/static`,
60319
60353
  "pages:watch": `${npx3} @cloudflare/next-on-pages@1 --watch`,
60320
60354
  "pages:dev": `${npx3} wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat`
60321
60355
  },
@@ -60353,7 +60387,7 @@ var config7 = {
60353
60387
  displayName: "Nuxt",
60354
60388
  packageScripts: {
60355
60389
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- npm run dev`,
60356
- "pages:deploy": `NODE_VERSION=17 npm run generate && wrangler pages publish ./dist`
60390
+ "pages:deploy": `NODE_VERSION=17 npm run generate && wrangler pages deploy ./dist`
60357
60391
  }
60358
60392
  };
60359
60393
  var nuxt_default = config7;
@@ -60400,7 +60434,7 @@ var config9 = {
60400
60434
  displayName: "React",
60401
60435
  packageScripts: {
60402
60436
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --port 3000 -- ${npm7} start`,
60403
- "pages:deploy": `${npm7} run build && wrangler pages publish ./build`
60437
+ "pages:deploy": `${npm7} run build && wrangler pages deploy ./build`
60404
60438
  }
60405
60439
  };
60406
60440
  var react_default = config9;
@@ -60419,7 +60453,7 @@ var config10 = {
60419
60453
  generate: generate10,
60420
60454
  displayName: "Remix",
60421
60455
  packageScripts: {
60422
- "pages:deploy": `${npm8} run build && wrangler pages publish ./public`
60456
+ "pages:deploy": `${npm8} run build && wrangler pages deploy ./public`
60423
60457
  },
60424
60458
  devCommand: "dev",
60425
60459
  testFlags: ["--typescript", "--no-install"]
@@ -60468,7 +60502,7 @@ var config11 = {
60468
60502
  displayName: "Solid",
60469
60503
  packageScripts: {
60470
60504
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 3000 -- ${npm9} run dev`,
60471
- "pages:deploy": `${npm9} run build build && wrangler pages publish ./dist/public`
60505
+ "pages:deploy": `${npm9} run build build && wrangler pages deploy ./dist/public`
60472
60506
  }
60473
60507
  };
60474
60508
  var solid_default = config11;
@@ -60568,7 +60602,7 @@ var config12 = {
60568
60602
  displayName: "Svelte",
60569
60603
  packageScripts: {
60570
60604
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm10} run dev`,
60571
- "pages:deploy": `NODE_VERSION=16 ${npm10} run build && wrangler pages publish .svelte-kit/cloudflare`
60605
+ "pages:deploy": `NODE_VERSION=16 ${npm10} run build && wrangler pages deploy .svelte-kit/cloudflare`
60572
60606
  }
60573
60607
  };
60574
60608
  var svelte_default = config12;
@@ -60604,7 +60638,7 @@ var config13 = {
60604
60638
  displayName: "Vue",
60605
60639
  packageScripts: {
60606
60640
  "pages:dev": `wrangler pages dev ${compatDateFlag()} --proxy 5173 -- ${npm11} run dev`,
60607
- "pages:deploy": `${npm11} run build && wrangler pages publish ./dist`
60641
+ "pages:deploy": `${npm11} run build && wrangler pages deploy ./dist`
60608
60642
  },
60609
60643
  testFlags: ["--ts"]
60610
60644
  };
@@ -60845,10 +60879,12 @@ async function updateFiles(ctx) {
60845
60879
  packagejson: JSON.parse(await (0, import_promises3.readFile)(paths.packagejson, "utf-8")),
60846
60880
  wranglertoml: await (0, import_promises3.readFile)(paths.wranglertoml, "utf-8")
60847
60881
  };
60848
- contents.packagejson.name = ctx.project.name;
60849
- contents.wranglertoml = contents.wranglertoml.replace(/^name = .+$/m, `name = "${ctx.project.name}"`).replace(
60850
- /^compatibility_date = .+$/m,
60851
- `compatibility_date = "${(/* @__PURE__ */ new Date()).toISOString().substring(0, 10)}"`
60882
+ if (contents.packagejson.name === "<TBD>") {
60883
+ contents.packagejson.name = ctx.project.name;
60884
+ }
60885
+ contents.wranglertoml = contents.wranglertoml.replace(/^name\s*=\s*"<TBD>"/m, `name = "${ctx.project.name}"`).replace(
60886
+ /^compatibility_date\s*=\s*"<TBD>"/m,
60887
+ `compatibility_date = "${await getWorkerdCompatibilityDate()}"`
60852
60888
  );
60853
60889
  await (0, import_promises3.writeFile)(
60854
60890
  paths.packagejson,
@@ -60859,8 +60895,8 @@ async function updateFiles(ctx) {
60859
60895
 
60860
60896
  // src/cli.ts
60861
60897
  var main = async (argv) => {
60862
- printBanner();
60863
60898
  const args = await parseArgs(argv);
60899
+ printBanner();
60864
60900
  const validatedArgs = {
60865
60901
  ...args,
60866
60902
  projectName: await validateName(args.projectName, {
@@ -60887,7 +60923,7 @@ var parseArgs = async (argv) => {
60887
60923
  }).option("existing-script", {
60888
60924
  type: "string",
60889
60925
  hidden: templateMap["pre-existing"].hidden
60890
- }).option("wrangler-defaults", { type: "boolean", hidden: true }).help().argv;
60926
+ }).option("wrangler-defaults", { type: "boolean", hidden: true }).version(version).help().argv;
60891
60927
  return {
60892
60928
  projectName: args._[0],
60893
60929
  ...args
@@ -60896,14 +60932,15 @@ var parseArgs = async (argv) => {
60896
60932
  var validateName = async (name, { acceptDefault = false } = {}) => {
60897
60933
  const defaultValue = name ?? new import_haikunator.default().haikunate({ tokenHex: true });
60898
60934
  return textInput({
60899
- question: `Where do you want to create your application?`,
60935
+ question: `In which directory do you want to create your application?`,
60900
60936
  helpText: "also used as application name",
60901
60937
  renderSubmitted: (value) => {
60902
60938
  return `${brandColor("dir")} ${dim(value)}`;
60903
60939
  },
60904
60940
  defaultValue,
60905
60941
  acceptDefault,
60906
- validate: (value = defaultValue) => validateProjectDirectory(value)
60942
+ validate: (value) => validateProjectDirectory(value || defaultValue),
60943
+ format: (val) => `./${val}`
60907
60944
  });
60908
60945
  };
60909
60946
  var validateType = async (type, { acceptDefault = false } = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-881ea7be",
3
+ "version": "0.0.0-941764d0",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -61,7 +61,7 @@
61
61
  "recast": "^0.22.0",
62
62
  "semver": "^7.5.1",
63
63
  "typescript": "^5.0.2",
64
- "undici": "^5.22.0",
64
+ "undici": "5.20.0",
65
65
  "vite-tsconfig-paths": "^4.0.8",
66
66
  "vitest": "^0.30.0",
67
67
  "which-pm-runs": "^1.1.0",
@@ -12,7 +12,7 @@ The sample plugin allows ChatGPT users to search for repositories using GitHub's
12
12
  1. Install [wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update), the Cloudflare Workers CLI
13
13
  2. Clone this project and install dependencies with `npm install`
14
14
  3. Run `wrangler login` to login to your Cloudflare account in wrangler
15
- 4. Run `wrangler publish` to publish the plugin to Cloudflare Workers
15
+ 4. Run `wrangler deploy` to publish the plugin to Cloudflare Workers
16
16
 
17
17
  ## Usage
18
18
 
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.1",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "dependencies": {
@@ -1,3 +1,3 @@
1
- name = "cloudflare-workers-chatgpt-plugin-example"
1
+ name = "<TBD>"
2
2
  main = "src/index.ts"
3
- compatibility_date = "2023-04-07"
3
+ compatibility_date = "<TBD>"
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.js"
3
- compatibility_date = "2023-04-21"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.ts"
3
- compatibility_date = "2023-04-21"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.js"
3
- compatibility_date = "2023-04-21"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.ts"
3
- compatibility_date = "2023-04-21"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.js"
3
- compatibility_date = "2023-05-15"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
6
6
  # Docs: https://developers.cloudflare.com/queues/get-started
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.ts"
3
- compatibility_date = "2023-05-15"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
6
6
  # Docs: https://developers.cloudflare.com/queues/get-started
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  name = "<TBD>"
2
2
  main = "src/worker.ts"
3
- compatibility_date = "2023-05-15"
3
+ compatibility_date = "<TBD>"
4
4
 
5
5
  # Cron Triggers
6
6
  # Docs: https://developers.cloudflare.com/workers/platform/triggers/cron-triggers/
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "deploy": "wrangler publish",
6
+ "deploy": "wrangler deploy",
7
7
  "start": "wrangler dev"
8
8
  },
9
9
  "devDependencies": {