@storm-software/cloudflare-tools 0.48.0 → 0.49.1

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 (81) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/chunk-3J7KBHMJ.mjs +0 -0
  3. package/dist/chunk-7Z5PILRU.mjs +0 -0
  4. package/dist/chunk-A7FFSBE6.mjs +26 -0
  5. package/dist/chunk-CR22PACK.mjs +239 -0
  6. package/dist/chunk-CVGPWUNP.js +1 -0
  7. package/dist/chunk-DHBG5ASJ.js +1 -0
  8. package/dist/chunk-ITLKTOIK.mjs +4042 -0
  9. package/dist/chunk-J5SB6L2L.js +18 -0
  10. package/dist/chunk-JCB2DTP6.js +42 -0
  11. package/dist/chunk-NKCR3FSU.js +153 -0
  12. package/dist/chunk-NPJPHEFP.js +239 -0
  13. package/dist/chunk-NSLK6ZDO.mjs +603 -0
  14. package/dist/chunk-OARYMVO7.mjs +501 -0
  15. package/dist/chunk-QEWY5YJA.mjs +89 -0
  16. package/dist/chunk-R7AIVBS7.js +89 -0
  17. package/dist/chunk-RCE3CC76.js +603 -0
  18. package/dist/chunk-VPT6GF3S.mjs +153 -0
  19. package/dist/chunk-VTHBMY4B.js +133 -0
  20. package/dist/chunk-VYOULWAK.mjs +42 -0
  21. package/dist/chunk-W5J5EWQN.js +227 -0
  22. package/dist/chunk-WGOT27OY.js +4041 -0
  23. package/dist/chunk-XO66D74Z.js +1 -0
  24. package/dist/chunk-XU6MTFCV.mjs +133 -0
  25. package/dist/chunk-YE4FHRXJ.js +501 -0
  26. package/dist/chunk-YSCEY447.mjs +0 -0
  27. package/dist/chunk-ZY7TM2TA.mjs +228 -0
  28. package/dist/executors.d.mts +2 -0
  29. package/dist/executors.d.ts +2 -0
  30. package/dist/executors.js +9 -0
  31. package/dist/executors.mjs +9 -0
  32. package/dist/generator-DJ1RuHyR.d.mts +14 -0
  33. package/dist/generator-DJ1RuHyR.d.ts +14 -0
  34. package/dist/generator-DW-9W9Fk.d.mts +22 -0
  35. package/dist/generator-DW-9W9Fk.d.ts +22 -0
  36. package/dist/generators.d.mts +4 -0
  37. package/dist/generators.d.ts +4 -0
  38. package/dist/generators.js +18 -0
  39. package/dist/generators.mjs +18 -0
  40. package/dist/index.d.mts +45 -0
  41. package/dist/index.d.ts +45 -0
  42. package/dist/index.js +151 -0
  43. package/dist/index.mjs +151 -0
  44. package/dist/schema.d-DgA16PUG.d.mts +24 -0
  45. package/dist/schema.d-DgA16PUG.d.ts +24 -0
  46. package/dist/schema.d-oSirXiCO.d.mts +11 -0
  47. package/dist/schema.d-oSirXiCO.d.ts +11 -0
  48. package/dist/src/executors/cloudflare-publish/executor.d.mts +8 -0
  49. package/dist/src/executors/cloudflare-publish/executor.d.ts +8 -0
  50. package/dist/src/executors/cloudflare-publish/executor.js +11 -0
  51. package/dist/src/executors/cloudflare-publish/executor.mjs +11 -0
  52. package/dist/src/executors/r2-upload-publish/executor.d.mts +8 -0
  53. package/dist/src/executors/r2-upload-publish/executor.d.ts +8 -0
  54. package/dist/src/executors/r2-upload-publish/executor.js +11 -0
  55. package/dist/src/executors/r2-upload-publish/executor.mjs +11 -0
  56. package/dist/src/executors/serve/executor.d.mts +1240 -0
  57. package/dist/src/executors/serve/executor.d.ts +1240 -0
  58. package/dist/src/executors/serve/executor.js +75 -0
  59. package/dist/src/executors/serve/executor.mjs +75 -0
  60. package/dist/src/executors/serve/schema.d.ts +1 -1
  61. package/dist/src/generators/init/generator.d.mts +2 -0
  62. package/dist/src/generators/init/generator.d.ts +2 -0
  63. package/dist/src/generators/init/generator.js +11 -0
  64. package/dist/src/generators/init/generator.mjs +11 -0
  65. package/dist/src/generators/worker/generator.d.mts +3 -0
  66. package/dist/src/generators/worker/generator.d.ts +3 -0
  67. package/dist/src/generators/worker/generator.js +14 -0
  68. package/dist/src/generators/worker/generator.mjs +14 -0
  69. package/dist/src/utils/index.d.mts +3 -0
  70. package/dist/src/utils/index.d.ts +3 -0
  71. package/dist/src/utils/index.js +11 -0
  72. package/dist/src/utils/index.mjs +11 -0
  73. package/dist/src/utils/r2-bucket-helpers.d.mts +7 -0
  74. package/dist/src/utils/r2-bucket-helpers.d.ts +7 -0
  75. package/dist/src/utils/r2-bucket-helpers.js +10 -0
  76. package/dist/src/utils/r2-bucket-helpers.mjs +10 -0
  77. package/dist/tsup.config.d.mts +5 -0
  78. package/dist/tsup.config.d.ts +5 -0
  79. package/dist/tsup.config.js +35 -0
  80. package/dist/tsup.config.mjs +35 -0
  81. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.49.1 (2025-01-20)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **workspace-tools:** Resolve cross-platform build issue in `copyfiles` script ([331a723f](https://github.com/storm-software/storm-ops/commit/331a723f))
6
+
7
+ ## 0.49.0 (2025-01-20)
8
+
9
+ ### Features
10
+
11
+ - **untyped:** Standard file name changes to avoid collisions ([71acf100](https://github.com/storm-software/storm-ops/commit/71acf100))
12
+
13
+ ### Bug Fixes
14
+
15
+ - **terraform-tools:** Resolve issue with invalid import path ([7a8ee2cf](https://github.com/storm-software/storm-ops/commit/7a8ee2cf))
16
+
1
17
  ## 0.48.0 (2025-01-20)
2
18
 
3
19
  ### Features
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
+ }) : x)(function(x) {
7
+ if (typeof require !== "undefined") return require.apply(this, arguments);
8
+ throw Error('Dynamic require of "' + x + '" is not supported');
9
+ });
10
+ var __commonJS = (cb, mod) => function __require2() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+
14
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/esm_shims.js
15
+ import { fileURLToPath } from "url";
16
+ import path from "path";
17
+ var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
18
+ var getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
19
+ var __dirname = /* @__PURE__ */ getDirname();
20
+
21
+ export {
22
+ __name,
23
+ __require,
24
+ __commonJS,
25
+ __dirname
26
+ };
@@ -0,0 +1,239 @@
1
+ import {
2
+ __commonJS,
3
+ __name
4
+ } from "./chunk-A7FFSBE6.mjs";
5
+
6
+ // package.json
7
+ var require_package = __commonJS({
8
+ "package.json"(exports, module) {
9
+ module.exports = {
10
+ name: "@storm-software/cloudflare-tools",
11
+ version: "0.49.1",
12
+ description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
+ repository: {
14
+ type: "github",
15
+ url: "https://github.com/storm-software/storm-ops",
16
+ directory: "packages/cloudflare-tools"
17
+ },
18
+ homepage: "https://stormsoftware.com",
19
+ bugs: "https://github.com/storm-software/storm-ops/issues",
20
+ author: {
21
+ name: "Storm Software",
22
+ email: "contact@stormsoftware.com",
23
+ url: "https://stormsoftware.com"
24
+ },
25
+ license: "Apache-2.0",
26
+ private: false,
27
+ main: "dist/index.js",
28
+ module: "dist/index.mjs",
29
+ exports: {
30
+ "./package.json": "./package.json",
31
+ "./docs/*": "./docs/*",
32
+ "./migrations.json": "./migrations.json",
33
+ "./executors.json": "./executors.json",
34
+ "./executors/*/schema.json": "./dist/src/executors/*/schema.json",
35
+ "./generators.json": "./generators.json",
36
+ "./generators/*/schema.json": "./dist/src/generators/*/schema.json",
37
+ ".": {
38
+ import: {
39
+ types: "./dist/index.d.mts",
40
+ default: "./dist/index.mjs"
41
+ },
42
+ require: {
43
+ types: "./dist/index.d.ts",
44
+ default: "./dist/index.js"
45
+ },
46
+ default: {
47
+ types: "./dist/index.d.ts",
48
+ default: "./dist/index.js"
49
+ }
50
+ },
51
+ "./index": {
52
+ import: {
53
+ types: "./dist/index.d.mts",
54
+ default: "./dist/index.mjs"
55
+ },
56
+ require: {
57
+ types: "./dist/index.d.ts",
58
+ default: "./dist/index.js"
59
+ },
60
+ default: {
61
+ types: "./dist/index.d.ts",
62
+ default: "./dist/index.js"
63
+ }
64
+ },
65
+ "./executors": {
66
+ import: {
67
+ types: "./dist/executors.d.mts",
68
+ default: "./dist/executors.mjs"
69
+ },
70
+ require: {
71
+ types: "./dist/executors.d.ts",
72
+ default: "./dist/executors.js"
73
+ },
74
+ default: {
75
+ types: "./dist/executors.d.ts",
76
+ default: "./dist/executors.js"
77
+ }
78
+ },
79
+ "./generators": {
80
+ import: {
81
+ types: "./dist/generators.d.mts",
82
+ default: "./dist/generators.mjs"
83
+ },
84
+ require: {
85
+ types: "./dist/generators.d.ts",
86
+ default: "./dist/generators.js"
87
+ },
88
+ default: {
89
+ types: "./dist/generators.d.ts",
90
+ default: "./dist/generators.js"
91
+ }
92
+ },
93
+ "./utils": {
94
+ import: {
95
+ types: "./dist/src/utils/index.d.mts",
96
+ default: "./dist/src/utils/index.mjs"
97
+ },
98
+ require: {
99
+ types: "./dist/src/utils/index.d.ts",
100
+ default: "./dist/src/utils/index.js"
101
+ },
102
+ default: {
103
+ types: "./dist/src/utils/index.d.ts",
104
+ default: "./dist/src/utils/index.js"
105
+ }
106
+ },
107
+ "./utils/*": {
108
+ import: {
109
+ types: "./dist/src/utils/*.d.mts",
110
+ default: "./dist/src/utils/*.mjs"
111
+ },
112
+ require: {
113
+ types: "./dist/src/utils/*.d.ts",
114
+ default: "./dist/src/utils/*.js"
115
+ },
116
+ default: {
117
+ types: "./dist/src/utils/*.d.ts",
118
+ default: "./dist/src/utils/*.js"
119
+ }
120
+ },
121
+ "./executors/*/executor.js": "./dist/src/executors/*/executor.js",
122
+ "./generators/*/generator.js": "./dist/src/generators/*/generator.js",
123
+ "./plugin": "./dist/src/plugins/index.js"
124
+ },
125
+ typings: "dist/index.d.ts",
126
+ keywords: [
127
+ "monorepo",
128
+ "open-system",
129
+ "storm",
130
+ "storm-ops",
131
+ "storm-stack",
132
+ "stormstack",
133
+ "sullivanpj"
134
+ ],
135
+ peerDependencies: {
136
+ "@nx/devkit": "catalog:",
137
+ "@nx/node": "catalog:",
138
+ "@nx/web": "catalog:",
139
+ "@nx/webpack": "catalog:",
140
+ nx: "catalog:",
141
+ wrangler: ">=3.58.0"
142
+ },
143
+ peerDependenciesMeta: {
144
+ "@nx/devkit": {
145
+ optional: false
146
+ },
147
+ "@nx/node": {
148
+ optional: false
149
+ },
150
+ "@nx/web": {
151
+ optional: false
152
+ },
153
+ "@nx/webpack": {
154
+ optional: false
155
+ },
156
+ nx: {
157
+ optional: false
158
+ },
159
+ wrangler: {
160
+ optional: false
161
+ }
162
+ },
163
+ dependencies: {
164
+ "@aws-sdk/client-s3": "3.47.0",
165
+ c12: "catalog:",
166
+ glob: "catalog:",
167
+ "jest-resolve": "29.7.0"
168
+ },
169
+ devDependencies: {
170
+ "@nx/devkit": "catalog:",
171
+ "@nx/node": "catalog:",
172
+ "@nx/web": "catalog:",
173
+ "@nx/webpack": "catalog:",
174
+ nx: "catalog:",
175
+ tsup: "catalog:",
176
+ untyped: "catalog:",
177
+ wrangler: ">=3.58.0"
178
+ },
179
+ publishConfig: {
180
+ access: "public"
181
+ },
182
+ executors: "./executors.json",
183
+ generators: "./generators.json"
184
+ };
185
+ }
186
+ });
187
+
188
+ // src/generators/init/generator.ts
189
+ import { addDependenciesToPackageJson, convertNxGenerator, formatFiles, removeDependenciesFromPackageJson } from "@nx/devkit";
190
+ import { initGenerator as nodeInitGenerator } from "@nx/js";
191
+ import { tslibVersion } from "@nx/node/src/utils/versions";
192
+
193
+ // src/generators/init/libs/versions.ts
194
+ var cloudflareToolsVersion = require_package().version;
195
+ var wranglerVersion = "^3.51.2";
196
+ var cloudflareWorkersTypeVersions = "^4.20240419.0";
197
+ var honoVersion = "^4.2.6";
198
+
199
+ // src/generators/init/generator.ts
200
+ async function initGenerator(tree, schema) {
201
+ const initTask = await nodeInitGenerator(tree, {
202
+ ...schema,
203
+ skipFormat: true
204
+ });
205
+ const installTask = updateDependencies(tree, schema);
206
+ if (!schema.skipFormat) {
207
+ await formatFiles(tree);
208
+ }
209
+ return async () => {
210
+ await initTask();
211
+ await installTask();
212
+ };
213
+ }
214
+ __name(initGenerator, "initGenerator");
215
+ function updateDependencies(tree, schema) {
216
+ removeDependenciesFromPackageJson(tree, [
217
+ "@storm-software/cloudflare-tools"
218
+ ], []);
219
+ const honoPackage = schema.template === "hono" ? {
220
+ hono: honoVersion
221
+ } : {};
222
+ return addDependenciesToPackageJson(tree, {
223
+ tslib: tslibVersion,
224
+ ...honoPackage
225
+ }, {
226
+ wrangler: wranglerVersion,
227
+ "@cloudflare/workers-types": cloudflareWorkersTypeVersions,
228
+ "@storm-software/cloudflare-tools": cloudflareToolsVersion
229
+ });
230
+ }
231
+ __name(updateDependencies, "updateDependencies");
232
+ var generator_default = initGenerator;
233
+ var initSchematic = convertNxGenerator(initGenerator);
234
+
235
+ export {
236
+ initGenerator,
237
+ generator_default,
238
+ initSchematic
239
+ };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";