@storm-software/cloudflare-tools 0.71.223 → 0.71.225
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/CHANGELOG.md +40 -0
- package/README.md +1 -1
- package/dist/{chunk-U6OMVOFA.mjs → chunk-3E2GFJMN.mjs} +1 -1
- package/dist/{chunk-YLHBNFNJ.js → chunk-4MIUPZ4C.js} +70 -68
- package/dist/{chunk-XB6S7S3C.js → chunk-62X6T4SY.js} +3 -3
- package/dist/{chunk-7LCOGL6D.mjs → chunk-6LBDQPVT.mjs} +4 -4
- package/dist/chunk-6XTILRPH.mjs +70 -0
- package/dist/{chunk-CV2KQKMS.js → chunk-DQMGW6HJ.js} +4 -4
- package/dist/{chunk-KDPTLM6V.mjs → chunk-EIJGRLEG.mjs} +1 -1
- package/dist/chunk-F37ESSZE.js +70 -0
- package/dist/{chunk-WH4RGUNC.mjs → chunk-FGVJOBJP.mjs} +2 -2
- package/dist/{chunk-O327KKPU.js → chunk-HNDXHX7M.js} +2 -2
- package/dist/{chunk-AIONW2LO.mjs → chunk-J5A7VLNZ.mjs} +3 -3
- package/dist/{chunk-F6LJYBWD.js → chunk-JVXHQADT.js} +3 -3
- package/dist/{chunk-E7ITICBK.js → chunk-NCVDTA5M.js} +2 -1
- package/dist/chunk-PS2AUG7M.js +266 -0
- package/dist/chunk-QDWACPEV.mjs +269 -0
- package/dist/{chunk-QU27DXRB.mjs → chunk-UZMB4DDU.mjs} +23 -21
- package/dist/{chunk-T6GKRQUF.mjs → chunk-ZXLMDNFQ.mjs} +1 -0
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +4 -4
- package/dist/src/executors/cloudflare-publish/executor.mjs +4 -4
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/untyped.mjs +1 -1
- package/dist/src/executors/serve/executor.js +6 -6
- package/dist/src/executors/serve/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +3 -3
- package/dist/src/plugins/index.d.mts +2 -2
- package/dist/src/plugins/index.d.ts +2 -2
- package/dist/src/plugins/index.mjs +1 -1
- package/dist/src/utils/http-handler.mjs +1 -1
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generator_default
|
|
3
|
+
} from "./chunk-6LBDQPVT.mjs";
|
|
4
|
+
import {
|
|
5
|
+
findWorkspaceRoot,
|
|
6
|
+
getConfig
|
|
7
|
+
} from "./chunk-5MAMLVMV.mjs";
|
|
8
|
+
import {
|
|
9
|
+
brandIcon,
|
|
10
|
+
getStopwatch,
|
|
11
|
+
writeDebug,
|
|
12
|
+
writeError,
|
|
13
|
+
writeFatal,
|
|
14
|
+
writeInfo,
|
|
15
|
+
writeTrace
|
|
16
|
+
} from "./chunk-K4H5ZMYA.mjs";
|
|
17
|
+
import {
|
|
18
|
+
__dirname
|
|
19
|
+
} from "./chunk-EIJGRLEG.mjs";
|
|
20
|
+
|
|
21
|
+
// src/generators/worker/generator.ts
|
|
22
|
+
import {
|
|
23
|
+
convertNxGenerator,
|
|
24
|
+
ensurePackage,
|
|
25
|
+
formatFiles,
|
|
26
|
+
generateFiles,
|
|
27
|
+
joinPathFragments,
|
|
28
|
+
names,
|
|
29
|
+
readProjectConfiguration,
|
|
30
|
+
runTasksInSerial,
|
|
31
|
+
updateJson,
|
|
32
|
+
updateProjectConfiguration
|
|
33
|
+
} from "@nx/devkit";
|
|
34
|
+
import { determineProjectNameAndRootOptions } from "@nx/devkit/internal";
|
|
35
|
+
import { applicationGenerator as nodeApplicationGenerator } from "@nx/node";
|
|
36
|
+
import { nxVersion } from "@nx/node/src/utils/versions";
|
|
37
|
+
import { join } from "path";
|
|
38
|
+
|
|
39
|
+
// src/generators/worker/libs/get-account-id.ts
|
|
40
|
+
function getAccountId(accountId) {
|
|
41
|
+
return `account_id = "${accountId}"`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/generators/worker/libs/vitest-imports.ts
|
|
45
|
+
var vitestImports = `import { describe, expect, it, beforeAll, afterAll } from 'vitest';`;
|
|
46
|
+
|
|
47
|
+
// src/generators/worker/libs/vitest-script.ts
|
|
48
|
+
var vitestScript = `"test": "vitest run"`;
|
|
49
|
+
|
|
50
|
+
// src/generators/worker/generator.ts
|
|
51
|
+
async function applicationGenerator(tree, schema) {
|
|
52
|
+
const stopwatch = getStopwatch("Storm Worker generator");
|
|
53
|
+
let config;
|
|
54
|
+
try {
|
|
55
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
56
|
+
config = await getConfig(workspaceRoot);
|
|
57
|
+
writeInfo(
|
|
58
|
+
`${brandIcon(config)} Running the Storm Worker generator...
|
|
59
|
+
|
|
60
|
+
`,
|
|
61
|
+
config
|
|
62
|
+
);
|
|
63
|
+
writeDebug(
|
|
64
|
+
`Loading the Storm Config from environment variables and storm.json file...
|
|
65
|
+
- workspaceRoot: ${workspaceRoot}`,
|
|
66
|
+
config
|
|
67
|
+
);
|
|
68
|
+
writeTrace(
|
|
69
|
+
`Loaded Storm config into env:
|
|
70
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
71
|
+
config
|
|
72
|
+
);
|
|
73
|
+
const options = await normalizeOptions(tree, schema, config);
|
|
74
|
+
const tasks = [];
|
|
75
|
+
tasks.push(
|
|
76
|
+
await generator_default(tree, {
|
|
77
|
+
...options,
|
|
78
|
+
skipFormat: true
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
tasks.push(
|
|
82
|
+
await nodeApplicationGenerator(tree, {
|
|
83
|
+
...options,
|
|
84
|
+
framework: "none",
|
|
85
|
+
skipFormat: true,
|
|
86
|
+
unitTestRunner: options.unitTestRunner == "vitest" ? "none" : options.unitTestRunner,
|
|
87
|
+
e2eTestRunner: "none",
|
|
88
|
+
name: schema.name
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
if (options.unitTestRunner === "vitest") {
|
|
92
|
+
const { vitestGenerator, createOrEditViteConfig } = ensurePackage(
|
|
93
|
+
"@nx/vite",
|
|
94
|
+
nxVersion
|
|
95
|
+
);
|
|
96
|
+
const vitestTask = await vitestGenerator(tree, {
|
|
97
|
+
project: options.name,
|
|
98
|
+
uiFramework: "none",
|
|
99
|
+
coverageProvider: "v8",
|
|
100
|
+
skipFormat: true,
|
|
101
|
+
testEnvironment: "node"
|
|
102
|
+
});
|
|
103
|
+
tasks.push(vitestTask);
|
|
104
|
+
createOrEditViteConfig(
|
|
105
|
+
tree,
|
|
106
|
+
{
|
|
107
|
+
project: options.name,
|
|
108
|
+
includeLib: false,
|
|
109
|
+
includeVitest: true,
|
|
110
|
+
testEnvironment: "node"
|
|
111
|
+
},
|
|
112
|
+
true
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
addCloudflareFiles(tree, options);
|
|
116
|
+
updateTsAppConfig(tree, options);
|
|
117
|
+
addTargets(tree, options);
|
|
118
|
+
if (options.unitTestRunner === "none") {
|
|
119
|
+
removeTestFiles(tree, options);
|
|
120
|
+
}
|
|
121
|
+
if (!options.skipFormat) {
|
|
122
|
+
await formatFiles(tree);
|
|
123
|
+
}
|
|
124
|
+
if (options.template === "hono") {
|
|
125
|
+
tasks.push(() => {
|
|
126
|
+
const packageJsonPath = joinPathFragments(
|
|
127
|
+
options.directory ?? "",
|
|
128
|
+
"package.json"
|
|
129
|
+
);
|
|
130
|
+
if (tree.exists(packageJsonPath)) {
|
|
131
|
+
updateJson(tree, packageJsonPath, (json) => ({
|
|
132
|
+
...json,
|
|
133
|
+
dependencies: {
|
|
134
|
+
hono: "4.4.0",
|
|
135
|
+
...json?.dependencies
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return runTasksInSerial(...tasks);
|
|
142
|
+
} catch (error) {
|
|
143
|
+
return () => {
|
|
144
|
+
writeFatal(
|
|
145
|
+
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
146
|
+
config
|
|
147
|
+
);
|
|
148
|
+
writeError(
|
|
149
|
+
`An exception was thrown in the generator's process
|
|
150
|
+
- Details: ${error.message}
|
|
151
|
+
- Stacktrace: ${error.stack}`,
|
|
152
|
+
config
|
|
153
|
+
);
|
|
154
|
+
};
|
|
155
|
+
} finally {
|
|
156
|
+
stopwatch();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function updateTsAppConfig(tree, options) {
|
|
160
|
+
updateJson(tree, join(options.appProjectRoot, "tsconfig.app.json"), (json) => {
|
|
161
|
+
json.compilerOptions = {
|
|
162
|
+
...json.compilerOptions,
|
|
163
|
+
esModuleInterop: true,
|
|
164
|
+
target: "es2021",
|
|
165
|
+
lib: ["es2021"],
|
|
166
|
+
module: "es2022",
|
|
167
|
+
moduleResolution: "node",
|
|
168
|
+
resolveJsonModule: true,
|
|
169
|
+
allowJs: true,
|
|
170
|
+
checkJs: false,
|
|
171
|
+
noEmit: true,
|
|
172
|
+
isolatedModules: true,
|
|
173
|
+
allowSyntheticDefaultImports: true,
|
|
174
|
+
forceConsistentCasingInFileNames: true,
|
|
175
|
+
strict: true,
|
|
176
|
+
skipLibCheck: true
|
|
177
|
+
};
|
|
178
|
+
json.compilerOptions.types = [
|
|
179
|
+
...json.compilerOptions.types,
|
|
180
|
+
"@cloudflare/workers-types"
|
|
181
|
+
];
|
|
182
|
+
return json;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function addCloudflareFiles(tree, options) {
|
|
186
|
+
tree.delete(join(options.appProjectRoot, "src/main.ts"));
|
|
187
|
+
generateFiles(
|
|
188
|
+
tree,
|
|
189
|
+
join(__dirname, "./files/common"),
|
|
190
|
+
options.appProjectRoot,
|
|
191
|
+
{
|
|
192
|
+
...options,
|
|
193
|
+
tmpl: "",
|
|
194
|
+
name: options.name,
|
|
195
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
196
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : ""
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
if (options.template && options.template !== "none") {
|
|
200
|
+
generateFiles(
|
|
201
|
+
tree,
|
|
202
|
+
join(__dirname, `./files/${options.template}`),
|
|
203
|
+
join(options.appProjectRoot, "src"),
|
|
204
|
+
{
|
|
205
|
+
...options,
|
|
206
|
+
tmpl: "",
|
|
207
|
+
name: options.name,
|
|
208
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
209
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : "",
|
|
210
|
+
vitestImports: options.unitTestRunner === "vitest" ? vitestImports : ""
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
function addTargets(tree, options) {
|
|
216
|
+
try {
|
|
217
|
+
const projectConfiguration = readProjectConfiguration(tree, options.name);
|
|
218
|
+
projectConfiguration.targets = {
|
|
219
|
+
...projectConfiguration.targets ?? {},
|
|
220
|
+
serve: {
|
|
221
|
+
executor: "@storm-software/cloudflare-tools:serve",
|
|
222
|
+
options: {
|
|
223
|
+
port: options.port
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"nx-release-publish": {
|
|
227
|
+
executor: "@storm-software/cloudflare-tools:cloudflare-publish"
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
if (projectConfiguration.targets.build) {
|
|
231
|
+
delete projectConfiguration.targets.build;
|
|
232
|
+
}
|
|
233
|
+
updateProjectConfiguration(tree, options.name, projectConfiguration);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
console.error(e);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
function removeTestFiles(tree, options) {
|
|
239
|
+
tree.delete(join(options.appProjectRoot, "src", "index.test.ts"));
|
|
240
|
+
}
|
|
241
|
+
async function normalizeOptions(host, options, config) {
|
|
242
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot } = await determineProjectNameAndRootOptions(host, {
|
|
243
|
+
name: options.name,
|
|
244
|
+
projectType: "application",
|
|
245
|
+
directory: options.directory,
|
|
246
|
+
rootProject: options.rootProject
|
|
247
|
+
});
|
|
248
|
+
options.rootProject = appProjectRoot === ".";
|
|
249
|
+
return {
|
|
250
|
+
addPlugin: process.env.NX_ADD_PLUGINS !== "false",
|
|
251
|
+
accountId: process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
|
|
252
|
+
...options,
|
|
253
|
+
name: names(appProjectName).fileName,
|
|
254
|
+
frontendProject: options.frontendProject ? names(options.frontendProject).fileName : void 0,
|
|
255
|
+
appProjectRoot,
|
|
256
|
+
unitTestRunner: options.unitTestRunner ?? "vitest",
|
|
257
|
+
rootProject: options.rootProject ?? false,
|
|
258
|
+
template: options.template ?? "fetch-handler",
|
|
259
|
+
port: options.port ?? 3e3
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
var generator_default2 = applicationGenerator;
|
|
263
|
+
var applicationSchematic = convertNxGenerator(applicationGenerator);
|
|
264
|
+
|
|
265
|
+
export {
|
|
266
|
+
applicationGenerator,
|
|
267
|
+
generator_default2 as generator_default,
|
|
268
|
+
applicationSchematic
|
|
269
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseCargoToml
|
|
3
|
+
} from "./chunk-ZXLMDNFQ.mjs";
|
|
1
4
|
import {
|
|
2
5
|
findWorkspaceRoot,
|
|
3
6
|
getConfig,
|
|
@@ -27,7 +30,7 @@ import {
|
|
|
27
30
|
} from "./chunk-K4H5ZMYA.mjs";
|
|
28
31
|
import {
|
|
29
32
|
__dirname
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EIJGRLEG.mjs";
|
|
31
34
|
|
|
32
35
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
33
36
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -232,6 +235,7 @@ import {
|
|
|
232
235
|
execSync,
|
|
233
236
|
spawn
|
|
234
237
|
} from "node:child_process";
|
|
238
|
+
import { readFileSync } from "node:fs";
|
|
235
239
|
import { relative as relative2 } from "node:path";
|
|
236
240
|
var INVALID_CARGO_ARGS = [
|
|
237
241
|
"allFeatures",
|
|
@@ -265,8 +269,17 @@ var buildCargoCommand = (baseCommand, options, context) => {
|
|
|
265
269
|
args.push(`--${key}`, String(value));
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
|
-
if (context.projectName) {
|
|
269
|
-
|
|
272
|
+
if (context.projectName && context.projectsConfigurations?.projects && context.projectsConfigurations?.projects[context.projectName] && context.projectsConfigurations?.projects[context.projectName]?.root && context.projectsConfigurations?.projects[context.projectName]?.root.includes("Cargo.toml")) {
|
|
273
|
+
const cargoToml = parseCargoToml(
|
|
274
|
+
readFileSync(
|
|
275
|
+
joinPathFragments(
|
|
276
|
+
context.projectsConfigurations.projects[context.projectName].root,
|
|
277
|
+
"Cargo.toml"
|
|
278
|
+
),
|
|
279
|
+
"utf-8"
|
|
280
|
+
)
|
|
281
|
+
);
|
|
282
|
+
args.push("-p", cargoToml.package.name);
|
|
270
283
|
}
|
|
271
284
|
if (options.allFeatures && !args.includes("--all-features")) {
|
|
272
285
|
args.push("--all-features");
|
|
@@ -456,7 +469,7 @@ var executor_default5 = withRunExecutor(
|
|
|
456
469
|
// ../workspace-tools/src/executors/cargo-publish/executor.ts
|
|
457
470
|
import { joinPathFragments as joinPathFragments2 } from "@nx/devkit";
|
|
458
471
|
import { execSync as execSync2 } from "node:child_process";
|
|
459
|
-
import { readFileSync } from "node:fs";
|
|
472
|
+
import { readFileSync as readFileSync2 } from "node:fs";
|
|
460
473
|
import https from "node:https";
|
|
461
474
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
462
475
|
|
|
@@ -489,7 +502,7 @@ import { stripIndents } from "@nx/devkit";
|
|
|
489
502
|
import { relative as relative3 } from "path";
|
|
490
503
|
|
|
491
504
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
492
|
-
import { CopyAssetsHandler } from "@nx/js/
|
|
505
|
+
import { CopyAssetsHandler } from "@nx/js/internal";
|
|
493
506
|
import { glob } from "glob";
|
|
494
507
|
import { readFile, writeFile } from "node:fs/promises";
|
|
495
508
|
var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
@@ -561,9 +574,9 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
561
574
|
};
|
|
562
575
|
|
|
563
576
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
564
|
-
import { calculateProjectBuildableDependencies } from "@nx/js/
|
|
577
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/internal";
|
|
565
578
|
import { Glob } from "glob";
|
|
566
|
-
import { existsSync, readFileSync as
|
|
579
|
+
import { existsSync, readFileSync as readFileSync3 } from "node:fs";
|
|
567
580
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
568
581
|
import {
|
|
569
582
|
createProjectGraphAsync,
|
|
@@ -639,7 +652,7 @@ var addPackageDependencies = async (workspaceRoot2, projectRoot, projectName, pa
|
|
|
639
652
|
"package.json"
|
|
640
653
|
);
|
|
641
654
|
if (existsSync(depPackageJsonPath)) {
|
|
642
|
-
const depPackageJsonContent =
|
|
655
|
+
const depPackageJsonContent = readFileSync3(
|
|
643
656
|
depPackageJsonPath,
|
|
644
657
|
"utf8"
|
|
645
658
|
);
|
|
@@ -1944,14 +1957,12 @@ import {
|
|
|
1944
1957
|
updateJson,
|
|
1945
1958
|
writeJson
|
|
1946
1959
|
} from "@nx/devkit";
|
|
1947
|
-
import { determineProjectNameAndRootOptions } from "@nx/devkit/
|
|
1960
|
+
import { determineProjectNameAndRootOptions } from "@nx/devkit/internal";
|
|
1948
1961
|
import {
|
|
1949
1962
|
addTsConfigPath,
|
|
1950
1963
|
getRelativePathToRootTsConfig,
|
|
1951
1964
|
tsConfigBaseOptions
|
|
1952
1965
|
} from "@nx/js";
|
|
1953
|
-
import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
1954
|
-
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
1955
1966
|
|
|
1956
1967
|
// ../workspace-tools/src/utils/versions.ts
|
|
1957
1968
|
var typesNodeVersion = "20.9.0";
|
|
@@ -1963,12 +1974,6 @@ var pnpmVersion = "8.10.2";
|
|
|
1963
1974
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
1964
1975
|
const normalized = await normalizeOptions(tree, { ...options });
|
|
1965
1976
|
const tasks = [];
|
|
1966
|
-
tasks.push(
|
|
1967
|
-
await jsInitGenerator(tree, {
|
|
1968
|
-
...normalized,
|
|
1969
|
-
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
1970
|
-
})
|
|
1971
|
-
);
|
|
1972
1977
|
tasks.push(
|
|
1973
1978
|
addDependenciesToPackageJson(
|
|
1974
1979
|
tree,
|
|
@@ -1980,9 +1985,6 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1980
1985
|
}
|
|
1981
1986
|
)
|
|
1982
1987
|
);
|
|
1983
|
-
if (normalized.publishable) {
|
|
1984
|
-
tasks.push(await setupVerdaccio(tree, { ...normalized, skipFormat: true }));
|
|
1985
|
-
}
|
|
1986
1988
|
const projectConfig = {
|
|
1987
1989
|
root: normalized.directory,
|
|
1988
1990
|
projectType: "library",
|
|
@@ -3109,7 +3111,7 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3109
3111
|
});
|
|
3110
3112
|
|
|
3111
3113
|
// ../workspace-tools/src/release/js-version-actions.ts
|
|
3112
|
-
import JsVersionActions from "@nx/js/src/release/version-actions
|
|
3114
|
+
import JsVersionActions from "@nx/js/src/release/version-actions";
|
|
3113
3115
|
|
|
3114
3116
|
// ../workspace-tools/src/release/rust-version-actions.ts
|
|
3115
3117
|
import {
|
package/dist/executors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-62X6T4SY.js');
|
|
3
3
|
require('./chunk-KUGEZPUO.js');
|
|
4
4
|
require('./chunk-CLCKX6UN.js');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-HNDXHX7M.js');
|
|
6
|
+
require('./chunk-4MIUPZ4C.js');
|
|
7
|
+
require('./chunk-NCVDTA5M.js');
|
|
8
8
|
require('./chunk-PGTHXO6M.js');
|
|
9
9
|
require('./chunk-FBLD25X4.js');
|
|
10
10
|
require('./chunk-AWKQRM2H.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3E2GFJMN.mjs";
|
|
3
3
|
import "./chunk-SWYYMID7.mjs";
|
|
4
4
|
import "./chunk-BY7MA3SM.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-FGVJOBJP.mjs";
|
|
6
|
+
import "./chunk-UZMB4DDU.mjs";
|
|
7
|
+
import "./chunk-ZXLMDNFQ.mjs";
|
|
8
8
|
import "./chunk-5MAMLVMV.mjs";
|
|
9
9
|
import "./chunk-CSTZEHUP.mjs";
|
|
10
10
|
import "./chunk-K4H5ZMYA.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-EIJGRLEG.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDQMGW6HJjs = require('./chunk-DQMGW6HJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkF37ESSZEjs = require('./chunk-F37ESSZE.js');
|
|
10
10
|
require('./chunk-PGTHXO6M.js');
|
|
11
11
|
require('./chunk-AWKQRM2H.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkDQMGW6HJjs.applicationGenerator; exports.applicationSchematic = _chunkDQMGW6HJjs.applicationSchematic; exports.initGenerator = _chunkF37ESSZEjs.initGenerator; exports.initSchematic = _chunkF37ESSZEjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J5A7VLNZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6XTILRPH.mjs";
|
|
10
10
|
import "./chunk-5MAMLVMV.mjs";
|
|
11
11
|
import "./chunk-K4H5ZMYA.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EIJGRLEG.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-62X6T4SY.js');
|
|
3
3
|
require('./chunk-DHBG5ASJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDQMGW6HJjs = require('./chunk-DQMGW6HJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkF37ESSZEjs = require('./chunk-F37ESSZE.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -21,9 +21,9 @@ require('./chunk-CVGPWUNP.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkCLCKX6UNjs = require('./chunk-CLCKX6UN.js');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-HNDXHX7M.js');
|
|
25
|
+
require('./chunk-4MIUPZ4C.js');
|
|
26
|
+
require('./chunk-NCVDTA5M.js');
|
|
27
27
|
require('./chunk-PGTHXO6M.js');
|
|
28
28
|
require('./chunk-FBLD25X4.js');
|
|
29
29
|
require('./chunk-AWKQRM2H.js');
|
|
@@ -39,4 +39,4 @@ require('./chunk-MCKGQKYU.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.applicationGenerator =
|
|
42
|
+
exports.applicationGenerator = _chunkDQMGW6HJjs.applicationGenerator; exports.applicationSchematic = _chunkDQMGW6HJjs.applicationSchematic; exports.createNodesV2 = _chunkVJLWHQ5Bjs.createNodesV2; exports.getEncoding = _chunkCLCKX6UNjs.getEncoding; exports.getInternalDependencies = _chunkCLCKX6UNjs.getInternalDependencies; exports.initGenerator = _chunkF37ESSZEjs.initGenerator; exports.initSchematic = _chunkF37ESSZEjs.initSchematic; exports.isTextFile = _chunkCLCKX6UNjs.isTextFile; exports.name = _chunkVJLWHQ5Bjs.name; exports.uploadFile = _chunkCLCKX6UNjs.uploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3E2GFJMN.mjs";
|
|
3
3
|
import "./chunk-3J7KBHMJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applicationGenerator,
|
|
6
6
|
applicationSchematic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J5A7VLNZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
initGenerator,
|
|
10
10
|
initSchematic
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6XTILRPH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
createNodesV2,
|
|
14
14
|
name
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
isTextFile,
|
|
22
22
|
uploadFile
|
|
23
23
|
} from "./chunk-BY7MA3SM.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-FGVJOBJP.mjs";
|
|
25
|
+
import "./chunk-UZMB4DDU.mjs";
|
|
26
|
+
import "./chunk-ZXLMDNFQ.mjs";
|
|
27
27
|
import "./chunk-5MAMLVMV.mjs";
|
|
28
28
|
import "./chunk-CSTZEHUP.mjs";
|
|
29
29
|
import "./chunk-K4H5ZMYA.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-EIJGRLEG.mjs";
|
|
31
31
|
export {
|
|
32
32
|
applicationGenerator,
|
|
33
33
|
applicationSchematic,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkHNDXHX7Mjs = require('../../../chunk-HNDXHX7M.js');
|
|
4
|
+
require('../../../chunk-4MIUPZ4C.js');
|
|
5
|
+
require('../../../chunk-NCVDTA5M.js');
|
|
6
6
|
require('../../../chunk-PGTHXO6M.js');
|
|
7
7
|
require('../../../chunk-FBLD25X4.js');
|
|
8
8
|
require('../../../chunk-AWKQRM2H.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.default =
|
|
12
|
+
exports.default = _chunkHNDXHX7Mjs.runExecutor;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-FGVJOBJP.mjs";
|
|
4
|
+
import "../../../chunk-UZMB4DDU.mjs";
|
|
5
|
+
import "../../../chunk-ZXLMDNFQ.mjs";
|
|
6
6
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
7
7
|
import "../../../chunk-CSTZEHUP.mjs";
|
|
8
8
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-EIJGRLEG.mjs";
|
|
10
10
|
export {
|
|
11
11
|
runExecutor as default
|
|
12
12
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk62X6T4SYjs = require('../../../chunk-62X6T4SY.js');
|
|
4
4
|
require('../../../chunk-KUGEZPUO.js');
|
|
5
5
|
require('../../../chunk-CLCKX6UN.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-NCVDTA5M.js');
|
|
7
7
|
require('../../../chunk-PGTHXO6M.js');
|
|
8
8
|
require('../../../chunk-FBLD25X4.js');
|
|
9
9
|
require('../../../chunk-AWKQRM2H.js');
|
|
10
10
|
require('../../../chunk-MCKGQKYU.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default =
|
|
13
|
+
exports.default = _chunk62X6T4SYjs.runExecutor;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-3E2GFJMN.mjs";
|
|
4
4
|
import "../../../chunk-SWYYMID7.mjs";
|
|
5
5
|
import "../../../chunk-BY7MA3SM.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-ZXLMDNFQ.mjs";
|
|
7
7
|
import "../../../chunk-5MAMLVMV.mjs";
|
|
8
8
|
import "../../../chunk-CSTZEHUP.mjs";
|
|
9
9
|
import "../../../chunk-K4H5ZMYA.mjs";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-EIJGRLEG.mjs";
|
|
11
11
|
export {
|
|
12
12
|
runExecutor as default
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4MIUPZ4Cjs = require('../../../chunk-4MIUPZ4C.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNCVDTA5Mjs = require('../../../chunk-NCVDTA5M.js');
|
|
7
7
|
require('../../../chunk-PGTHXO6M.js');
|
|
8
8
|
require('../../../chunk-FBLD25X4.js');
|
|
9
9
|
require('../../../chunk-AWKQRM2H.js');
|
|
@@ -12,7 +12,7 @@ require('../../../chunk-AWKQRM2H.js');
|
|
|
12
12
|
var _chunkMCKGQKYUjs = require('../../../chunk-MCKGQKYU.js');
|
|
13
13
|
|
|
14
14
|
// src/executors/serve/executor.ts
|
|
15
|
-
var
|
|
15
|
+
var _internal = require('@nx/devkit/internal');
|
|
16
16
|
var _waitforportopen = require('@nx/web/src/utils/wait-for-port-open');
|
|
17
17
|
var _child_process = require('child_process');
|
|
18
18
|
async function* serveExecutor(options, context) {
|
|
@@ -20,9 +20,9 @@ async function* serveExecutor(options, context) {
|
|
|
20
20
|
throw new Error("Nx executor context was invalid");
|
|
21
21
|
}
|
|
22
22
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
23
|
-
const wranglerOptions =
|
|
23
|
+
const wranglerOptions = _chunkNCVDTA5Mjs.createCliOptions.call(void 0, { ...options });
|
|
24
24
|
const wranglerBin = _chunkMCKGQKYUjs.__require.resolve("wrangler/bin/wrangler");
|
|
25
|
-
yield*
|
|
25
|
+
yield* _internal.createAsyncIterable.call(void 0,
|
|
26
26
|
async ({ done, next, error }) => {
|
|
27
27
|
process.env.PWD = projectRoot;
|
|
28
28
|
const server = _child_process.fork.call(void 0, wranglerBin, ["dev", ...wranglerOptions], {
|
|
@@ -56,7 +56,7 @@ async function* serveExecutor(options, context) {
|
|
|
56
56
|
success: true
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
var executor_default =
|
|
59
|
+
var executor_default = _chunk4MIUPZ4Cjs.withRunExecutor.call(void 0,
|
|
60
60
|
"Cloudflare Serve executor",
|
|
61
61
|
serveExecutor,
|
|
62
62
|
{
|