create-cloudflare 2.57.1 → 2.59.0

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 (99) hide show
  1. package/dist/cli.js +575 -653
  2. package/package.json +6 -6
  3. package/templates/analog/c3.ts +39 -61
  4. package/templates/analog/templates/wrangler.jsonc +10 -3
  5. package/templates/angular/pages/templates/wrangler.jsonc +2 -2
  6. package/templates/angular/workers/templates/wrangler.jsonc +2 -2
  7. package/templates/astro/pages/templates/js/wrangler.jsonc +2 -2
  8. package/templates/astro/pages/templates/ts/wrangler.jsonc +2 -2
  9. package/templates/astro/workers/templates/js/wrangler.jsonc +2 -2
  10. package/templates/astro/workers/templates/ts/wrangler.jsonc +2 -2
  11. package/templates/common/js/package.json +1 -1
  12. package/templates/common/js/wrangler.jsonc +2 -2
  13. package/templates/common/ts/package.json +1 -1
  14. package/templates/common/ts/tsconfig.json +2 -2
  15. package/templates/common/ts/wrangler.jsonc +2 -2
  16. package/templates/docusaurus/workers/templates/wrangler.jsonc +2 -2
  17. package/templates/gatsby/workers/templates/wrangler.jsonc +2 -2
  18. package/templates/hello-world/c3.ts +0 -12
  19. package/templates/hello-world/js/package.json +1 -1
  20. package/templates/hello-world/js/wrangler.jsonc +2 -2
  21. package/templates/hello-world/py/package.json +1 -1
  22. package/templates/hello-world/py/pyproject.toml +1 -1
  23. package/templates/hello-world/py/wrangler.jsonc +2 -2
  24. package/templates/hello-world/ts/package.json +1 -1
  25. package/templates/hello-world/ts/tsconfig.json +2 -2
  26. package/templates/hello-world/ts/wrangler.jsonc +2 -2
  27. package/templates/hello-world-assets-only/templates/package.json +1 -1
  28. package/templates/hello-world-assets-only/templates/wrangler.jsonc +2 -2
  29. package/templates/hello-world-durable-object/js/package.json +1 -1
  30. package/templates/hello-world-durable-object/js/wrangler.jsonc +2 -2
  31. package/templates/hello-world-durable-object/py/package.json +1 -1
  32. package/templates/hello-world-durable-object/py/pyproject.toml +1 -1
  33. package/templates/hello-world-durable-object/py/wrangler.jsonc +2 -2
  34. package/templates/hello-world-durable-object/ts/package.json +1 -1
  35. package/templates/hello-world-durable-object/ts/tsconfig.json +2 -2
  36. package/templates/hello-world-durable-object/ts/wrangler.jsonc +2 -2
  37. package/templates/hello-world-durable-object-with-assets/js/package.json +1 -1
  38. package/templates/hello-world-durable-object-with-assets/js/wrangler.jsonc +2 -2
  39. package/templates/hello-world-durable-object-with-assets/py/package.json +1 -1
  40. package/templates/hello-world-durable-object-with-assets/py/pyproject.toml +1 -1
  41. package/templates/hello-world-durable-object-with-assets/py/wrangler.jsonc +2 -2
  42. package/templates/hello-world-durable-object-with-assets/ts/package.json +1 -1
  43. package/templates/hello-world-durable-object-with-assets/ts/tsconfig.json +2 -2
  44. package/templates/hello-world-durable-object-with-assets/ts/wrangler.jsonc +2 -2
  45. package/templates/hello-world-with-assets/js/package.json +1 -1
  46. package/templates/hello-world-with-assets/js/wrangler.jsonc +2 -2
  47. package/templates/hello-world-with-assets/py/package.json +1 -1
  48. package/templates/hello-world-with-assets/py/pyproject.toml +1 -1
  49. package/templates/hello-world-with-assets/py/wrangler.jsonc +2 -2
  50. package/templates/hello-world-with-assets/ts/package.json +1 -1
  51. package/templates/hello-world-with-assets/ts/tsconfig.json +2 -2
  52. package/templates/hello-world-with-assets/ts/wrangler.jsonc +2 -2
  53. package/templates/hello-world-workflows/js/package.json +1 -1
  54. package/templates/hello-world-workflows/js/wrangler.jsonc +2 -2
  55. package/templates/hello-world-workflows/ts/package.json +1 -1
  56. package/templates/hello-world-workflows/ts/tsconfig.json +2 -2
  57. package/templates/hello-world-workflows/ts/wrangler.jsonc +2 -2
  58. package/templates/hono/pages/templates/wrangler.jsonc +2 -2
  59. package/templates/hono/workers/templates/wrangler.jsonc +2 -2
  60. package/templates/next/c3.ts +9 -22
  61. package/templates/nuxt/pages/templates/wrangler.jsonc +2 -2
  62. package/templates/nuxt/workers/templates/wrangler.jsonc +2 -2
  63. package/templates/openapi/ts/tsconfig.json +2 -2
  64. package/templates/openapi/ts/wrangler.jsonc +2 -2
  65. package/templates/pre-existing/js/package.json +1 -1
  66. package/templates/queues/js/package.json +1 -1
  67. package/templates/queues/js/wrangler.jsonc +2 -2
  68. package/templates/queues/ts/package.json +1 -1
  69. package/templates/queues/ts/tsconfig.json +2 -2
  70. package/templates/queues/ts/wrangler.jsonc +2 -2
  71. package/templates/qwik/pages/c3.ts +0 -35
  72. package/templates/qwik/pages/templates/wrangler.jsonc +2 -2
  73. package/templates/qwik/workers/c3.ts +0 -35
  74. package/templates/qwik/workers/templates/wrangler.jsonc +2 -2
  75. package/templates/react/pages/templates/wrangler.jsonc +2 -2
  76. package/templates/react/workers/js/wrangler.jsonc +2 -2
  77. package/templates/react/workers/ts/wrangler.jsonc +2 -2
  78. package/templates/react-router/c3.ts +7 -3
  79. package/templates/scheduled/js/package.json +1 -1
  80. package/templates/scheduled/js/wrangler.jsonc +2 -2
  81. package/templates/scheduled/ts/package.json +2 -2
  82. package/templates/scheduled/ts/tsconfig.json +2 -2
  83. package/templates/scheduled/ts/wrangler.jsonc +2 -2
  84. package/templates/solid/templates/wrangler.jsonc +2 -2
  85. package/templates/svelte/pages/templates/wrangler.jsonc +2 -2
  86. package/templates/svelte/workers/templates/wrangler.jsonc +2 -2
  87. package/templates/vike/c3.ts +28 -0
  88. package/templates/vue/pages/templates/wrangler.jsonc +2 -2
  89. package/templates/vue/workers/js/wrangler.jsonc +2 -2
  90. package/templates/vue/workers/ts/wrangler.jsonc +2 -2
  91. package/templates/waku/wrangler.jsonc +2 -2
  92. package/templates/analog/snippets/devBindingsModule.ts +0 -7
  93. package/templates/analog/templates/env.d.ts +0 -13
  94. package/templates/analog/templates/src/dev-bindings.ts +0 -18
  95. package/templates/next/templates/.dev.vars +0 -2
  96. package/templates/next/templates/__dot__gitignore +0 -39
  97. package/templates/next/templates/open-next.config.ts +0 -9
  98. package/templates/next/templates/public/_headers +0 -3
  99. package/templates/next/templates/wrangler.jsonc +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.57.1",
