@storm-software/cloudflare-tools 0.55.85 → 0.55.87

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 (45) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-VTHBMY4B.js → chunk-6XDOBG77.js} +39 -28
  4. package/dist/{chunk-FUE3PSOC.mjs → chunk-CW6SXRL4.mjs} +825 -544
  5. package/dist/{chunk-VRLPVMXP.mjs → chunk-FABNT5TZ.mjs} +15 -13
  6. package/dist/{chunk-QQJ225UZ.mjs → chunk-GPAI4NHQ.mjs} +141 -87
  7. package/dist/{chunk-YNJJF3XM.mjs → chunk-H4XWGL24.mjs} +93 -56
  8. package/dist/{chunk-IVLCYFXD.js → chunk-HBASMEU5.js} +168 -114
  9. package/dist/{chunk-6B5PUF7X.js → chunk-HIUZ6UL7.js} +97 -47
  10. package/dist/{chunk-R7AIVBS7.js → chunk-I4P7DVDN.js} +19 -24
  11. package/dist/{chunk-KWHACLHR.mjs → chunk-ISGKIYF5.mjs} +92 -42
  12. package/dist/{chunk-5RE7UZTH.mjs → chunk-L4WFYC7K.mjs} +39 -28
  13. package/dist/{chunk-PWYTCJYX.js → chunk-LDHIZ5T7.js} +875 -594
  14. package/dist/{chunk-J5SB6L2L.js → chunk-MCKGQKYU.js} +2 -5
  15. package/dist/{chunk-DEJ5S46A.mjs → chunk-MV24QW26.mjs} +195 -127
  16. package/dist/{chunk-V7LBWOVV.js → chunk-PZ5CI56F.js} +196 -128
  17. package/dist/{chunk-AOEF7EWN.mjs → chunk-QPABB45G.mjs} +19 -24
  18. package/dist/{chunk-TLFPZXKG.mjs → chunk-QQ22YQSB.mjs} +3 -6
  19. package/dist/{chunk-QGRENI3O.js → chunk-RIUVF72K.js} +17 -15
  20. package/dist/{chunk-PKQBY4ZM.js → chunk-X4Y76AIM.js} +26 -20
  21. package/dist/{chunk-CNGX2WYG.js → chunk-XCEENUJB.js} +93 -58
  22. package/dist/{chunk-N4KJP2OA.mjs → chunk-YJOYATEB.mjs} +27 -21
  23. package/dist/executors.js +8 -8
  24. package/dist/executors.mjs +8 -8
  25. package/dist/generators.js +6 -6
  26. package/dist/generators.mjs +5 -5
  27. package/dist/index.js +41 -49
  28. package/dist/index.mjs +40 -48
  29. package/dist/src/executors/cloudflare-publish/executor.js +7 -7
  30. package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
  31. package/dist/src/executors/r2-upload-publish/executor.js +7 -7
  32. package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
  33. package/dist/src/executors/serve/executor.js +49 -50
  34. package/dist/src/executors/serve/executor.mjs +48 -49
  35. package/dist/src/generators/init/generator.js +3 -3
  36. package/dist/src/generators/init/generator.mjs +2 -2
  37. package/dist/src/generators/worker/generator.js +6 -6
  38. package/dist/src/generators/worker/generator.mjs +5 -5
  39. package/dist/src/utils/index.js +4 -4
  40. package/dist/src/utils/index.mjs +3 -3
  41. package/dist/src/utils/r2-bucket-helpers.js +4 -4
  42. package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
  43. package/dist/tsup.config.js +3 -8
  44. package/dist/tsup.config.mjs +3 -8
  45. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,34 +3,34 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkCNGX2WYGjs = require('./chunk-CNGX2WYG.js');
