@storm-software/cloudflare-tools 0.49.1 → 0.50.2
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 +18 -0
- package/README.md +1 -1
- package/dist/{chunk-ZY7TM2TA.mjs → chunk-4AK2RSE7.mjs} +2 -2
- package/dist/{chunk-OARYMVO7.mjs → chunk-4AMWR76J.mjs} +4 -4
- package/dist/{chunk-CR22PACK.mjs → chunk-6RM4MALM.mjs} +1 -1
- package/dist/{chunk-NPJPHEFP.js → chunk-7VU6EPB4.js} +1 -1
- package/dist/{chunk-VPT6GF3S.mjs → chunk-HPCGVJ7R.mjs} +1 -1
- package/dist/{chunk-YE4FHRXJ.js → chunk-IUVV2SM4.js} +4 -4
- package/dist/{chunk-W5J5EWQN.js → chunk-MH545KJZ.js} +4 -4
- package/dist/{chunk-NKCR3FSU.js → chunk-SUASGTND.js} +2 -2
- package/dist/{chunk-ITLKTOIK.mjs → chunk-T6VDL633.mjs} +132 -143
- package/dist/{chunk-WGOT27OY.js → chunk-ULTJPRDX.js} +141 -152
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +4 -4
- package/dist/generators.js +4 -4
- package/dist/generators.mjs +3 -3
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/src/executors/cloudflare-publish/executor.js +2 -2
- package/dist/src/executors/cloudflare-publish/executor.mjs +2 -2
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
- package/dist/src/executors/serve/executor.js +3 -3
- 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 +1 -1
- package/dist/src/generators/worker/generator.js +4 -4
- package/dist/src/generators/worker/generator.mjs +3 -3
- package/package.json +150 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 0.50.2 (2025-01-20)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **untyped:** Resovle bundling issue with externals ([ff044ddf](https://github.com/storm-software/storm-ops/commit/ff044ddf))
|
|
6
|
+
|
|
7
|
+
## 0.50.1 (2025-01-20)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **unbuild:** Update package to bundle the `unbuild` package for distribution ([d304c28d](https://github.com/storm-software/storm-ops/commit/d304c28d))
|
|
12
|
+
|
|
13
|
+
## 0.50.0 (2025-01-20)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- **unbuild:** Update build process to use cached project graph ([610c94aa](https://github.com/storm-software/storm-ops/commit/610c94aa))
|
|
18
|
+
|
|
1
19
|
## 0.49.1 (2025-01-20)
|
|
2
20
|
|
|
3
21
|
### Bug Fixes
|
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 -->
|
|
@@ -27,26 +27,26 @@ import { loadConfig } from "c12";
|
|
|
27
27
|
import defu from "defu";
|
|
28
28
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
29
29
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
30
|
-
let config = loadConfig({
|
|
30
|
+
let config = await loadConfig({
|
|
31
31
|
cwd: workspacePath,
|
|
32
32
|
packageJson: true,
|
|
33
33
|
name: fileName,
|
|
34
34
|
envName: fileName?.toUpperCase(),
|
|
35
35
|
jitiOptions: {
|
|
36
36
|
debug: false,
|
|
37
|
-
|
|
37
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
38
38
|
},
|
|
39
39
|
...options
|
|
40
40
|
});
|
|
41
41
|
if (!config || Object.keys(config).length === 0) {
|
|
42
|
-
config = loadConfig({
|
|
42
|
+
config = await loadConfig({
|
|
43
43
|
cwd: workspacePath,
|
|
44
44
|
packageJson: true,
|
|
45
45
|
name: fileName,
|
|
46
46
|
envName: fileName?.toUpperCase(),
|
|
47
47
|
jitiOptions: {
|
|
48
48
|
debug: false,
|
|
49
|
-
|
|
49
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
50
50
|
},
|
|
51
51
|
configFile: fileName,
|
|
52
52
|
...options
|
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.50.2",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.50.2",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -27,26 +27,26 @@ var _c12 = require('c12');
|
|
|
27
27
|
|
|
28
28
|
var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
29
29
|
const workspacePath = filePath || _chunkRCE3CC76js.findWorkspaceRoot.call(void 0, filePath);
|
|
30
|
-
let config = _c12.loadConfig.call(void 0, {
|
|
30
|
+
let config = await _c12.loadConfig.call(void 0, {
|
|
31
31
|
cwd: workspacePath,
|
|
32
32
|
packageJson: true,
|
|
33
33
|
name: fileName,
|
|
34
34
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
35
35
|
jitiOptions: {
|
|
36
36
|
debug: false,
|
|
37
|
-
|
|
37
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkRCE3CC76js.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
38
38
|
},
|
|
39
39
|
...options
|
|
40
40
|
});
|
|
41
41
|
if (!config || Object.keys(config).length === 0) {
|
|
42
|
-
config = _c12.loadConfig.call(void 0, {
|
|
42
|
+
config = await _c12.loadConfig.call(void 0, {
|
|
43
43
|
cwd: workspacePath,
|
|
44
44
|
packageJson: true,
|
|
45
45
|
name: fileName,
|
|
46
46
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
47
47
|
jitiOptions: {
|
|
48
48
|
debug: false,
|
|
49
|
-
|
|
49
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkRCE3CC76js.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
50
50
|
},
|
|
51
51
|
configFile: fileName,
|
|
52
52
|
...options
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunk7VU6EPB4js = require('./chunk-7VU6EPB4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIUVV2SM4js = require('./chunk-IUVV2SM4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -47,12 +47,12 @@ async function applicationGenerator(tree, schema) {
|
|
|
47
47
|
const workspaceRoot = _chunkRCE3CC76js.findWorkspaceRoot.call(void 0, );
|
|
48
48
|
_chunkRCE3CC76js.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
|
|
49
49
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkIUVV2SM4js.loadStormConfig.call(void 0, workspaceRoot);
|
|
51
51
|
_chunkRCE3CC76js.writeTrace.call(void 0, `Loaded Storm config into env:
|
|
52
52
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
|
|
53
53
|
const options = await normalizeOptions(tree, schema, config);
|
|
54
54
|
const tasks = [];
|
|
55
|
-
tasks.push(await
|
|
55
|
+
tasks.push(await _chunk7VU6EPB4js.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -8,7 +8,7 @@ var _chunkJCB2DTP6js = require('./chunk-JCB2DTP6.js');
|
|
|
8
8
|
var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkIUVV2SM4js = require('./chunk-IUVV2SM4.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -37,7 +37,7 @@ async function runExecutor(options, context) {
|
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
39
|
const workspaceRoot = _chunkRCE3CC76js.findWorkspaceRoot.call(void 0, );
|
|
40
|
-
const config = await
|
|
40
|
+
const config = await _chunkIUVV2SM4js.loadStormConfig.call(void 0, workspaceRoot);
|
|
41
41
|
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
42
42
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
43
43
|
const projectDetails = _chunkVTHBMY4Bjs.getPackageInfo.call(void 0, context.projectsConfigurations.projects[context.projectName]);
|