3
+ "version": "2.59.0",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -30,7 +30,7 @@
30
30
  "@babel/parser": "^7.21.3",
31
31
  "@babel/types": "^7.21.4",
32
32
  "@clack/prompts": "^0.6.3",
33
- "@cloudflare/workers-types": "^4.20251202.0",
33
+ "@cloudflare/workers-types": "^4.20251210.0",
34
34
  "@types/command-exists": "^1.2.0",
35
35
  "@types/cross-spawn": "^6.0.2",
36
36
  "@types/deepmerge": "^2.2.0",
@@ -65,7 +65,7 @@
65
65
  "recast": "^0.22.0",
66
66
  "semver": "^7.7.1",
67
67
  "smol-toml": "^1.5.2",
68
- "typescript": "^5.8.3",
68
+ "typescript": "~5.8.3",
69
69
  "undici": "7.14.0",
70
70
  "vite": "^5.4.14",
71
71
  "vite-tsconfig-paths": "^4.0.8",
@@ -75,11 +75,11 @@
75
75
  "xdg-app-paths": "^8.3.0",
76
76
  "yargs": "^17.7.2",
77
77
  "@cloudflare/cli": "1.1.4",
78
- "@cloudflare/eslint-config-shared": "1.1.0",
79
78
  "@cloudflare/mock-npm-registry": "0.0.0",