6
+ var _chunkXCEENUJBjs = require('./chunk-XCEENUJB.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkPKQBY4ZMjs = require('./chunk-PKQBY4ZM.js');
10
+ var _chunkX4Y76AIMjs = require('./chunk-X4Y76AIM.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
- require('./chunk-R7AIVBS7.js');
13
- require('./chunk-PWYTCJYX.js');
14
- require('./chunk-6B5PUF7X.js');
12
+ require('./chunk-I4P7DVDN.js');
13
+ require('./chunk-LDHIZ5T7.js');
14
+ require('./chunk-HIUZ6UL7.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkQGRENI3Ojs = require('./chunk-QGRENI3O.js');
18
+ var _chunkRIUVF72Kjs = require('./chunk-RIUVF72K.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
23
- require('./chunk-IVLCYFXD.js');
24
- require('./chunk-V7LBWOVV.js');
25
-
26
-
27
- var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
22
+ var _chunk6XDOBG77js = require('./chunk-6XDOBG77.js');
23
+ require('./chunk-HBASMEU5.js');
24
+ require('./chunk-PZ5CI56F.js');
25
+ require('./chunk-MCKGQKYU.js');
28
26
 
29
27
  // src/plugins/index.ts
30
28
  var _fs = require('fs');
31
29
  var _path = require('path');
32
30
  var _nxjsonjs = require('nx/src/config/nx-json.js');
33
31
  var _fileutils = require('nx/src/utils/fileutils');
32
+
33
+
34
34
  var _packagejson = require('nx/src/utils/package-json');
35
35
  var name = "storm-software/cloudflare";
36
36
  var createNodes = [
@@ -40,18 +40,19 @@ var createNodes = [
40
40
  if (!packageJson) {
41
41
  return {};
42
42
  }
43
- const project = createProjectFromPackageJsonNextToProjectJson(file, packageJson);
43
+ const project = createProjectFromPackageJsonNextToProjectJson(
44
+ file,
45
+ packageJson
46
+ );
44
47
  const nxJson = _nxjsonjs.readNxJson.call(void 0, ctx.workspaceRoot);
45
- const targets = _packagejson.readTargetsFromPackageJson.call(void 0, packageJson, nxJson);
48
+ const targets = _packagejson.readTargetsFromPackageJson.call(void 0,
49
+ packageJson,
50
+ nxJson
51
+ );
46
52
  targets["serve"] = {
47
53
  cache: false,
48
- inputs: [
49
- "typescript",
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
- "build"
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,24 +71,24 @@ var createNodes = [
77
71
  };
78
72
  targets["nx-release-publish"] = {
79
73
  cache: false,
80
- inputs: [
81
- "typescript",
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
- _chunkVTHBMY4Bjs.addProjectTag.call(void 0, project, _chunkVTHBMY4Bjs.ProjectTagConstants.ProjectType.TAG_ID, project.projectType === "application" ? _chunkVTHBMY4Bjs.ProjectTagConstants.ProjectType.APPLICATION : _chunkVTHBMY4Bjs.ProjectTagConstants.ProjectType.LIBRARY, {
92
- overwrite: true
93
- });
94
- _chunkVTHBMY4Bjs.addProjectTag.call(void 0, project, _chunkVTHBMY4Bjs.ProjectTagConstants.DistStyle.TAG_ID, _chunkVTHBMY4Bjs.ProjectTagConstants.DistStyle.CLEAN, {
95
- overwrite: true
96
- });
97
- _chunkVTHBMY4Bjs.addProjectTag.call(void 0, project, _chunkVTHBMY4Bjs.ProjectTagConstants.Provider.TAG_ID, "cloudflare", {
79
+ _chunk6XDOBG77js.addProjectTag.call(void 0,
80
+ project,
81
+ _chunk6XDOBG77js.ProjectTagConstants.ProjectType.TAG_ID,
82
+ project.projectType === "application" ? _chunk6XDOBG77js.ProjectTagConstants.ProjectType.APPLICATION : _chunk6XDOBG77js.ProjectTagConstants.ProjectType.LIBRARY,
83
+ { overwrite: true }
84
+ );
85
+ _chunk6XDOBG77js.addProjectTag.call(void 0,
86
+ project,
87
+ _chunk6XDOBG77js.ProjectTagConstants.DistStyle.TAG_ID,
88
+ _chunk6XDOBG77js.ProjectTagConstants.DistStyle.CLEAN,
89
+ { overwrite: true }
90
+ );
91
+ _chunk6XDOBG77js.addProjectTag.call(void 0, project, _chunk6XDOBG77js.ProjectTagConstants.Provider.TAG_ID, "cloudflare", {
98
92
  overwrite: true
99
93
  });
100
94
  return _optionalChain([project, 'optionalAccess', _2 => _2.name]) ? {
@@ -124,7 +118,6 @@ function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJ
124
118
  targets: {}
125
119
  };
126
120
  }
127
- _chunkJ5SB6L2Ljs.__name.call(void 0, createProjectFromPackageJsonNextToProjectJson, "createProjectFromPackageJsonNextToProjectJson");
128
121
  function createPackageJson(projectJsonPath, workspaceRoot) {
129
122
  try {
130
123
  const root = _path.dirname.call(void 0, projectJsonPath);
@@ -138,7 +131,6 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
138
131
  return null;
139
132
  }
140
133
  }
141
- _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
142
134
 
143
135
 
144
136
 
@@ -148,4 +140,4 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, createPackageJson, "createPackageJson");
148
140
 
149
141
 
150
142
 
151
- exports.applicationGenerator = _chunkCNGX2WYGjs.applicationGenerator; exports.applicationSchematic = _chunkCNGX2WYGjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkQGRENI3Ojs.getInternalDependencies; exports.initGenerator = _chunkPKQBY4ZMjs.initGenerator; exports.initSchematic = _chunkPKQBY4ZMjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkQGRENI3Ojs.r2UploadFile;
143
+ exports.applicationGenerator = _chunkXCEENUJBjs.applicationGenerator; exports.applicationSchematic = _chunkXCEENUJBjs.applicationSchematic; exports.createNodes = createNodes; exports.getInternalDependencies = _chunkRIUVF72Kjs.getInternalDependencies; exports.initGenerator = _chunkX4Y76AIMjs.initGenerator; exports.initSchematic = _chunkX4Y76AIMjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkRIUVF72Kjs.r2UploadFile;
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-YNJJF3XM.mjs";
6
+ } from "./chunk-H4XWGL24.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-N4KJP2OA.mjs";
10
+ } from "./chunk-YJOYATEB.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
- import "./chunk-AOEF7EWN.mjs";
13
- import "./chunk-FUE3PSOC.mjs";
14
- import "./chunk-KWHACLHR.mjs";
12
+ import "./chunk-QPABB45G.mjs";
13
+ import "./chunk-CW6SXRL4.mjs";
14
+ import "./chunk-ISGKIYF5.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
18
- } from "./chunk-VRLPVMXP.mjs";
18
+ } from "./chunk-FABNT5TZ.mjs";
19
19
  import {
20
20
  ProjectTagConstants,
21
21
  addProjectTag
22
- } from "./chunk-5RE7UZTH.mjs";
23
- import "./chunk-QQJ225UZ.mjs";
24
- import "./chunk-DEJ5S46A.mjs";
25
- import {
26
- __name
27
- } from "./chunk-TLFPZXKG.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 { readTargetsFromPackageJson } from "nx/src/utils/package-json";
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(file, packageJson);
43
+ const project = createProjectFromPackageJsonNextToProjectJson(
44
+ file,
45
+ packageJson
46
+ );
44
47
  const nxJson = readNxJson(ctx.workspaceRoot);
45
- const targets = readTargetsFromPackageJson(packageJson, nxJson);
48
+ const targets = readTargetsFromPackageJson(
49
+ packageJson,
50
+ nxJson
51
+ );
46
52
  targets["serve"] = {
47
53
  cache: false,
48
- inputs: [
49
- "typescript",
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
- "build"
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
- "typescript",
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(project, ProjectTagConstants.ProjectType.TAG_ID, project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY, {
92
- overwrite: true
93
- });
94
- addProjectTag(project, ProjectTagConstants.DistStyle.TAG_ID, ProjectTagConstants.DistStyle.CLEAN, {
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 _chunkR7AIVBS7js = require('../../../chunk-R7AIVBS7.js');
4
- require('../../../chunk-PWYTCJYX.js');
5
- require('../../../chunk-VTHBMY4B.js');
6
- require('../../../chunk-IVLCYFXD.js');
7
- require('../../../chunk-V7LBWOVV.js');
8
- require('../../../chunk-J5SB6L2L.js');
3
+ var _chunkI4P7DVDNjs = require('../../../chunk-I4P7DVDN.js');
4
+ require('../../../chunk-LDHIZ5T7.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 = _chunkR7AIVBS7js.runExecutor;
11
+ exports.default = _chunkI4P7DVDNjs.runExecutor;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-AOEF7EWN.mjs";
4
- import "../../../chunk-FUE3PSOC.mjs";
5
- import "../../../chunk-5RE7UZTH.mjs";
6
- import "../../../chunk-QQJ225UZ.mjs";
7
- import "../../../chunk-DEJ5S46A.mjs";
8
- import "../../../chunk-TLFPZXKG.mjs";
3
+ } from "../../../chunk-QPABB45G.mjs";
4
+ import "../../../chunk-CW6SXRL4.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 _chunk6B5PUF7Xjs = require('../../../chunk-6B5PUF7X.js');
4
- require('../../../chunk-QGRENI3O.js');
5
- require('../../../chunk-VTHBMY4B.js');
6
- require('../../../chunk-IVLCYFXD.js');
7
- require('../../../chunk-V7LBWOVV.js');
8
- require('../../../chunk-J5SB6L2L.js');
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 = _chunk6B5PUF7Xjs.runExecutor;
11
+ exports.default = _chunkHIUZ6UL7js.runExecutor;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-KWHACLHR.mjs";
4
- import "../../../chunk-VRLPVMXP.mjs";
5
- import "../../../chunk-5RE7UZTH.mjs";
6
- import "../../../chunk-QQJ225UZ.mjs";
7
- import "../../../chunk-DEJ5S46A.mjs";
8
- import "../../../chunk-TLFPZXKG.mjs";
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 _chunkPWYTCJYXjs = require('../../../chunk-PWYTCJYX.js');
3
+ var _chunkLDHIZ5T7js = require('../../../chunk-LDHIZ5T7.js');
4
4
 
5
5
 
6
- var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
7
- require('../../../chunk-IVLCYFXD.js');
8
- require('../../../chunk-V7LBWOVV.js');
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 = _chunkVTHBMY4Bjs.createCliOptions.call(void 0, {
24
- ...options
25
- });
26
- const wranglerBin = _chunkJ5SB6L2Ljs.__require.resolve("wrangler/bin/wrangler");
27
- yield* _asynciterable.createAsyncIterable.call(void 0, async ({ done, next, error }) => {
28
- process.env.PWD = projectRoot;
29
- const server = _child_process.fork.call(void 0, wranglerBin, [
30
- "dev",
31
- ...wranglerOptions
32
- ], {
33
- cwd: projectRoot,
34
- stdio: "inherit"
35
- });
36
- server.once("exit", (code) => {
37
- if (code === 0) {
38
- done();
39
- } else {
40
- error(new Error(`Cloudflare worker exited with code ${code}`));
41
- }
42
- });
43
- const killServer = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
44
- if (server.connected) {
45
- server.kill("SIGTERM");
46
- }
47
- }, "killServer");
48
- process.on("exit", () => killServer());
49
- process.on("SIGINT", () => killServer());
50
- process.on("SIGTERM", () => killServer());
51
- process.on("SIGHUP", () => killServer());
52
- await _waitforportopen.waitForPortOpen.call(void 0, _nullishCoalesce(options.port, () => ( 4500)));
53
- next({
54
- success: true,
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
- _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunkPWYTCJYXjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
- skipReadingConfig: false,
65
- hooks: {
66
- applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
67
- options.port ??= 4500;
68
- return options;
69
- }, "applyDefaultOptions")
58
+ var executor_default = _chunkLDHIZ5T7js.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-FUE3PSOC.mjs";
3
+ } from "../../../chunk-CW6SXRL4.mjs";
4
4
  import {
5
5
  createCliOptions
6
- } from "../../../chunk-5RE7UZTH.mjs";
7
- import "../../../chunk-QQJ225UZ.mjs";
8
- import "../../../chunk-DEJ5S46A.mjs";
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-TLFPZXKG.mjs";
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(async ({ done, next, error }) => {
28
- process.env.PWD = projectRoot;
29
- const server = fork(wranglerBin, [
30
- "dev",
31
- ...wranglerOptions
32
- ], {
33
- cwd: projectRoot,
34
- stdio: "inherit"
35
- });
36
- server.once("exit", (code) => {
37
- if (code === 0) {
38
- done();
39
- } else {
40
- error(new Error(`Cloudflare worker exited with code ${code}`));
41
- }
42
- });
43
- const killServer = /* @__PURE__ */ __name(() => {
44
- if (server.connected) {
45
- server.kill("SIGTERM");
46
- }
47
- }, "killServer");
48
- process.on("exit", () => killServer());
49
- process.on("SIGINT", () => killServer());
50
- process.on("SIGTERM", () => killServer());
51
- process.on("SIGHUP", () => killServer());
52
- await waitForPortOpen(options.port ?? 4500);
53
- next({
54
- success: true,
55
- baseUrl: `http://localhost:${options.port}`
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
- __name(serveExecutor, "serveExecutor");
63
- var executor_default = withRunExecutor("Cloudflare Serve executor", serveExecutor, {
64
- skipReadingConfig: false,
65
- hooks: {
66
- applyDefaultOptions: /* @__PURE__ */ __name((options) => {
67
- options.port ??= 4500;
68
- return options;
69
- }, "applyDefaultOptions")
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 _chunkPKQBY4ZMjs = require('../../../chunk-PKQBY4ZM.js');
6
- require('../../../chunk-J5SB6L2L.js');
5
+ var _chunkX4Y76AIMjs = require('../../../chunk-X4Y76AIM.js');
6
+ require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkPKQBY4ZMjs.generator_default; exports.initGenerator = _chunkPKQBY4ZMjs.initGenerator; exports.initSchematic = _chunkPKQBY4ZMjs.initSchematic;
11
+ exports.default = _chunkX4Y76AIMjs.generator_default; exports.initGenerator = _chunkX4Y76AIMjs.initGenerator; exports.initSchematic = _chunkX4Y76AIMjs.initSchematic;
@@ -2,8 +2,8 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-N4KJP2OA.mjs";
6
- import "../../../chunk-TLFPZXKG.mjs";
5
+ } from "../../../chunk-YJOYATEB.mjs";
6
+ import "../../../chunk-QQ22YQSB.mjs";
7
7
  export {
8
8
  generator_default as default,
9
9
  initGenerator,