create-cloudflare 0.0.0-a9b8f4a9 → 0.0.0-aa22144a
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.
- package/dist/cli.js +13 -7
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -3810,7 +3810,7 @@ ${grayBar} ${msg}`);
|
|
|
3810
3810
|
}
|
|
3811
3811
|
clearLoop();
|
|
3812
3812
|
} else {
|
|
3813
|
-
if (msg) {
|
|
3813
|
+
if (msg !== void 0) {
|
|
3814
3814
|
logUpdate2(`
|
|
3815
3815
|
${grayBar} ${msg}`);
|
|
3816
3816
|
}
|
|
@@ -3853,7 +3853,7 @@ var init_args = __esm({
|
|
|
3853
3853
|
var version, devDependencies;
|
|
3854
3854
|
var init_package = __esm({
|
|
3855
3855
|
"package.json"() {
|
|
3856
|
-
version = "0.0.0-
|
|
3856
|
+
version = "0.0.0-aa22144a";
|
|
3857
3857
|
devDependencies = {
|
|
3858
3858
|
"@babel/parser": "^7.21.3",
|
|
3859
3859
|
"@babel/types": "^7.21.4",
|
|
@@ -3861,7 +3861,7 @@ var init_package = __esm({
|
|
|
3861
3861
|
"@cloudflare/cli": "workspace:*",
|
|
3862
3862
|
"@cloudflare/eslint-config-worker": "*",
|
|
3863
3863
|
"@cloudflare/workers-tsconfig": "workspace:*",
|
|
3864
|
-
"@cloudflare/workers-types": "^4.
|
|
3864
|
+
"@cloudflare/workers-types": "^4.20240320.1",
|
|
3865
3865
|
"@iarna/toml": "^3.0.0",
|
|
3866
3866
|
"@types/command-exists": "^1.2.0",
|
|
3867
3867
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -71854,7 +71854,7 @@ var init_templates = __esm({
|
|
|
71854
71854
|
"hello-world": (await Promise.resolve().then(() => (init_c314(), c3_exports14))).default,
|
|
71855
71855
|
"hello-world-durable-object": (await Promise.resolve().then(() => (init_c315(), c3_exports15))).default,
|
|
71856
71856
|
// Dummy record -- actual template config resolved in `selectFramework`
|
|
71857
|
-
|
|
71857
|
+
"web-framework": { displayName: "Website or web app" },
|
|
71858
71858
|
common: (await Promise.resolve().then(() => (init_c316(), c3_exports16))).default,
|
|
71859
71859
|
scheduled: (await Promise.resolve().then(() => (init_c317(), c3_exports17))).default,
|
|
71860
71860
|
queues: (await Promise.resolve().then(() => (init_c318(), c3_exports18))).default,
|
|
@@ -71869,13 +71869,19 @@ var init_templates = __esm({
|
|
|
71869
71869
|
selectTemplate = async (args) => {
|
|
71870
71870
|
if (!args.type) {
|
|
71871
71871
|
if (args.framework) {
|
|
71872
|
-
args.type = "
|
|
71872
|
+
args.type = "web-framework";
|
|
71873
71873
|
} else if (args.existingScript) {
|
|
71874
71874
|
args.type = "pre-existing";
|
|
71875
71875
|
} else if (args.template) {
|
|
71876
71876
|
args.type = "remote-template";
|
|
71877
71877
|
}
|
|
71878
71878
|
}
|
|
71879
|
+
if (args.type && args.type === "webFramework") {
|
|
71880
|
+
warn(
|
|
71881
|
+
"The `webFramework` type is deprecated and will be removed in a future version. Please use `web-framework` instead."
|
|
71882
|
+
);
|
|
71883
|
+
args.type = "web-framework";
|
|
71884
|
+
}
|
|
71879
71885
|
const templateMap = await getTemplateMap();
|
|
71880
71886
|
const templateOptions = Object.entries(templateMap).map(
|
|
71881
71887
|
([value, { displayName, hidden: hidden2 }]) => ({
|
|
@@ -71897,7 +71903,7 @@ var init_templates = __esm({
|
|
|
71897
71903
|
if (!Object.keys(templateMap).includes(type)) {
|
|
71898
71904
|
return crash(`Unknown application type provided: ${type}.`);
|
|
71899
71905
|
}
|
|
71900
|
-
if (type === "
|
|
71906
|
+
if (type === "web-framework") {
|
|
71901
71907
|
return selectFramework(args);
|
|
71902
71908
|
}
|
|
71903
71909
|
if (type === "remote-template") {
|
|
@@ -77103,7 +77109,7 @@ init_command();
|
|
|
77103
77109
|
init_packageManagers();
|
|
77104
77110
|
|
|
77105
77111
|
// ../wrangler/package.json
|
|
77106
|
-
var version2 = "3.
|
|
77112
|
+
var version2 = "3.39.0";
|
|
77107
77113
|
|
|
77108
77114
|
// src/git.ts
|
|
77109
77115
|
init_package();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-aa22144a",
|
|
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/types": "^7.21.4",
|
|
31
31
|
"@clack/prompts": "^0.6.3",
|
|
32
32
|
"@cloudflare/eslint-config-worker": "*",
|
|
33
|
-
"@cloudflare/workers-types": "^4.
|
|
33
|
+
"@cloudflare/workers-types": "^4.20240320.1",
|
|
34
34
|
"@iarna/toml": "^3.0.0",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"yargs": "^17.7.1",
|
|
68
68
|
"yarn": "^1.22.19",
|
|
69
69
|
"@cloudflare/cli": "1.1.1",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"wrangler": "3.39.0",
|
|
71
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=18.14.1"
|