@storm-software/cloudflare-tools 0.62.7 → 0.62.8
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 +6 -0
- package/README.md +1 -1
- package/dist/{chunk-RIUVF72K.js → chunk-2HJQOPBD.js} +3 -3
- package/dist/{chunk-JZJDF2HT.mjs → chunk-3TFLSE7F.mjs} +3 -3
- package/dist/{chunk-2SPHXGUN.mjs → chunk-5M3ADTI2.mjs} +3 -3
- package/dist/{chunk-DPAEOWHQ.mjs → chunk-73HZYEA4.mjs} +1 -1
- package/dist/{chunk-GPAI4NHQ.mjs → chunk-7H2K6PT4.mjs} +12 -5
- package/dist/{chunk-FL2QPQC4.mjs → chunk-AP3T36HW.mjs} +3 -3
- package/dist/{chunk-FF4AKPZG.js → chunk-AWHPIG26.js} +115 -115
- package/dist/{chunk-PNHYOFJH.js → chunk-CQHN27WT.js} +12 -12
- package/dist/{chunk-P3LN6TP3.js → chunk-DUKBFCWK.js} +2 -2
- package/dist/{chunk-MV24QW26.mjs → chunk-GOL5LHR6.mjs} +52 -15
- package/dist/{chunk-FABNT5TZ.mjs → chunk-JHXH6ZN3.mjs} +1 -1
- package/dist/{chunk-IXU6D3AC.mjs → chunk-LM76YNUF.mjs} +4 -4
- package/dist/{chunk-HBASMEU5.js → chunk-OL65RB72.js} +50 -43
- package/dist/{chunk-FUSFC5AM.js → chunk-Q6WFFOSW.js} +16 -16
- package/dist/{chunk-VPZXQH7S.mjs → chunk-SBZ7AXJK.mjs} +1 -1
- package/dist/{chunk-PZ5CI56F.js → chunk-SQUJ3SXL.js} +55 -18
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +5 -5
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +5 -5
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.62.7](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.62.7) (2025-05-13)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
|
|
5
11
|
## [0.62.6](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.62.6) (2025-05-09)
|
|
6
12
|
|
|
7
13
|
### 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 -->
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSQUJ3SXLjs = require('./chunk-SQUJ3SXL.js');
|
|
5
5
|
|
|
6
6
|
// src/utils/r2-bucket-helpers.ts
|
|
7
7
|
var _crypto = require('crypto');
|
|
8
8
|
var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
|
|
9
9
|
const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
|
|
10
10
|
const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
|
|
11
|
-
|
|
11
|
+
_chunkSQUJ3SXLjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
|
|
12
12
|
if (!isDryRun) {
|
|
13
13
|
await client.putObject({
|
|
14
14
|
Bucket: bucketName,
|
|
@@ -21,7 +21,7 @@ var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fi
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
} else {
|
|
24
|
-
|
|
24
|
+
_chunkSQUJ3SXLjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var getInternalDependencies = (projectName, graph) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-73HZYEA4.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.62.
|
|
10
|
+
version: "0.62.7",
|
|
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.
|
|
178
|
+
wrangler: "^4.15.2"
|
|
179
179
|
},
|
|
180
180
|
publishConfig: {
|
|
181
181
|
access: "public"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JHXH6ZN3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-RH2IXKSC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7H2K6PT4.mjs";
|
|
12
12
|
import {
|
|
13
13
|
findWorkspaceRoot,
|
|
14
14
|
writeDebug,
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeWarning
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GOL5LHR6.mjs";
|
|
19
19
|
|
|
20
20
|
// src/executors/r2-upload-publish/executor.ts
|
|
21
21
|
import { S3 } from "@aws-sdk/client-s3";
|
|
@@ -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=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__76973d065e981837fa328157c7e0ad17/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);
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
STORM_DEFAULT_DOCS,
|
|
5
5
|
STORM_DEFAULT_HOMEPAGE,
|
|
6
6
|
STORM_DEFAULT_LICENSING,
|
|
7
|
+
applyDefaultConfig,
|
|
7
8
|
correctPaths,
|
|
8
9
|
findWorkspaceRoot,
|
|
9
10
|
formatLogMessage,
|
|
10
|
-
getDefaultConfig,
|
|
11
11
|
getLogLevel,
|
|
12
12
|
getLogLevelLabel,
|
|
13
|
+
getPackageJsonConfig,
|
|
13
14
|
joinPaths,
|
|
14
15
|
stormWorkspaceConfigSchema,
|
|
15
16
|
writeTrace,
|
|
16
17
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GOL5LHR6.mjs";
|
|
18
19
|
|
|
19
20
|
// ../config-tools/src/create-storm-config.ts
|
|
20
21
|
import defu2 from "defu";
|
|
@@ -145,6 +146,7 @@ var getConfigEnv = () => {
|
|
|
145
146
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
146
147
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
147
148
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
149
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
148
150
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
149
151
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
150
152
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -363,6 +365,9 @@ var setConfigEnv = (config) => {
|
|
|
363
365
|
if (config.contact) {
|
|
364
366
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
365
367
|
}
|
|
368
|
+
if (config.support) {
|
|
369
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
370
|
+
}
|
|
366
371
|
if (config.timezone) {
|
|
367
372
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
368
373
|
process.env.TZ = config.timezone;
|
|
@@ -612,9 +617,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
612
617
|
return void 0;
|
|
613
618
|
}
|
|
614
619
|
}
|
|
615
|
-
const defaultConfig = await
|
|
616
|
-
result =
|
|
617
|
-
|
|
620
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
621
|
+
result = applyDefaultConfig(
|
|
622
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
623
|
+
defu2(configEnv, configFile, defaultConfig)
|
|
624
|
+
)
|
|
618
625
|
);
|
|
619
626
|
result.workspaceRoot ??= _workspaceRoot;
|
|
620
627
|
} else {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getWorkspaceConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7H2K6PT4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
findWorkspaceRoot,
|
|
11
11
|
formatLogMessage,
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
writeSuccess,
|
|
20
20
|
writeTrace,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GOL5LHR6.mjs";
|
|
23
23
|
import {
|
|
24
24
|
__dirname,
|
|
25
25
|
__require
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-73HZYEA4.mjs";
|
|
27
27
|
|
|
28
28
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
29
29
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|