@storm-software/cloudflare-tools 0.55.86 → 0.55.88
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 +21 -0
- package/README.md +1 -2
- package/dist/{chunk-PWYTCJYX.js → chunk-4WULYLQ3.js} +881 -650
- package/dist/{chunk-VTHBMY4B.js → chunk-6XDOBG77.js} +39 -28
- package/dist/{chunk-2XOEHMET.js → chunk-7JQIASJ7.js} +93 -58
- package/dist/{chunk-FQ33YTDR.mjs → chunk-ABAI6EPS.mjs} +806 -575
- package/dist/{chunk-BNJGOSXD.mjs → chunk-FABNT5TZ.mjs} +15 -13
- package/dist/{chunk-XCERLTLT.mjs → chunk-GPAI4NHQ.mjs} +141 -87
- package/dist/{chunk-IVLCYFXD.js → chunk-HBASMEU5.js} +168 -114
- package/dist/{chunk-6B5PUF7X.js → chunk-HIUZ6UL7.js} +97 -47
- package/dist/{chunk-R7AIVBS7.js → chunk-I4P7DVDN.js} +19 -24
- package/dist/{chunk-QOSOXTAS.mjs → chunk-ISGKIYF5.mjs} +92 -42
- package/dist/{chunk-GDWUA3BY.mjs → chunk-L4WFYC7K.mjs} +39 -28
- package/dist/{chunk-J5SB6L2L.js → chunk-MCKGQKYU.js} +2 -5
- package/dist/{chunk-UVPHL2U4.mjs → chunk-MV24QW26.mjs} +195 -127
- package/dist/{chunk-W7HOEYL6.mjs → chunk-NEMOTOHF.mjs} +93 -56
- package/dist/{chunk-V7LBWOVV.js → chunk-PZ5CI56F.js} +196 -128
- package/dist/{chunk-Z56LURRT.mjs → chunk-QPABB45G.mjs} +19 -24
- package/dist/{chunk-G2K6R4CT.mjs → chunk-QQ22YQSB.mjs} +3 -6
- package/dist/{chunk-QGRENI3O.js → chunk-RIUVF72K.js} +17 -15
- package/dist/{chunk-JFSRBSF6.mjs → chunk-SKMJXTAG.mjs} +27 -21
- package/dist/{chunk-XZ5IJXEB.js → chunk-ZBQZJEOG.js} +26 -20
- package/dist/executors.js +8 -8
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.js +41 -49
- package/dist/index.mjs +40 -48
- package/dist/src/executors/cloudflare-publish/executor.js +7 -7
- package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
- package/dist/src/executors/r2-upload-publish/executor.js +7 -7
- package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
- package/dist/src/executors/serve/executor.js +49 -50
- package/dist/src/executors/serve/executor.mjs +48 -49
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +6 -6
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.js +4 -4
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.js +3 -8
- package/dist/tsup.config.mjs +3 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,35 +3,35 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NEMOTOHF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SKMJXTAG.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QPABB45G.mjs";
|
|
13
|
+
import "./chunk-ABAI6EPS.mjs";
|
|
14
|
+
import "./chunk-ISGKIYF5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FABNT5TZ.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import
|
|
26
|
-
__name
|
|
27
|
-
} from "./chunk-G2K6R4CT.mjs";
|
|
22
|
+
} from "./chunk-L4WFYC7K.mjs";
|
|
23
|
+
import "./chunk-GPAI4NHQ.mjs";
|
|
24
|
+
import "./chunk-MV24QW26.mjs";
|
|
25
|
+
import "./chunk-QQ22YQSB.mjs";
|
|
28
26
|
|
|
29
27
|
// src/plugins/index.ts
|
|
30
28
|
import { existsSync } from "node:fs";
|
|
31
29
|
import { dirname, join } from "node:path";
|
|
32
30
|
import { readNxJson } from "nx/src/config/nx-json.js";
|
|
33
31
|
import { readJsonFile } from "nx/src/utils/fileutils";
|
|
34
|
-
import {
|
|
32
|
+
import {
|
|
33
|
+
readTargetsFromPackageJson
|
|
34
|
+
} from "nx/src/utils/package-json";
|
|
35
35
|
var name = "storm-software/cloudflare";
|
|
36
36
|
var createNodes = [
|
|
37
37
|
"{**/wrangler.toml}",
|
|
@@ -40,18 +40,19 @@ var createNodes = [
|
|
|
40
40
|
if (!packageJson) {
|
|
41
41
|
return {};
|
|
42
42
|
}
|
|
43
|
-
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
43
|
+
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
44
|
+
file,
|
|
45
|
+
packageJson
|
|
46
|
+
);
|
|
44
47
|
const nxJson = readNxJson(ctx.workspaceRoot);
|
|
45
|
-
const targets = readTargetsFromPackageJson(
|
|
48
|
+
const targets = readTargetsFromPackageJson(
|
|
49
|
+
packageJson,
|
|
50
|
+
nxJson
|
|
51
|
+
);
|
|
46
52
|
targets["serve"] = {
|
|
47
53
|
cache: false,
|
|
48
|
-
inputs: [
|
|
49
|
-
|
|
50
|
-
"^production"
|
|
51
|
-
],
|
|
52
|
-
dependsOn: [
|
|
53
|
-
"build"
|
|
54
|
-
],
|
|
54
|
+
inputs: ["typescript", "^production"],
|
|
55
|
+
dependsOn: ["build"],
|
|
55
56
|
executor: "@storm-software/cloudflare-tools:serve",
|
|
56
57
|
options: {
|
|
57
58
|
port: 4500
|
|
@@ -59,16 +60,9 @@ var createNodes = [
|
|
|
59
60
|
};
|
|
60
61
|
targets["clean-package"] = {
|
|
61
62
|
cache: true,
|
|
62
|
-
dependsOn: [
|
|
63
|
-
|
|
64
|
-
],
|
|
65
|
-
inputs: [
|
|
66
|
-
"typescript",
|
|
67
|
-
"^production"
|
|
68
|
-
],
|
|
69
|
-
outputs: [
|
|
70
|
-
"{workspaceRoot}/dist/{projectRoot}"
|
|
71
|
-
],
|
|
63
|
+
dependsOn: ["build"],
|
|
64
|
+
inputs: ["typescript", "^production"],
|
|
65
|
+
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
72
66
|
executor: "@storm-software/workspace-tools:clean-package",
|
|
73
67
|
options: {
|
|
74
68
|
cleanReadMe: true,
|
|
@@ -77,23 +71,23 @@ var createNodes = [
|
|
|
77
71
|
};
|
|
78
72
|
targets["nx-release-publish"] = {
|
|
79
73
|
cache: false,
|
|
80
|
-
inputs: [
|
|
81
|
-
|
|
82
|
-
"^production"
|
|
83
|
-
],
|
|
84
|
-
dependsOn: [
|
|
85
|
-
"clean-package",
|
|
86
|
-
"^nx-release-publish"
|
|
87
|
-
],
|
|
74
|
+
inputs: ["typescript", "^production"],
|
|
75
|
+
dependsOn: ["clean-package", "^nx-release-publish"],
|
|
88
76
|
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
89
77
|
options: {}
|
|
90
78
|
};
|
|
91
|
-
addProjectTag(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
overwrite: true
|
|
96
|
-
|
|
79
|
+
addProjectTag(
|
|
80
|
+
project,
|
|
81
|
+
ProjectTagConstants.ProjectType.TAG_ID,
|
|
82
|
+
project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY,
|
|
83
|
+
{ overwrite: true }
|
|
84
|
+
);
|
|
85
|
+
addProjectTag(
|
|
86
|
+
project,
|
|
87
|
+
ProjectTagConstants.DistStyle.TAG_ID,
|
|
88
|
+
ProjectTagConstants.DistStyle.CLEAN,
|
|
89
|
+
{ overwrite: true }
|
|
90
|
+
);
|
|
97
91
|
addProjectTag(project, ProjectTagConstants.Provider.TAG_ID, "cloudflare", {
|
|
98
92
|
overwrite: true
|
|
99
93
|
});
|
|
@@ -124,7 +118,6 @@ function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJ
|
|
|
124
118
|
targets: {}
|
|
125
119
|
};
|
|
126
120
|
}
|
|
127
|
-
__name(createProjectFromPackageJsonNextToProjectJson, "createProjectFromPackageJsonNextToProjectJson");
|
|
128
121
|
function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
129
122
|
try {
|
|
130
123
|
const root = dirname(projectJsonPath);
|
|
@@ -138,7 +131,6 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
138
131
|
return null;
|
|
139
132
|
}
|
|
140
133
|
}
|
|
141
|
-
__name(createPackageJson, "createPackageJson");
|
|
142
134
|
export {
|
|
143
135
|
applicationGenerator,
|
|
144
136
|
applicationSchematic,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkI4P7DVDNjs = require('../../../chunk-I4P7DVDN.js');
|
|
4
|
+
require('../../../chunk-4WULYLQ3.js');
|
|
5
|
+
require('../../../chunk-6XDOBG77.js');
|
|
6
|
+
require('../../../chunk-HBASMEU5.js');
|
|
7
|
+
require('../../../chunk-PZ5CI56F.js');
|
|
8
|
+
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkI4P7DVDNjs.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-QPABB45G.mjs";
|
|
4
|
+
import "../../../chunk-ABAI6EPS.mjs";
|
|
5
|
+
import "../../../chunk-L4WFYC7K.mjs";
|
|
6
|
+
import "../../../chunk-GPAI4NHQ.mjs";
|
|
7
|
+
import "../../../chunk-MV24QW26.mjs";
|
|
8
|
+
import "../../../chunk-QQ22YQSB.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkHIUZ6UL7js = require('../../../chunk-HIUZ6UL7.js');
|
|
4
|
+
require('../../../chunk-RIUVF72K.js');
|
|
5
|
+
require('../../../chunk-6XDOBG77.js');
|
|
6
|
+
require('../../../chunk-HBASMEU5.js');
|
|
7
|
+
require('../../../chunk-PZ5CI56F.js');
|
|
8
|
+
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkHIUZ6UL7js.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ISGKIYF5.mjs";
|
|
4
|
+
import "../../../chunk-FABNT5TZ.mjs";
|
|
5
|
+
import "../../../chunk-L4WFYC7K.mjs";
|
|
6
|
+
import "../../../chunk-GPAI4NHQ.mjs";
|
|
7
|
+
import "../../../chunk-MV24QW26.mjs";
|
|
8
|
+
import "../../../chunk-QQ22YQSB.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
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 _chunk4WULYLQ3js = require('../../../chunk-4WULYLQ3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
6
|
+
var _chunk6XDOBG77js = require('../../../chunk-6XDOBG77.js');
|
|
7
|
+
require('../../../chunk-HBASMEU5.js');
|
|
8
|
+
require('../../../chunk-PZ5CI56F.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
var _chunkJ5SB6L2Ljs = require('../../../chunk-J5SB6L2L.js');
|
|
11
|
+
var _chunkMCKGQKYUjs = require('../../../chunk-MCKGQKYU.js');
|
|
13
12
|
|
|
14
13
|
// src/executors/serve/executor.ts
|
|
15
14
|
var _asynciterable = require('@nx/devkit/src/utils/async-iterable');
|
|
@@ -20,55 +19,55 @@ async function* serveExecutor(options, context, config) {
|
|
|
20
19
|
throw new Error("Nx executor context was invalid");
|
|
21
20
|
}
|
|
22
21
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
23
|
-
const wranglerOptions =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
baseUrl: `http://localhost:${options.port}`
|
|
56
|
-
});
|
|
57
|
-
});
|
|
22
|
+
const wranglerOptions = _chunk6XDOBG77js.createCliOptions.call(void 0, { ...options });
|
|
23
|
+
const wranglerBin = _chunkMCKGQKYUjs.__require.resolve("wrangler/bin/wrangler");
|
|
24
|
+
yield* _asynciterable.createAsyncIterable.call(void 0,
|
|
25
|
+
async ({ done, next, error }) => {
|
|
26
|
+
process.env.PWD = projectRoot;
|
|
27
|
+
const server = _child_process.fork.call(void 0, wranglerBin, ["dev", ...wranglerOptions], {
|
|
28
|
+
cwd: projectRoot,
|
|
29
|
+
stdio: "inherit"
|
|
30
|
+
});
|
|
31
|
+
server.once("exit", (code) => {
|
|
32
|
+
if (code === 0) {
|
|
33
|
+
done();
|
|
34
|
+
} else {
|
|
35
|
+
error(new Error(`Cloudflare worker exited with code ${code}`));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const killServer = () => {
|
|
39
|
+
if (server.connected) {
|
|
40
|
+
server.kill("SIGTERM");
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
process.on("exit", () => killServer());
|
|
44
|
+
process.on("SIGINT", () => killServer());
|
|
45
|
+
process.on("SIGTERM", () => killServer());
|
|
46
|
+
process.on("SIGHUP", () => killServer());
|
|
47
|
+
await _waitforportopen.waitForPortOpen.call(void 0, _nullishCoalesce(options.port, () => ( 4500)));
|
|
48
|
+
next({
|
|
49
|
+
success: true,
|
|
50
|
+
baseUrl: `http://localhost:${options.port}`
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
);
|
|
58
54
|
return {
|
|
59
55
|
success: true
|
|
60
56
|
};
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
var executor_default = _chunk4WULYLQ3js.withRunExecutor.call(void 0,
|
|
59
|
+
"Cloudflare Serve executor",
|
|
60
|
+
serveExecutor,
|
|
61
|
+
{
|
|
62
|
+
skipReadingConfig: false,
|
|
63
|
+
hooks: {
|
|
64
|
+
applyDefaultOptions: (options) => {
|
|
65
|
+
options.port ??= 4500;
|
|
66
|
+
return options;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
|
|
70
|
+
);
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ABAI6EPS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-L4WFYC7K.mjs";
|
|
7
|
+
import "../../../chunk-GPAI4NHQ.mjs";
|
|
8
|
+
import "../../../chunk-MV24QW26.mjs";
|
|
9
9
|
import {
|
|
10
|
-
__name,
|
|
11
10
|
__require
|
|
12
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-QQ22YQSB.mjs";
|
|
13
12
|
|
|
14
13
|
// src/executors/serve/executor.ts
|
|
15
14
|
import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
|
|
@@ -20,55 +19,55 @@ async function* serveExecutor(options, context, config) {
|
|
|
20
19
|
throw new Error("Nx executor context was invalid");
|
|
21
20
|
}
|
|
22
21
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
23
|
-
const wranglerOptions = createCliOptions({
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
22
|
+
const wranglerOptions = createCliOptions({ ...options });
|
|
26
23
|
const wranglerBin = __require.resolve("wrangler/bin/wrangler");
|
|
27
|
-
yield* createAsyncIterable(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"dev",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
24
|
+
yield* createAsyncIterable(
|
|
25
|
+
async ({ done, next, error }) => {
|
|
26
|
+
process.env.PWD = projectRoot;
|
|
27
|
+
const server = fork(wranglerBin, ["dev", ...wranglerOptions], {
|
|
28
|
+
cwd: projectRoot,
|
|
29
|
+
stdio: "inherit"
|
|
30
|
+
});
|
|
31
|
+
server.once("exit", (code) => {
|
|
32
|
+
if (code === 0) {
|
|
33
|
+
done();
|
|
34
|
+
} else {
|
|
35
|
+
error(new Error(`Cloudflare worker exited with code ${code}`));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const killServer = () => {
|
|
39
|
+
if (server.connected) {
|
|
40
|
+
server.kill("SIGTERM");
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
process.on("exit", () => killServer());
|
|
44
|
+
process.on("SIGINT", () => killServer());
|
|
45
|
+
process.on("SIGTERM", () => killServer());
|
|
46
|
+
process.on("SIGHUP", () => killServer());
|
|
47
|
+
await waitForPortOpen(options.port ?? 4500);
|
|
48
|
+
next({
|
|
49
|
+
success: true,
|
|
50
|
+
baseUrl: `http://localhost:${options.port}`
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
);
|
|
58
54
|
return {
|
|
59
55
|
success: true
|
|
60
56
|
};
|
|
61
57
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
var executor_default = withRunExecutor(
|
|
59
|
+
"Cloudflare Serve executor",
|
|
60
|
+
serveExecutor,
|
|
61
|
+
{
|
|
62
|
+
skipReadingConfig: false,
|
|
63
|
+
hooks: {
|
|
64
|
+
applyDefaultOptions: (options) => {
|
|
65
|
+
options.port ??= 4500;
|
|
66
|
+
return options;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
|
|
70
|
+
);
|
|
72
71
|
export {
|
|
73
72
|
executor_default as default,
|
|
74
73
|
serveExecutor
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunkZBQZJEOGjs = require('../../../chunk-ZBQZJEOG.js');
|
|
6
|
+
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkZBQZJEOGjs.generator_default; exports.initGenerator = _chunkZBQZJEOGjs.initGenerator; exports.initSchematic = _chunkZBQZJEOGjs.initSchematic;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
generator_default,
|
|
3
3
|
initGenerator,
|
|
4
4
|
initSchematic
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-SKMJXTAG.mjs";
|
|
6
|
+
import "../../../chunk-QQ22YQSB.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
|
9
9
|
initGenerator,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
9
|
-
require('../../../chunk-
|
|
5
|
+
var _chunk7JQIASJ7js = require('../../../chunk-7JQIASJ7.js');
|
|
6
|
+
require('../../../chunk-ZBQZJEOG.js');
|
|
7
|
+
require('../../../chunk-HBASMEU5.js');
|
|
8
|
+
require('../../../chunk-PZ5CI56F.js');
|
|
9
|
+
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunk7JQIASJ7js.applicationGenerator; exports.applicationSchematic = _chunk7JQIASJ7js.applicationSchematic; exports.default = _chunk7JQIASJ7js.generator_default;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-NEMOTOHF.mjs";
|
|
6
|
+
import "../../../chunk-SKMJXTAG.mjs";
|
|
7
|
+
import "../../../chunk-GPAI4NHQ.mjs";
|
|
8
|
+
import "../../../chunk-MV24QW26.mjs";
|
|
9
|
+
import "../../../chunk-QQ22YQSB.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
|
12
12
|
applicationSchematic,
|
package/dist/src/utils/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
5
|
+
var _chunkRIUVF72Kjs = require('../../chunk-RIUVF72K.js');
|
|
6
|
+
require('../../chunk-PZ5CI56F.js');
|
|
7
|
+
require('../../chunk-MCKGQKYU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getInternalDependencies =
|
|
11
|
+
exports.getInternalDependencies = _chunkRIUVF72Kjs.getInternalDependencies; exports.r2UploadFile = _chunkRIUVF72Kjs.r2UploadFile;
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import "../../chunk-7Z5PILRU.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
getInternalDependencies,
|
|
4
4
|
r2UploadFile
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-FABNT5TZ.mjs";
|
|
6
|
+
import "../../chunk-MV24QW26.mjs";
|
|
7
|
+
import "../../chunk-QQ22YQSB.mjs";
|
|
8
8
|
export {
|
|
9
9
|
getInternalDependencies,
|
|
10
10
|
r2UploadFile
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
4
|
+
var _chunkRIUVF72Kjs = require('../../chunk-RIUVF72K.js');
|
|
5
|
+
require('../../chunk-PZ5CI56F.js');
|
|
6
|
+
require('../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.getInternalDependencies =
|
|
10
|
+
exports.getInternalDependencies = _chunkRIUVF72Kjs.getInternalDependencies; exports.r2UploadFile = _chunkRIUVF72Kjs.r2UploadFile;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-FABNT5TZ.mjs";
|
|
5
|
+
import "../../chunk-MV24QW26.mjs";
|
|
6
|
+
import "../../chunk-QQ22YQSB.mjs";
|
|
7
7
|
export {
|
|
8
8
|
getInternalDependencies,
|
|
9
9
|
r2UploadFile
|
package/dist/tsup.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-MCKGQKYU.js');
|
|
2
2
|
|
|
3
3
|
// tsup.config.ts
|
|
4
4
|
var _tsup = require('tsup');
|
|
@@ -14,10 +14,7 @@ var config = _tsup.defineConfig.call(void 0, [
|
|
|
14
14
|
"./src/generators/plugins/*.ts"
|
|
15
15
|
],
|
|
16
16
|
outDir: "dist",
|
|
17
|
-
format: [
|
|
18
|
-
"cjs",
|
|
19
|
-
"esm"
|
|
20
|
-
],
|
|
17
|
+
format: ["cjs", "esm"],
|
|
21
18
|
platform: "node",
|
|
22
19
|
splitting: true,
|
|
23
20
|
clean: true,
|
|
@@ -25,9 +22,7 @@ var config = _tsup.defineConfig.call(void 0, [
|
|
|
25
22
|
sourcemap: false,
|
|
26
23
|
shims: true,
|
|
27
24
|
tsconfig: "./tsconfig.json",
|
|
28
|
-
external: [
|
|
29
|
-
"@storm-software/workspace-tools"
|
|
30
|
-
]
|
|
25
|
+
external: ["@storm-software/workspace-tools"]
|
|
31
26
|
}
|
|
32
27
|
]);
|
|
33
28
|
var tsup_config_default = config;
|