80
- "@cloudflare/vite-plugin": "1.16.1",
79
+ "@cloudflare/eslint-config-shared": "1.1.0",
81
80
  "@cloudflare/workers-tsconfig": "0.0.0",
82
- "wrangler": "4.52.1"
81
+ "@cloudflare/vite-plugin": "1.17.1",
82
+ "wrangler": "4.54.0"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=18.14.1"
@@ -1,106 +1,84 @@
1
- import { logRaw } from "@cloudflare/cli";
2
- import { brandColor, dim } from "@cloudflare/cli/colors";
3
- import { spinner } from "@cloudflare/cli/interactive";
1
+ import { logRaw, updateStatus } from "@cloudflare/cli";
2
+ import { blue } from "@cloudflare/cli/colors";
4
3
  import { runFrameworkGenerator } from "frameworks/index";
5
- import { loadTemplateSnippets, transformFile } from "helpers/codemod";
4
+ import { mergeObjectProperties, transformFile } from "helpers/codemod";
5
+ import { getWorkerdCompatibilityDate } from "helpers/compatDate";
6
+ import { usesTypescript } from "helpers/files";
6
7
  import { detectPackageManager } from "helpers/packageManagers";
7
- import { installPackages } from "helpers/packages";
8
8
  import * as recast from "recast";
9
9
  import type { TemplateConfig } from "../../src/templates";
10
10
  import type { C3Context } from "types";
11
11
 
12
- const { npm, name: pm } = detectPackageManager();
12
+ const { npm } = detectPackageManager();
13
13
 
14
14
  const generate = async (ctx: C3Context) => {
15
- await runFrameworkGenerator(ctx, [
16
- ctx.project.name,
17
- "--template",
18
- "angular-v17",
19
- ]);
20
-
21
- logRaw(""); // newline
15
+ await runFrameworkGenerator(ctx, [ctx.project.name, "--template=latest"]);
16
+ logRaw("");
22
17
  };
23
18
 
