@storm-software/cloudflare-tools 0.32.0 → 0.33.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 +21 -0
- package/README.md +1 -1
- package/index.js +2 -1
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/r2-upload-publish/executor.js +20 -13
- package/src/generators/init/generator.js +1 -1
- package/src/generators/worker/generator.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -47172,6 +47172,7 @@ module.exports = __toCommonJS(executor_exports);
|
|
|
47172
47172
|
var import_client_s3 = __toESM(require_dist_cjs90());
|
|
47173
47173
|
var import_devkit = require("@nx/devkit");
|
|
47174
47174
|
var import_create_cli_options = require("@storm-software/workspace-tools/utils/create-cli-options");
|
|
47175
|
+
var import_package_helpers = require("@storm-software/workspace-tools/utils/package-helpers");
|
|
47175
47176
|
|
|
47176
47177
|
// node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/esm/index.js
|
|
47177
47178
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
@@ -53514,14 +53515,16 @@ async function runExecutor(options, context) {
|
|
|
53514
53515
|
try {
|
|
53515
53516
|
const workspaceRoot = findWorkspaceRoot();
|
|
53516
53517
|
const config = await loadStormConfig(workspaceRoot);
|
|
53517
|
-
const packageRoot = (0, import_devkit.joinPathFragments)(
|
|
53518
|
-
context.root,
|
|
53519
|
-
context.projectsConfigurations.projects[context.projectName]?.root
|
|
53520
|
-
) ?? workspaceRoot;
|
|
53521
53518
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
53522
53519
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
53523
|
-
const
|
|
53524
|
-
|
|
53520
|
+
const projectDetails = (0, import_package_helpers.getPackageInfo)(
|
|
53521
|
+
context.projectsConfigurations.projects[context.projectName]
|
|
53522
|
+
);
|
|
53523
|
+
if (!projectDetails?.content) {
|
|
53524
|
+
throw new Error(
|
|
53525
|
+
`Could not find the project details for ${context.projectName}`
|
|
53526
|
+
);
|
|
53527
|
+
}
|
|
53525
53528
|
const args = (0, import_create_cli_options.createCliOptions)({ ...options });
|
|
53526
53529
|
if (isDryRun) {
|
|
53527
53530
|
args.push("--dry-run");
|
|
@@ -53547,7 +53550,7 @@ async function runExecutor(options, context) {
|
|
|
53547
53550
|
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
|
|
53548
53551
|
}
|
|
53549
53552
|
});
|
|
53550
|
-
const version3 =
|
|
53553
|
+
const version3 = projectDetails.content?.version;
|
|
53551
53554
|
writeInfo(`Generated component version: ${version3}`);
|
|
53552
53555
|
const files = await glob((0, import_devkit.joinPathFragments)(sourceRoot, "**/*"), {
|
|
53553
53556
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
@@ -53564,7 +53567,7 @@ async function runExecutor(options, context) {
|
|
|
53564
53567
|
ret[dep.name] = "latest";
|
|
53565
53568
|
}
|
|
53566
53569
|
return ret;
|
|
53567
|
-
},
|
|
53570
|
+
}, projectDetails.content.dependencies ?? {});
|
|
53568
53571
|
const release = options.tag ?? (0, import_node_child_process.execSync)("npm config get tag").toString().trim();
|
|
53569
53572
|
writeInfo(`Clearing out existing items in ${projectPath}`);
|
|
53570
53573
|
if (!isDryRun) {
|
|
@@ -53599,18 +53602,22 @@ async function runExecutor(options, context) {
|
|
|
53599
53602
|
} else {
|
|
53600
53603
|
writeWarning("[Dry run]: skipping upload to the Cyclone Registry.");
|
|
53601
53604
|
}
|
|
53602
|
-
const
|
|
53605
|
+
const meta = {
|
|
53603
53606
|
name: context.projectName,
|
|
53604
53607
|
version: version3,
|
|
53605
53608
|
release,
|
|
53606
|
-
description:
|
|
53607
|
-
tags:
|
|
53609
|
+
description: projectDetails.content.description,
|
|
53610
|
+
tags: projectDetails.content.keywords,
|
|
53608
53611
|
dependencies,
|
|
53609
|
-
devDependencies:
|
|
53612
|
+
devDependencies: null,
|
|
53610
53613
|
internalDependencies: internalDependencies.filter(
|
|
53611
53614
|
(projectNode) => projectNode.data.tags && projectNode.data.tags.some((tag) => tag.toLowerCase() === "component")
|
|
53612
53615
|
).map((dep) => dep.name)
|
|
53613
|
-
}
|
|
53616
|
+
};
|
|
53617
|
+
if (projectDetails.type === "package.json") {
|
|
53618
|
+
meta.devDependencies = projectDetails.content.devDependencies;
|
|
53619
|
+
}
|
|
53620
|
+
const metaJson = JSON.stringify(meta);
|
|
53614
53621
|
writeInfo(`Generating meta.json file:
|
|
53615
53622
|
${metaJson}`);
|
|
53616
53623
|
await r2UploadFile(
|
|
@@ -427588,7 +427588,7 @@ var require_package3 = __commonJS({
|
|
|
427588
427588
|
"packages/cloudflare-tools/package.json"(exports2, module2) {
|
|
427589
427589
|
module2.exports = {
|
|
427590
427590
|
name: "@storm-software/cloudflare-tools",
|
|
427591
|
-
version: "0.
|
|
427591
|
+
version: "0.33.0",
|
|
427592
427592
|
type: "commonjs",
|
|
427593
427593
|
description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
427594
427594
|
repository: {
|
|
@@ -663833,7 +663833,7 @@ var require_package14 = __commonJS({
|
|
|
663833
663833
|
"packages/cloudflare-tools/package.json"(exports2, module2) {
|
|
663834
663834
|
module2.exports = {
|
|
663835
663835
|
name: "@storm-software/cloudflare-tools",
|
|
663836
|
-
version: "0.
|
|
663836
|
+
version: "0.33.0",
|
|
663837
663837
|
type: "commonjs",
|
|
663838
663838
|
description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
663839
663839
|
repository: {
|