@storm-software/cloudflare-tools 0.59.1 → 0.60.0
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 +12 -0
- package/README.md +1 -2
- package/dist/{chunk-E4FJOPZF.mjs → chunk-2P2Y3PCF.mjs} +1 -1
- package/dist/{chunk-SFQNQKTR.js → chunk-4HXW4ZJY.js} +2 -2
- package/dist/{chunk-CZV5DISJ.mjs → chunk-7QZXI5HN.mjs} +2 -2
- package/dist/{chunk-KHW7K2UZ.js → chunk-E3TZJX67.js} +2 -2
- package/dist/{chunk-5TUHGXSI.mjs → chunk-EGZ3BGPS.mjs} +1 -1
- package/dist/{chunk-PVTYFKMF.mjs → chunk-SZONRMZR.mjs} +3 -3
- package/dist/{chunk-WMNGJUHG.js → chunk-T2DEGTEZ.js} +9 -9
- package/dist/{chunk-GNQ5XIH7.mjs → chunk-WEQTU7QO.mjs} +10 -10
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +3 -3
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.d.mts +4 -48
- package/dist/index.d.ts +4 -48
- package/dist/index.js +96 -74
- package/dist/index.mjs +98 -76
- package/dist/src/executors/cloudflare-publish/executor.js +1 -1
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +1 -1
- package/dist/src/executors/serve/executor.js +2 -2
- package/dist/src/executors/serve/executor.mjs +2 -2
- 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/utils/index.mjs +1 -1
- package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
- package/dist/tsup.config.mjs +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.60.0](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.60.0) (2025-05-06)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **git-tools:** Update release version to use Nx package
|
|
10
|
+
([f31c02dec](https://github.com/storm-software/storm-ops/commit/f31c02dec))
|
|
11
|
+
|
|
12
|
+
### Miscellaneous
|
|
13
|
+
|
|
14
|
+
- **monorepo:** Regenerate README markdown files
|
|
15
|
+
([32a1809d1](https://github.com/storm-software/storm-ops/commit/32a1809d1))
|
|
16
|
+
|
|
5
17
|
## [0.59.1](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.59.1) (2025-05-06)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Cloudflare Tools](#storm-cloudflare-tools)
|
|
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
12
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__024c4703de6e5b2228d07d2a7fd1b674/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkE3TZJX67js = require('./chunk-E3TZJX67.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkHBASMEU5js = require('./chunk-HBASMEU5.js');
|
|
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
66
66
|
const options = await normalizeOptions(tree, schema, config);
|
|
67
67
|
const tasks = [];
|
|
68
68
|
tasks.push(
|
|
69
|
-
await
|
|
69
|
+
await _chunkE3TZJX67js.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SZONRMZR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
6
|
} from "./chunk-GPAI4NHQ.mjs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-MV24QW26.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2P2Y3PCF.mjs";
|
|
19
19
|
|
|
20
20
|
// src/generators/worker/generator.ts
|
|
21
21
|
import {
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.
|
|
10
|
+
version: "0.60.0",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -175,7 +175,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
175
175
|
nx: "catalog:",
|
|
176
176
|
tsup: "catalog:",
|
|
177
177
|
untyped: "catalog:",
|
|
178
|
-
wrangler: "^4.14.
|
|
178
|
+
wrangler: "^4.14.3"
|
|
179
179
|
},
|
|
180
180
|
publishConfig: {
|
|
181
181
|
access: "public"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2P2Y3PCF.mjs";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
var require_package = __commonJS({
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.
|
|
10
|
+
version: "0.60.0",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -175,7 +175,7 @@ var require_package = __commonJS({
|
|
|
175
175
|
nx: "catalog:",
|
|
176
176
|
tsup: "catalog:",
|
|
177
177
|
untyped: "catalog:",
|
|
178
|
-
wrangler: "^4.14.
|
|
178
|
+
wrangler: "^4.14.3"
|
|
179
179
|
},
|
|
180
180
|
publishConfig: {
|
|
181
181
|
access: "public"
|
|
@@ -315,7 +315,7 @@ function cargoMetadata() {
|
|
|
315
315
|
}
|
|
316
316
|
function runProcess(processCmd, ...args) {
|
|
317
317
|
const metadata = cargoMetadata();
|
|
318
|
-
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _28 => _28.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist"
|
|
318
|
+
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _28 => _28.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist")));
|
|
319
319
|
return new Promise((resolve) => {
|
|
320
320
|
if (process.env.VERCEL) {
|
|
321
321
|
return resolve({ success: true });
|
|
@@ -341,13 +341,13 @@ async function cargoBuildExecutor(options, context) {
|
|
|
341
341
|
return await cargoCommand(...command);
|
|
342
342
|
}
|
|
343
343
|
var executor_default = withRunExecutor(
|
|
344
|
-
"Cargo Build",
|
|
344
|
+
"Cargo - Build",
|
|
345
345
|
cargoBuildExecutor,
|
|
346
346
|
{
|
|
347
347
|
skipReadingConfig: false,
|
|
348
348
|
hooks: {
|
|
349
349
|
applyDefaultOptions: (options) => {
|
|
350
|
-
options.outputPath ??= "dist/
|
|
350
|
+
options.outputPath ??= "dist/{projectRoot}/target";
|
|
351
351
|
options.toolchain ??= "stable";
|
|
352
352
|
return options;
|
|
353
353
|
}
|
|
@@ -361,7 +361,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
361
361
|
return await cargoCommand(...command);
|
|
362
362
|
}
|
|
363
363
|
var executor_default2 = withRunExecutor(
|
|
364
|
-
"Cargo Check",
|
|
364
|
+
"Cargo - Check",
|
|
365
365
|
cargoCheckExecutor,
|
|
366
366
|
{
|
|
367
367
|
skipReadingConfig: false,
|
|
@@ -380,7 +380,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
380
380
|
return await cargoCommand(...command);
|
|
381
381
|
}
|
|
382
382
|
var executor_default3 = withRunExecutor(
|
|
383
|
-
"Cargo Clippy",
|
|
383
|
+
"Cargo - Clippy",
|
|
384
384
|
cargoClippyExecutor,
|
|
385
385
|
{
|
|
386
386
|
skipReadingConfig: false,
|
|
@@ -403,13 +403,13 @@ async function cargoDocExecutor(options, context) {
|
|
|
403
403
|
return await cargoCommand(...command);
|
|
404
404
|
}
|
|
405
405
|
var executor_default4 = withRunExecutor(
|
|
406
|
-
"Cargo Doc",
|
|
406
|
+
"Cargo - Doc",
|
|
407
407
|
cargoDocExecutor,
|
|
408
408
|
{
|
|
409
409
|
skipReadingConfig: false,
|
|
410
410
|
hooks: {
|
|
411
411
|
applyDefaultOptions: (options) => {
|
|
412
|
-
options.outputPath ??= "dist/
|
|
412
|
+
options.outputPath ??= "dist/{projectRoot}/docs";
|
|
413
413
|
options.toolchain ??= "stable";
|
|
414
414
|
options.release ??= options.profile ? false : true;
|
|
415
415
|
options.allFeatures ??= true;
|
|
@@ -429,13 +429,13 @@ async function cargoFormatExecutor(options, context) {
|
|
|
429
429
|
return await cargoCommand(...command);
|
|
430
430
|
}
|
|
431
431
|
var executor_default5 = withRunExecutor(
|
|
432
|
-
"Cargo Format",
|
|
432
|
+
"Cargo - Format",
|
|
433
433
|
cargoFormatExecutor,
|
|
434
434
|
{
|
|
435
435
|
skipReadingConfig: false,
|
|
436
436
|
hooks: {
|
|
437
437
|
applyDefaultOptions: (options) => {
|
|
438
|
-
options.outputPath ??= "dist/
|
|
438
|
+
options.outputPath ??= "dist/{projectRoot}/target";
|
|
439
439
|
options.toolchain ??= "stable";
|
|
440
440
|
return options;
|
|
441
441
|
}
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
__dirname,
|
|
25
25
|
__require
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2P2Y3PCF.mjs";
|
|
27
27
|
|
|
28
28
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
29
29
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -316,7 +316,7 @@ function cargoMetadata() {
|
|
|
316
316
|
}
|
|
317
317
|
function runProcess(processCmd, ...args) {
|
|
318
318
|
const metadata = cargoMetadata();
|
|
319
|
-
const targetDir = metadata?.target_directory ?? joinPathFragments(workspaceRoot, "dist"
|
|
319
|
+
const targetDir = metadata?.target_directory ?? joinPathFragments(workspaceRoot, "dist");
|
|
320
320
|
return new Promise((resolve) => {
|
|
321
321
|
if (process.env.VERCEL) {
|
|
322
322
|
return resolve({ success: true });
|
|
@@ -342,13 +342,13 @@ async function cargoBuildExecutor(options, context) {
|
|
|
342
342
|
return await cargoCommand(...command);
|
|
343
343
|
}
|
|
344
344
|
var executor_default = withRunExecutor(
|
|
345
|
-
"Cargo Build",
|
|
345
|
+
"Cargo - Build",
|
|
346
346
|
cargoBuildExecutor,
|
|
347
347
|
{
|
|
348
348
|
skipReadingConfig: false,
|
|
349
349
|
hooks: {
|
|
350
350
|
applyDefaultOptions: (options) => {
|
|
351
|
-
options.outputPath ??= "dist/
|
|
351
|
+
options.outputPath ??= "dist/{projectRoot}/target";
|
|
352
352
|
options.toolchain ??= "stable";
|
|
353
353
|
return options;
|
|
354
354
|
}
|
|
@@ -362,7 +362,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
362
362
|
return await cargoCommand(...command);
|
|
363
363
|
}
|
|
364
364
|
var executor_default2 = withRunExecutor(
|
|
365
|
-
"Cargo Check",
|
|
365
|
+
"Cargo - Check",
|
|
366
366
|
cargoCheckExecutor,
|
|
367
367
|
{
|
|
368
368
|
skipReadingConfig: false,
|
|
@@ -381,7 +381,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
381
381
|
return await cargoCommand(...command);
|
|
382
382
|
}
|
|
383
383
|
var executor_default3 = withRunExecutor(
|
|
384
|
-
"Cargo Clippy",
|
|
384
|
+
"Cargo - Clippy",
|
|
385
385
|
cargoClippyExecutor,
|
|
386
386
|
{
|
|
387
387
|
skipReadingConfig: false,
|
|
@@ -404,13 +404,13 @@ async function cargoDocExecutor(options, context) {
|
|
|
404
404
|
return await cargoCommand(...command);
|
|
405
405
|
}
|
|
406
406
|
var executor_default4 = withRunExecutor(
|
|
407
|
-
"Cargo Doc",
|
|
407
|
+
"Cargo - Doc",
|
|
408
408
|
cargoDocExecutor,
|
|
409
409
|
{
|
|
410
410
|
skipReadingConfig: false,
|
|
411
411
|
hooks: {
|
|
412
412
|
applyDefaultOptions: (options) => {
|
|
413
|
-
options.outputPath ??= "dist/
|
|
413
|
+
options.outputPath ??= "dist/{projectRoot}/docs";
|
|
414
414
|
options.toolchain ??= "stable";
|
|
415
415
|
options.release ??= options.profile ? false : true;
|
|
416
416
|
options.allFeatures ??= true;
|
|
@@ -430,13 +430,13 @@ async function cargoFormatExecutor(options, context) {
|
|
|
430
430
|
return await cargoCommand(...command);
|
|
431
431
|
}
|
|
432
432
|
var executor_default5 = withRunExecutor(
|
|
433
|
-
"Cargo Format",
|
|
433
|
+
"Cargo - Format",
|
|
434
434
|
cargoFormatExecutor,
|
|
435
435
|
{
|
|
436
436
|
skipReadingConfig: false,
|
|
437
437
|
hooks: {
|
|
438
438
|
applyDefaultOptions: (options) => {
|
|
439
|
-
options.outputPath ??= "dist/
|
|
439
|
+
options.outputPath ??= "dist/{projectRoot}/target";
|
|
440
440
|
options.toolchain ??= "stable";
|
|
441
441
|
return options;
|
|
442
442
|
}
|
package/dist/executors.js
CHANGED
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-EGZ3BGPS.mjs";
|
|
3
|
+
import "./chunk-WEQTU7QO.mjs";
|
|
4
4
|
import "./chunk-ISGKIYF5.mjs";
|
|
5
5
|
import "./chunk-FABNT5TZ.mjs";
|
|
6
6
|
import "./chunk-L4WFYC7K.mjs";
|
|
7
7
|
import "./chunk-GPAI4NHQ.mjs";
|
|
8
8
|
import "./chunk-MV24QW26.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-2P2Y3PCF.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4HXW4ZJYjs = require('./chunk-4HXW4ZJY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkE3TZJX67js = require('./chunk-E3TZJX67.js');
|
|
10
10
|
require('./chunk-HBASMEU5.js');
|
|
11
11
|
require('./chunk-PZ5CI56F.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 = _chunk4HXW4ZJYjs.applicationGenerator; exports.applicationSchematic = _chunk4HXW4ZJYjs.applicationSchematic; exports.initGenerator = _chunkE3TZJX67js.initGenerator; exports.initSchematic = _chunkE3TZJX67js.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-7QZXI5HN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SZONRMZR.mjs";
|
|
10
10
|
import "./chunk-GPAI4NHQ.mjs";
|
|
11
11
|
import "./chunk-MV24QW26.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2P2Y3PCF.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.d.mts
CHANGED
|
@@ -2,57 +2,13 @@ export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.mjs';
|
|
|
2
2
|
export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.mjs';
|
|
3
3
|
export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.mjs';
|
|
4
4
|
export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.mjs';
|
|
5
|
-
import
|
|
6
|
-
import * as nx_src_command_line_release_version from 'nx/src/command-line/release/version';
|
|
7
|
-
import * as _nx_devkit from '@nx/devkit';
|
|
5
|
+
import { CreateNodesV2 } from '@nx/devkit';
|
|
8
6
|
export { getInternalDependencies, r2UploadFile } from './src/utils/r2-bucket-helpers.mjs';
|
|
9
7
|
import '@storm-software/workspace-tools';
|
|
10
8
|
import '@aws-sdk/client-s3';
|
|
11
9
|
|
|
12
10
|
declare const name = "storm-software/cloudflare";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} | {
|
|
16
|
-
projects: {
|
|
17
|
-
[x: string]: {
|
|
18
|
-
targets: {
|
|
19
|
-
[targetName: string]: _nx_devkit.TargetConfiguration<any>;
|
|
20
|
-
};
|
|
21
|
-
release: {
|
|
22
|
-
version: {
|
|
23
|
-
generator: string;
|
|
24
|
-
} | {
|
|
25
|
-
generator: string;
|
|
26
|
-
generatorOptions?: Record<string, unknown> | undefined;
|
|
27
|
-
} | {
|
|
28
|
-
generator: string;
|
|
29
|
-
currentVersionResolverMetadata?: Record<string, unknown> | undefined;
|
|
30
|
-
versionActions?: string | undefined;
|
|
31
|
-
versionActionsOptions?: Record<string, unknown> | undefined;
|
|
32
|
-
manifestRootsToUpdate?: string[] | undefined;
|
|
33
|
-
currentVersionResolver?: "registry" | "disk" | "git-tag" | "none" | undefined;
|
|
34
|
-
fallbackCurrentVersionResolver?: "disk" | undefined;
|
|
35
|
-
versionPrefix?: typeof nx_src_command_line_release_version.validReleaseVersionPrefixes[number] | undefined;
|
|
36
|
-
preserveLocalDependencyProtocols?: boolean | undefined;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
name?: string;
|
|
40
|
-
root: string;
|
|
41
|
-
sourceRoot?: string;
|
|
42
|
-
projectType?: _nx_devkit.ProjectType;
|
|
43
|
-
generators?: {
|
|
44
|
-
[collectionName: string]: {
|
|
45
|
-
[generatorName: string]: any;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
implicitDependencies?: string[];
|
|
49
|
-
namedInputs?: {
|
|
50
|
-
[inputName: string]: (string | nx_src_config_workspace_json_project_json.InputDefinition)[];
|
|
51
|
-
};
|
|
52
|
-
tags?: string[];
|
|
53
|
-
metadata?: nx_src_config_workspace_json_project_json.ProjectMetadata;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}))[];
|
|
11
|
+
type CloudflarePluginOptions = {};
|
|
12
|
+
declare const createNodesV2: CreateNodesV2<CloudflarePluginOptions>;
|
|
57
13
|
|
|
58
|
-
export {
|
|
14
|
+
export { type CloudflarePluginOptions, createNodesV2, name };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,57 +2,13 @@ export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.js';
|
|
|
2
2
|
export { R as R2UploadPublishExecutorSchema } from './schema.d-oSirXiCO.js';
|
|
3
3
|
export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.js';
|
|
4
4
|
export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.js';
|
|
5
|
-
import
|
|
6
|
-
import * as nx_src_command_line_release_version from 'nx/src/command-line/release/version';
|
|
7
|
-
import * as _nx_devkit from '@nx/devkit';
|
|
5
|
+
import { CreateNodesV2 } from '@nx/devkit';
|
|
8
6
|
export { getInternalDependencies, r2UploadFile } from './src/utils/r2-bucket-helpers.js';
|
|
9
7
|
import '@storm-software/workspace-tools';
|
|
10
8
|
import '@aws-sdk/client-s3';
|
|
11
9
|
|
|
12
10
|
declare const name = "storm-software/cloudflare";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} | {
|
|
16
|
-
projects: {
|
|
17
|
-
[x: string]: {
|
|
18
|
-
targets: {
|
|
19
|
-
[targetName: string]: _nx_devkit.TargetConfiguration<any>;
|
|
20
|
-
};
|
|
21
|
-
release: {
|
|
22
|
-
version: {
|
|
23
|
-
generator: string;
|
|
24
|
-
} | {
|
|
25
|
-
generator: string;
|
|
26
|
-
generatorOptions?: Record<string, unknown> | undefined;
|
|
27
|
-
} | {
|
|
28
|
-
generator: string;
|
|
29
|
-
currentVersionResolverMetadata?: Record<string, unknown> | undefined;
|
|
30
|
-
versionActions?: string | undefined;
|
|
31
|
-
versionActionsOptions?: Record<string, unknown> | undefined;
|
|
32
|
-
manifestRootsToUpdate?: string[] | undefined;
|
|
33
|
-
currentVersionResolver?: "registry" | "disk" | "git-tag" | "none" | undefined;
|
|
34
|
-
fallbackCurrentVersionResolver?: "disk" | undefined;
|
|
35
|
-
versionPrefix?: typeof nx_src_command_line_release_version.validReleaseVersionPrefixes[number] | undefined;
|
|
36
|
-
preserveLocalDependencyProtocols?: boolean | undefined;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
name?: string;
|
|
40
|
-
root: string;
|
|
41
|
-
sourceRoot?: string;
|
|
42
|
-
projectType?: _nx_devkit.ProjectType;
|
|
43
|
-
generators?: {
|
|
44
|
-
[collectionName: string]: {
|
|
45
|
-
[generatorName: string]: any;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
implicitDependencies?: string[];
|
|
49
|
-
namedInputs?: {
|
|
50
|
-
[inputName: string]: (string | nx_src_config_workspace_json_project_json.InputDefinition)[];
|
|
51
|
-
};
|
|
52
|
-
tags?: string[];
|
|
53
|
-
metadata?: nx_src_config_workspace_json_project_json.ProjectMetadata;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}))[];
|
|
11
|
+
type CloudflarePluginOptions = {};
|
|
12
|
+
declare const createNodesV2: CreateNodesV2<CloudflarePluginOptions>;
|
|
57
13
|
|
|
58
|
-
export {
|
|
14
|
+
export { type CloudflarePluginOptions, createNodesV2, name };
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4HXW4ZJYjs = require('./chunk-4HXW4ZJY.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkE3TZJX67js = require('./chunk-E3TZJX67.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
12
|
require('./chunk-I4P7DVDN.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-T2DEGTEZ.js');
|
|
14
14
|
require('./chunk-HIUZ6UL7.js');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,6 +25,9 @@ require('./chunk-PZ5CI56F.js');
|
|
|
25
25
|
require('./chunk-MCKGQKYU.js');
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _devkit = require('@nx/devkit');
|
|
28
31
|
var _fs = require('fs');
|
|
29
32
|
var _path = require('path');
|
|
30
33
|
var _nxjsonjs = require('nx/src/config/nx-json.js');
|
|
@@ -33,79 +36,98 @@ var _fileutils = require('nx/src/utils/fileutils');
|
|
|
33
36
|
|
|
34
37
|
var _packagejson = require('nx/src/utils/package-json');
|
|
35
38
|
var name = "storm-software/cloudflare";
|
|
36
|
-
var
|
|
39
|
+
var createNodesV2 = [
|
|
37
40
|
"{**/wrangler.toml}",
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
packageJson
|
|
46
|
-
);
|
|
47
|
-
const nxJson = _nxjsonjs.readNxJson.call(void 0, ctx.workspaceRoot);
|
|
48
|
-
const targets = _packagejson.readTargetsFromPackageJson.call(void 0,
|
|
49
|
-
packageJson,
|
|
50
|
-
nxJson
|
|
51
|
-
);
|
|
52
|
-
targets["serve"] = {
|
|
53
|
-
cache: false,
|
|
54
|
-
inputs: ["typescript", "^production"],
|
|
55
|
-
dependsOn: ["build"],
|
|
56
|
-
executor: "@storm-software/cloudflare-tools:serve",
|
|
57
|
-
options: {
|
|
58
|
-
port: 4500
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
targets["clean-package"] = {
|
|
62
|
-
cache: true,
|
|
63
|
-
dependsOn: ["build"],
|
|
64
|
-
inputs: ["typescript", "^production"],
|
|
65
|
-
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
66
|
-
executor: "@storm-software/workspace-tools:clean-package",
|
|
67
|
-
options: {
|
|
68
|
-
cleanReadMe: true,
|
|
69
|
-
cleanComments: true
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
targets["nx-release-publish"] = {
|
|
73
|
-
cache: false,
|
|
74
|
-
inputs: ["typescript", "^production"],
|
|
75
|
-
dependsOn: ["clean-package", "^nx-release-publish"],
|
|
76
|
-
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
77
|
-
options: {}
|
|
78
|
-
};
|
|
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", {
|
|
92
|
-
overwrite: true
|
|
93
|
-
});
|
|
94
|
-
return _optionalChain([project, 'optionalAccess', _2 => _2.name]) ? {
|
|
95
|
-
projects: {
|
|
96
|
-
[project.name]: {
|
|
97
|
-
...project,
|
|
98
|
-
targets,
|
|
99
|
-
release: {
|
|
100
|
-
..._optionalChain([project, 'optionalAccess', _3 => _3.release]),
|
|
101
|
-
version: {
|
|
102
|
-
..._optionalChain([project, 'optionalAccess', _4 => _4.release, 'optionalAccess', _5 => _5.version]),
|
|
103
|
-
generator: "@storm-software/workspace-tools:release-version"
|
|
104
|
-
}
|
|
41
|
+
async (configFiles, options = { includeApps: true }, context) => {
|
|
42
|
+
return await _devkit.createNodesFromFiles.call(void 0,
|
|
43
|
+
async (file, options2 = { includeApps: true }, context2) => {
|
|
44
|
+
try {
|
|
45
|
+
const packageJson = createPackageJson(file, context2.workspaceRoot);
|
|
46
|
+
if (!packageJson) {
|
|
47
|
+
return {};
|
|
105
48
|
}
|
|
49
|
+
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
50
|
+
file,
|
|
51
|
+
packageJson
|
|
52
|
+
);
|
|
53
|
+
const nxJson = _nxjsonjs.readNxJson.call(void 0, context2.workspaceRoot);
|
|
54
|
+
const targets = _packagejson.readTargetsFromPackageJson.call(void 0,
|
|
55
|
+
packageJson,
|
|
56
|
+
nxJson,
|
|
57
|
+
project.root,
|
|
58
|
+
context2.workspaceRoot
|
|
59
|
+
);
|
|
60
|
+
targets["serve"] = {
|
|
61
|
+
cache: false,
|
|
62
|
+
inputs: ["typescript", "^production"],
|
|
63
|
+
dependsOn: ["build"],
|
|
64
|
+
executor: "@storm-software/cloudflare-tools:serve",
|
|
65
|
+
options: {
|
|
66
|
+
port: 4500
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
targets["clean-package"] = {
|
|
70
|
+
cache: true,
|
|
71
|
+
dependsOn: ["build"],
|
|
72
|
+
inputs: ["typescript", "^production"],
|
|
73
|
+
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
74
|
+
executor: "@storm-software/workspace-tools:clean-package",
|
|
75
|
+
options: {
|
|
76
|
+
cleanReadMe: true,
|
|
77
|
+
cleanComments: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
targets["nx-release-publish"] = {
|
|
81
|
+
cache: false,
|
|
82
|
+
inputs: ["typescript", "^production"],
|
|
83
|
+
dependsOn: ["clean-package", "^nx-release-publish"],
|
|
84
|
+
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
85
|
+
options: {}
|
|
86
|
+
};
|
|
87
|
+
_chunk6XDOBG77js.addProjectTag.call(void 0,
|
|
88
|
+
project,
|
|
89
|
+
_chunk6XDOBG77js.ProjectTagConstants.ProjectType.TAG_ID,
|
|
90
|
+
project.projectType === "application" ? _chunk6XDOBG77js.ProjectTagConstants.ProjectType.APPLICATION : _chunk6XDOBG77js.ProjectTagConstants.ProjectType.LIBRARY,
|
|
91
|
+
{ overwrite: true }
|
|
92
|
+
);
|
|
93
|
+
_chunk6XDOBG77js.addProjectTag.call(void 0,
|
|
94
|
+
project,
|
|
95
|
+
_chunk6XDOBG77js.ProjectTagConstants.DistStyle.TAG_ID,
|
|
96
|
+
_chunk6XDOBG77js.ProjectTagConstants.DistStyle.CLEAN,
|
|
97
|
+
{ overwrite: true }
|
|
98
|
+
);
|
|
99
|
+
_chunk6XDOBG77js.addProjectTag.call(void 0,
|
|
100
|
+
project,
|
|
101
|
+
_chunk6XDOBG77js.ProjectTagConstants.Provider.TAG_ID,
|
|
102
|
+
"cloudflare",
|
|
103
|
+
{
|
|
104
|
+
overwrite: true
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
return _optionalChain([project, 'optionalAccess', _ => _.name]) ? {
|
|
108
|
+
projects: {
|
|
109
|
+
[project.name]: {
|
|
110
|
+
...project,
|
|
111
|
+
targets,
|
|
112
|
+
release: {
|
|
113
|
+
..._optionalChain([project, 'optionalAccess', _2 => _2.release]),
|
|
114
|
+
version: {
|
|
115
|
+
..._optionalChain([project, 'optionalAccess', _3 => _3.release, 'optionalAccess', _4 => _4.version]),
|
|
116
|
+
generator: "@storm-software/workspace-tools:release-version"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} : {};
|
|
122
|
+
} catch (e) {
|
|
123
|
+
console.error(e);
|
|
124
|
+
return {};
|
|
106
125
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
126
|
+
},
|
|
127
|
+
configFiles,
|
|
128
|
+
options,
|
|
129
|
+
context
|
|
130
|
+
);
|
|
109
131
|
}
|
|
110
132
|
];
|
|
111
133
|
function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJson) {
|
|
@@ -140,4 +162,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
140
162
|
|
|
141
163
|
|
|
142
164
|
|
|
143
|
-
exports.applicationGenerator =
|
|
165
|
+
exports.applicationGenerator = _chunk4HXW4ZJYjs.applicationGenerator; exports.applicationSchematic = _chunk4HXW4ZJYjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkRIUVF72Kjs.getInternalDependencies; exports.initGenerator = _chunkE3TZJX67js.initGenerator; exports.initSchematic = _chunkE3TZJX67js.initSchematic; exports.name = name; exports.r2UploadFile = _chunkRIUVF72Kjs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7QZXI5HN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SZONRMZR.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-EGZ3BGPS.mjs";
|
|
13
|
+
import "./chunk-WEQTU7QO.mjs";
|
|
14
14
|
import "./chunk-ISGKIYF5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
@@ -22,9 +22,12 @@ import {
|
|
|
22
22
|
} from "./chunk-L4WFYC7K.mjs";
|
|
23
23
|
import "./chunk-GPAI4NHQ.mjs";
|
|
24
24
|
import "./chunk-MV24QW26.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-2P2Y3PCF.mjs";
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
28
|
+
import {
|
|
29
|
+
createNodesFromFiles
|
|
30
|
+
} from "@nx/devkit";
|
|
28
31
|
import { existsSync } from "node:fs";
|
|
29
32
|
import { dirname, join } from "node:path";
|
|
30
33
|
import { readNxJson } from "nx/src/config/nx-json.js";
|
|
@@ -33,79 +36,98 @@ import {
|
|
|
33
36
|
readTargetsFromPackageJson
|
|
34
37
|
} from "nx/src/utils/package-json";
|
|
35
38
|
var name = "storm-software/cloudflare";
|
|
36
|
-
var
|
|
39
|
+
var createNodesV2 = [
|
|
37
40
|
"{**/wrangler.toml}",
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
packageJson
|
|
46
|
-
);
|
|
47
|
-
const nxJson = readNxJson(ctx.workspaceRoot);
|
|
48
|
-
const targets = readTargetsFromPackageJson(
|
|
49
|
-
packageJson,
|
|
50
|
-
nxJson
|
|
51
|
-
);
|
|
52
|
-
targets["serve"] = {
|
|
53
|
-
cache: false,
|
|
54
|
-
inputs: ["typescript", "^production"],
|
|
55
|
-
dependsOn: ["build"],
|
|
56
|
-
executor: "@storm-software/cloudflare-tools:serve",
|
|
57
|
-
options: {
|
|
58
|
-
port: 4500
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
targets["clean-package"] = {
|
|
62
|
-
cache: true,
|
|
63
|
-
dependsOn: ["build"],
|
|
64
|
-
inputs: ["typescript", "^production"],
|
|
65
|
-
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
66
|
-
executor: "@storm-software/workspace-tools:clean-package",
|
|
67
|
-
options: {
|
|
68
|
-
cleanReadMe: true,
|
|
69
|
-
cleanComments: true
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
targets["nx-release-publish"] = {
|
|
73
|
-
cache: false,
|
|
74
|
-
inputs: ["typescript", "^production"],
|
|
75
|
-
dependsOn: ["clean-package", "^nx-release-publish"],
|
|
76
|
-
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
77
|
-
options: {}
|
|
78
|
-
};
|
|
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
|
-
);
|
|
91
|
-
addProjectTag(project, ProjectTagConstants.Provider.TAG_ID, "cloudflare", {
|
|
92
|
-
overwrite: true
|
|
93
|
-
});
|
|
94
|
-
return project?.name ? {
|
|
95
|
-
projects: {
|
|
96
|
-
[project.name]: {
|
|
97
|
-
...project,
|
|
98
|
-
targets,
|
|
99
|
-
release: {
|
|
100
|
-
...project?.release,
|
|
101
|
-
version: {
|
|
102
|
-
...project?.release?.version,
|
|
103
|
-
generator: "@storm-software/workspace-tools:release-version"
|
|
104
|
-
}
|
|
41
|
+
async (configFiles, options = { includeApps: true }, context) => {
|
|
42
|
+
return await createNodesFromFiles(
|
|
43
|
+
async (file, options2 = { includeApps: true }, context2) => {
|
|
44
|
+
try {
|
|
45
|
+
const packageJson = createPackageJson(file, context2.workspaceRoot);
|
|
46
|
+
if (!packageJson) {
|
|
47
|
+
return {};
|
|
105
48
|
}
|
|
49
|
+
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
50
|
+
file,
|
|
51
|
+
packageJson
|
|
52
|
+
);
|
|
53
|
+
const nxJson = readNxJson(context2.workspaceRoot);
|
|
54
|
+
const targets = readTargetsFromPackageJson(
|
|
55
|
+
packageJson,
|
|
56
|
+
nxJson,
|
|
57
|
+
project.root,
|
|
58
|
+
context2.workspaceRoot
|
|
59
|
+
);
|
|
60
|
+
targets["serve"] = {
|
|
61
|
+
cache: false,
|
|
62
|
+
inputs: ["typescript", "^production"],
|
|
63
|
+
dependsOn: ["build"],
|
|
64
|
+
executor: "@storm-software/cloudflare-tools:serve",
|
|
65
|
+
options: {
|
|
66
|
+
port: 4500
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
targets["clean-package"] = {
|
|
70
|
+
cache: true,
|
|
71
|
+
dependsOn: ["build"],
|
|
72
|
+
inputs: ["typescript", "^production"],
|
|
73
|
+
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
74
|
+
executor: "@storm-software/workspace-tools:clean-package",
|
|
75
|
+
options: {
|
|
76
|
+
cleanReadMe: true,
|
|
77
|
+
cleanComments: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
targets["nx-release-publish"] = {
|
|
81
|
+
cache: false,
|
|
82
|
+
inputs: ["typescript", "^production"],
|
|
83
|
+
dependsOn: ["clean-package", "^nx-release-publish"],
|
|
84
|
+
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
85
|
+
options: {}
|
|
86
|
+
};
|
|
87
|
+
addProjectTag(
|
|
88
|
+
project,
|
|
89
|
+
ProjectTagConstants.ProjectType.TAG_ID,
|
|
90
|
+
project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY,
|
|
91
|
+
{ overwrite: true }
|
|
92
|
+
);
|
|
93
|
+
addProjectTag(
|
|
94
|
+
project,
|
|
95
|
+
ProjectTagConstants.DistStyle.TAG_ID,
|
|
96
|
+
ProjectTagConstants.DistStyle.CLEAN,
|
|
97
|
+
{ overwrite: true }
|
|
98
|
+
);
|
|
99
|
+
addProjectTag(
|
|
100
|
+
project,
|
|
101
|
+
ProjectTagConstants.Provider.TAG_ID,
|
|
102
|
+
"cloudflare",
|
|
103
|
+
{
|
|
104
|
+
overwrite: true
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
return project?.name ? {
|
|
108
|
+
projects: {
|
|
109
|
+
[project.name]: {
|
|
110
|
+
...project,
|
|
111
|
+
targets,
|
|
112
|
+
release: {
|
|
113
|
+
...project?.release,
|
|
114
|
+
version: {
|
|
115
|
+
...project?.release?.version,
|
|
116
|
+
generator: "@storm-software/workspace-tools:release-version"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} : {};
|
|
122
|
+
} catch (e) {
|
|
123
|
+
console.error(e);
|
|
124
|
+
return {};
|
|
106
125
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
126
|
+
},
|
|
127
|
+
configFiles,
|
|
128
|
+
options,
|
|
129
|
+
context
|
|
130
|
+
);
|
|
109
131
|
}
|
|
110
132
|
];
|
|
111
133
|
function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJson) {
|
|
@@ -134,7 +156,7 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
134
156
|
export {
|
|
135
157
|
applicationGenerator,
|
|
136
158
|
applicationSchematic,
|
|
137
|
-
|
|
159
|
+
createNodesV2,
|
|
138
160
|
getInternalDependencies,
|
|
139
161
|
initGenerator,
|
|
140
162
|
initSchematic,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunkI4P7DVDNjs = require('../../../chunk-I4P7DVDN.js');
|
|
4
|
-
require('../../../chunk-
|
|
4
|
+
require('../../../chunk-T2DEGTEZ.js');
|
|
5
5
|
require('../../../chunk-6XDOBG77.js');
|
|
6
6
|
require('../../../chunk-HBASMEU5.js');
|
|
7
7
|
require('../../../chunk-PZ5CI56F.js');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-EGZ3BGPS.mjs";
|
|
4
|
+
import "../../../chunk-WEQTU7QO.mjs";
|
|
5
5
|
import "../../../chunk-L4WFYC7K.mjs";
|
|
6
6
|
import "../../../chunk-GPAI4NHQ.mjs";
|
|
7
7
|
import "../../../chunk-MV24QW26.mjs";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-2P2Y3PCF.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -5,7 +5,7 @@ import "../../../chunk-FABNT5TZ.mjs";
|
|
|
5
5
|
import "../../../chunk-L4WFYC7K.mjs";
|
|
6
6
|
import "../../../chunk-GPAI4NHQ.mjs";
|
|
7
7
|
import "../../../chunk-MV24QW26.mjs";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-2P2Y3PCF.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkT2DEGTEZjs = require('../../../chunk-T2DEGTEZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk6XDOBG77js = require('../../../chunk-6XDOBG77.js');
|
|
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context, config) {
|
|
|
55
55
|
success: true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var executor_default =
|
|
58
|
+
var executor_default = _chunkT2DEGTEZjs.withRunExecutor.call(void 0,
|
|
59
59
|
"Cloudflare Serve executor",
|
|
60
60
|
serveExecutor,
|
|
61
61
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-WEQTU7QO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
6
|
} from "../../../chunk-L4WFYC7K.mjs";
|
|
@@ -8,7 +8,7 @@ import "../../../chunk-GPAI4NHQ.mjs";
|
|
|
8
8
|
import "../../../chunk-MV24QW26.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__require
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-2P2Y3PCF.mjs";
|
|
12
12
|
|
|
13
13
|
// src/executors/serve/executor.ts
|
|
14
14
|
import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkE3TZJX67js = require('../../../chunk-E3TZJX67.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkE3TZJX67js.generator_default; exports.initGenerator = _chunkE3TZJX67js.initGenerator; exports.initSchematic = _chunkE3TZJX67js.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-SZONRMZR.mjs";
|
|
6
|
+
import "../../../chunk-2P2Y3PCF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
|
9
9
|
initGenerator,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var _chunk4HXW4ZJYjs = require('../../../chunk-4HXW4ZJY.js');
|
|
6
|
+
require('../../../chunk-E3TZJX67.js');
|
|
7
7
|
require('../../../chunk-HBASMEU5.js');
|
|
8
8
|
require('../../../chunk-PZ5CI56F.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunk4HXW4ZJYjs.applicationGenerator; exports.applicationSchematic = _chunk4HXW4ZJYjs.applicationSchematic; exports.default = _chunk4HXW4ZJYjs.generator_default;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-7QZXI5HN.mjs";
|
|
6
|
+
import "../../../chunk-SZONRMZR.mjs";
|
|
7
7
|
import "../../../chunk-GPAI4NHQ.mjs";
|
|
8
8
|
import "../../../chunk-MV24QW26.mjs";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-2P2Y3PCF.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
|
12
12
|
applicationSchematic,
|
package/dist/src/utils/index.mjs
CHANGED
package/dist/tsup.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
"sullivanpj"
|
|
114
114
|
],
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"@nx/devkit": "
|
|
117
|
-
"@nx/js": "
|
|
118
|
-
"@nx/node": "
|
|
119
|
-
"@nx/web": "
|
|
116
|
+
"@nx/devkit": "21.0.0",
|
|
117
|
+
"@nx/js": "21.0.0",
|
|
118
|
+
"@nx/node": "21.0.0",
|
|
119
|
+
"@nx/web": "21.0.0",
|
|
120
120
|
"@storm-software/config": "1.113.5",
|
|
121
121
|
"@storm-software/config-tools": "1.163.5",
|
|
122
122
|
"@storm-software/workspace-tools": "1.267.0",
|
|
123
|
-
"nx": "
|
|
123
|
+
"nx": "21.0.0",
|
|
124
124
|
"tsup": "8.4.0",
|
|
125
125
|
"wrangler": ">=3.58.0"
|
|
126
126
|
},
|
|
@@ -134,14 +134,14 @@
|
|
|
134
134
|
},
|
|
135
135
|
"dependencies": { "@aws-sdk/client-s3": "3.47.0", "glob": "^11.0.1" },
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@nx/devkit": "
|
|
138
|
-
"@nx/node": "
|
|
139
|
-
"@nx/web": "
|
|
140
|
-
"@nx/webpack": "
|
|
141
|
-
"nx": "
|
|
137
|
+
"@nx/devkit": "21.0.0",
|
|
138
|
+
"@nx/node": "21.0.0",
|
|
139
|
+
"@nx/web": "21.0.0",
|
|
140
|
+
"@nx/webpack": "21.0.0",
|
|
141
|
+
"nx": "21.0.0",
|
|
142
142
|
"tsup": "8.4.0",
|
|
143
143
|
"untyped": "^1.5.2",
|
|
144
|
-
"wrangler": "^4.14.
|
|
144
|
+
"wrangler": "^4.14.3"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": { "access": "public" },
|
|
147
147
|
"executors": "./executors.json",
|