24
19
  const configure = async (ctx: C3Context) => {
25
- // Fix hoisting issues with pnpm, yarn and bun
26
- if (pm === "pnpm" || pm === "yarn" || pm === "bun") {
27
- const packages = [];
28
- packages.push("nitropack");
29
- packages.push("h3");
30
- packages.push("@ngtools/webpack");
31
- packages.push("@angular-devkit/build-angular");
32
-
33
- await installPackages(packages, {
34
- dev: true,
35
- startText: `Installing ${packages.join(", ")}`,
36
- doneText: `${brandColor("installed")} ${dim(`via \`${npm} install\``)}`,
37
- });
38
- }
39
-
40
- updateViteConfig(ctx);
41
- };
42
-
43
- const updateViteConfig = (ctx: C3Context) => {
44
- const b = recast.types.builders;
45
- const s = spinner();
46
-
47
- const configFile = "vite.config.ts";
48
- s.start(`Updating \`${configFile}\``);
20
+ usesTypescript(ctx);
21
+ const filePath = `vite.config.${usesTypescript(ctx) ? "ts" : "js"}`;
49
22
 
50
- const snippets = loadTemplateSnippets(ctx);
23
+ const compatDate = await getWorkerdCompatibilityDate();
51
24
 
52
- transformFile(configFile, {
53
- visitProgram(n) {
54
- const lastImportIndex = n.node.body.findLastIndex(
55
- (t) => t.type === "ImportDeclaration",
56
- );
57
- const lastImport = n.get("body", lastImportIndex);
58
- lastImport.insertAfter(...snippets.devBindingsModuleTs);
25
+ updateStatus(`Updating configuration in ${blue(filePath)}`);
59
26
 
60
- return this.traverse(n);
61
- },
62
- visitCallExpression(n) {
27
+ transformFile(filePath, {
28
+ visitCallExpression: function (n) {
63
29
  const callee = n.node.callee as recast.types.namedTypes.Identifier;
64
- if (callee.name === "analog") {
65
- const pluginArguments = b.objectProperty(
30
+ if (callee.name !== "analog") {
31
+ return this.traverse(n);
32
+ }
33
+
34
+ const b = recast.types.builders;
35
+ const presetDef = [
36
+ b.objectProperty(
66
37
  b.identifier("nitro"),
67
38
  b.objectExpression([
39
+ // preset: "cloudflare_module"
68
40
  b.objectProperty(
69
41
  b.identifier("preset"),
70
- b.stringLiteral("cloudflare-pages"),
42
+ b.stringLiteral("cloudflare_module"),
71
43
  ),
72
44
  b.objectProperty(
73
- b.identifier("modules"),
74
- b.arrayExpression([b.identifier("devBindingsModule")]),
45
+ b.identifier("compatibilityDate"),
46
+ b.stringLiteral(compatDate),
75
47
  ),
76
48
  ]),
77
- );
49
+ ),
50
+ ];
78
51
 
79
- n.node.arguments = [b.objectExpression([pluginArguments])];
52
+ if (n.node.arguments.length === 0) {
53
+ n.node.arguments.push(b.objectExpression(presetDef));
54
+ } else {
55
+ mergeObjectProperties(
56
+ n.node.arguments[0] as recast.types.namedTypes.ObjectExpression,
57
+ presetDef,
58
+ );
80
59
  }
81
60
 
82
- return this.traverse(n);
61
+ return false;
83
62
  },
84
63
  });
85
-
86
- s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
87
64
  };
88
65
 
89
66
  const config: TemplateConfig = {
90
67
  configVersion: 1,
91
68
  id: "analog",
92
69
  frameworkCli: "create-analog",
93
- platform: "pages",
94
70
  displayName: "Analog",
71
+ platform: "workers",
95
72
  copyFiles: {
96
73
  path: "./templates",
97
74
  },
75
+ path: "templates/analog",
98
76
  generate,
99
77
  configure,
100
78
  transformPackageJson: async () => ({
101
79
  scripts: {
102
- preview: `${npm} run build && wrangler pages dev`,
103
- deploy: `${npm} run build && wrangler pages deploy`,
80
+ preview: `${npm} run build && wrangler dev`,
81
+ deploy: `${npm} run build && wrangler deploy`,
104
82
  "cf-typegen": `wrangler types`,
105
83
  },
106
84
  }),
@@ -1,5 +1,12 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
4
- "pages_build_output_dir": "./dist/analog/public"
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
+ "main": "dist/analog/server/index.mjs",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": "dist/analog/public",
8
+ },
9
+ "observability": {
10
+ "enabled": true,
11
+ },
5
12
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "pages_build_output_dir": "./dist/cloudflare"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "./dist/server/server.mjs",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "assets": {
6
6
  "binding": "ASSETS",
7
7
  "directory": "./dist/browser"
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "compatibility_flags": [
5
5
  "nodejs_compat"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "compatibility_flags": [
5
5
  "nodejs_compat"
6
6
  ],
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "./dist/_worker.js/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": [
6
6
  "nodejs_compat",
7
7
  "global_fetch_strictly_public"
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "./dist/_worker.js/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": [
6
6
  "nodejs_compat",
7
7
  "global_fetch_strictly_public"
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "observability": {
6
6
  "enabled": true
7
7
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -3,9 +3,9 @@
3
3
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
4
 
5
5
  /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
- "target": "es2021",
6
+ "target": "es2024",
7
7
  /* Specify a set of bundled library declaration files that describe the target runtime environment. */
8
- "lib": ["es2021"],
8
+ "lib": ["es2024"],
9
9
  /* Specify what JSX code is generated. */
10
10
  "jsx": "react-jsx" ,
11
11
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.ts",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "observability": {
6
6
  "enabled": true
7
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "assets": {
5
5
  "directory": "./build"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "assets": {
5
5
  "directory": "./public"
6
6
  },
@@ -1,5 +1,3 @@
1
- import { readFile, writeFile } from "node:fs/promises";
2
- import { resolve } from "node:path";
3
1
  import type { TemplateConfig } from "../../src/templates";
4
2
 
5
3
  export default {
@@ -9,16 +7,6 @@ export default {
9
7
  description:
10
8
  "For processing requests, transforming responses, or API endpoints",
11
9
  platform: "workers",
12
- async configure(ctx) {
13
- if (ctx.args.lang === "python") {
14
- const contents = await readFile(
15
- resolve(ctx.project.path, "pyproject.toml"),
16
- "utf8",
17
- );
18
- const updated = contents.replaceAll(/<TBD>/g, ctx.project.name);
19
- await writeFile(resolve(ctx.project.path, "pyproject.toml"), updated);
20
- }
21
- },
22
10
  copyFiles: {
23
11
  variants: {
24
12
  js: {
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "observability": {
6
6
  "enabled": true,
7
7
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  [project]
2
- name = "TBD"
2
+ name = "<PROJECT_NAME>"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/entry.py",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": ["python_workers"],
6
6
  "observability": {
7
7
  "enabled": true,
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -3,9 +3,9 @@
3
3
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
4
 
5
5
  /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
- "target": "es2021",
6
+ "target": "es2024",
7
7
  /* Specify a set of bundled library declaration files that describe the target runtime environment. */
8
- "lib": ["es2021"],
8
+ "lib": ["es2024"],
9
9
  /* Specify what JSX code is generated. */
10
10
  "jsx": "react-jsx",
11
11
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.ts",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "observability": {
6
6
  "enabled": true,
7
7
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "<TBD>",
3
- "compatibility_date": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
+ "compatibility_date": "<COMPATIBILITY_DATE>",
4
4
  "assets": {
5
5
  // The path to the directory containing the `index.html` file to be served at `/`
6
6
  "directory": "./public"
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "migrations": [
6
6
  {
7
7
  "new_sqlite_classes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  [project]
2
- name = "TBD"
2
+ name = "<PROJECT_NAME>"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/entry.py",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": [
6
6
  "python_workers"
7
7
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -3,9 +3,9 @@
3
3
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
4
 
5
5
  /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
- "target": "es2021",
6
+ "target": "es2024",
7
7
  /* Specify a set of bundled library declaration files that describe the target runtime environment. */
8
- "lib": ["es2021"],
8
+ "lib": ["es2024"],
9
9
  /* Specify what JSX code is generated. */
10
10
  "jsx": "react-jsx",
11
11
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.ts",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "migrations": [
6
6
  {
7
7
  "new_sqlite_classes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "assets": {
6
6
  // The path to the directory containing the `index.html` file to be served at `/`
7
7
  "directory": "./public"
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  [project]
2
- name = "TBD"
2
+ name = "<PROJECT_NAME>"
3
3
  version = "0.1.0"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/entry.py",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": [
6
6
  "python_workers"
7
7
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -3,9 +3,9 @@
3
3
  /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
4
 
5
5
  /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
6
- "target": "es2021",
6
+ "target": "es2024",
7
7
  /* Specify a set of bundled library declaration files that describe the target runtime environment. */
8
- "lib": ["es2021"],
8
+ "lib": ["es2024"],
9
9
  /* Specify what JSX code is generated. */
10
10
  "jsx": "react-jsx",
11
11
 
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.ts",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "migrations": [
6
6
  {
7
7
  "new_sqlite_classes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<PACKAGE_NAME>",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "<TBD>",
2
+ "name": "<WORKER_NAME>",
3
3
  "main": "src/index.js",
4
- "compatibility_date": "<TBD>",
4
+ "compatibility_date": "<COMPATIBILITY_DATE>",
5
5
  "compatibility_flags": [
6
6
  "nodejs_compat",
7
7
  "global_fetch_strictly_public"