@storm-software/cloudflare-tools 0.71.37 → 0.71.39
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 +15 -0
- package/dist/{chunk-WRTJQVDN.js → chunk-4UDXVHCG.js} +18 -18
- package/dist/{chunk-RUZIID5D.js → chunk-7YSJQ3QY.js} +4 -4
- package/dist/{chunk-2WG2QCJL.mjs → chunk-E3ASASDB.mjs} +3 -3
- package/dist/{chunk-YBP3FYOW.js → chunk-EHGAIWWE.js} +12 -12
- package/dist/{chunk-TMS3UPJ5.js → chunk-I5SWGAWE.js} +5 -5
- package/dist/{chunk-H7RE75NB.mjs → chunk-KRWY2PQY.mjs} +4 -4
- package/dist/{chunk-ULPCX6TC.mjs → chunk-LCOEW472.mjs} +2 -2
- package/dist/{chunk-KPNOOEOX.mjs → chunk-MA3DKCNU.mjs} +3 -3
- package/dist/{chunk-OJTNJ73Z.mjs → chunk-Q5YIARCL.mjs} +5 -5
- package/dist/{chunk-3X7BL5DM.mjs → chunk-QR2JEXGR.mjs} +1 -1
- package/dist/{chunk-YOQ5PYLY.js → chunk-SBZF6GML.js} +165 -165
- package/dist/{chunk-I4GOWUAO.mjs → chunk-SNMJDKDN.mjs} +1 -1
- package/dist/{chunk-OGBWI4VY.js → chunk-UZODNPP7.js} +34 -34
- package/dist/{chunk-TTK2XCGF.js → chunk-VXBGUJBD.js} +5 -5
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- 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 +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.38](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.38) (01/14/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **workspace-tools** to **v1.294.23**
|
|
10
|
+
- Updated **config-tools** to **v1.188.77**
|
|
11
|
+
|
|
12
|
+
## [0.71.37](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.37) (01/14/2026)
|
|
13
|
+
|
|
14
|
+
### Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated **workspace-tools** to **v1.294.22**
|
|
17
|
+
- Updated **config-tools** to **v1.188.76**
|
|
18
|
+
- Updated **config** to **v1.135.0**
|
|
19
|
+
|
|
5
20
|
## [0.71.36](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.36) (12/30/2025)
|
|
6
21
|
|
|
7
22
|
### Miscellaneous
|
|
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkI5SWGAWEjs = require('./chunk-I5SWGAWE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkUZODNPP7js = require('./chunk-UZODNPP7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _chunkOGBWI4VYjs = require('./chunk-OGBWI4VY.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkVXBGUJBDjs = require('./chunk-VXBGUJBD.js');
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
|
|
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
|
|
|
53
53
|
throw new Error("The executor requires projectsConfigurations.");
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
|
-
const workspaceRoot =
|
|
57
|
-
const config = await
|
|
56
|
+
const workspaceRoot = _chunkUZODNPP7js.findWorkspaceRoot.call(void 0, );
|
|
57
|
+
const config = await _chunkUZODNPP7js.getConfig.call(void 0, workspaceRoot);
|
|
58
58
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
|
|
59
59
|
const projectDetails = _chunkN7FW365Qjs.getPackageInfo.call(void 0,
|
|
60
60
|
context.projectsConfigurations.projects[context.projectName]
|
|
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
|
|
|
92
92
|
"The executor failed because the project graph is not available. Please run the build command again."
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0,
|
|
96
96
|
`Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
|
|
97
97
|
);
|
|
98
98
|
const client = new (0, _clients3.S3Client)({
|
|
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
|
|
|
108
108
|
});
|
|
109
109
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
110
110
|
if (version) {
|
|
111
|
-
|
|
111
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0, `Starting upload version ${version}`);
|
|
112
112
|
}
|
|
113
113
|
const basePath = options.path;
|
|
114
|
-
const files = await _glob.glob.call(void 0,
|
|
114
|
+
const files = await _glob.glob.call(void 0, _chunkVXBGUJBDjs.joinPaths.call(void 0, basePath, "**/*"), {
|
|
115
115
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
116
116
|
});
|
|
117
|
-
const internalDependencies = await
|
|
117
|
+
const internalDependencies = await _chunkI5SWGAWEjs.getInternalDependencies.call(void 0,
|
|
118
118
|
context.projectName,
|
|
119
119
|
projectGraph
|
|
120
120
|
);
|
|
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
|
|
|
128
128
|
}, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
|
|
129
129
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
130
130
|
if (options.clean === true) {
|
|
131
|
-
|
|
131
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
|
|
132
132
|
if (!isDryRun) {
|
|
133
133
|
const response = await client.send(
|
|
134
134
|
new (0, _clients3.ListObjectsCommand)({
|
|
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
|
|
|
137
137
|
})
|
|
138
138
|
);
|
|
139
139
|
if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
|
|
140
|
-
|
|
140
|
+
_chunkVXBGUJBDjs.writeTrace.call(void 0,
|
|
141
141
|
`Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
142
142
|
);
|
|
143
143
|
await client.send(
|
|
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
|
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
} else {
|
|
155
|
-
|
|
155
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0,
|
|
156
156
|
`No existing items to delete in the R2 bucket path ${bucketPath}`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
} else {
|
|
160
|
-
|
|
160
|
+
_chunkVXBGUJBDjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
if (options.writeMetaJson === true) {
|
|
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
178
178
|
if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
|
|
179
179
|
meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
|
|
180
180
|
}
|
|
181
|
-
await
|
|
181
|
+
await _chunkI5SWGAWEjs.uploadFile.call(void 0,
|
|
182
182
|
client,
|
|
183
183
|
bucketId,
|
|
184
184
|
bucketPath,
|
|
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
|
|
|
194
194
|
if (_optionalChain([_fs.statSync.call(void 0, file, {
|
|
195
195
|
throwIfNoEntry: false
|
|
196
196
|
}), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
|
|
197
|
-
const name =
|
|
197
|
+
const name = _chunkVXBGUJBDjs.correctPaths.call(void 0, file).replace(_chunkVXBGUJBDjs.correctPaths.call(void 0, basePath), "");
|
|
198
198
|
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
199
|
-
await
|
|
199
|
+
await _chunkI5SWGAWEjs.uploadFile.call(void 0,
|
|
200
200
|
client,
|
|
201
201
|
bucketId,
|
|
202
202
|
bucketPath,
|
|
203
203
|
name,
|
|
204
204
|
version,
|
|
205
|
-
await _promises.readFile.call(void 0, file,
|
|
205
|
+
await _promises.readFile.call(void 0, file, _chunkI5SWGAWEjs.getEncoding.call(void 0, type)),
|
|
206
206
|
type,
|
|
207
207
|
isDryRun
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
|
-
|
|
212
|
+
_chunkVXBGUJBDjs.writeSuccess.call(void 0,
|
|
213
213
|
`Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
|
|
214
214
|
config
|
|
215
215
|
);
|
|
@@ -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.71.
|
|
10
|
+
version: "0.71.38",
|
|
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",
|
|
@@ -136,9 +136,9 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
136
136
|
"@nx/js": "catalog:",
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
|
-
"@storm-software/config": "1.
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
139
|
+
"@storm-software/config": "1.135.0",
|
|
140
|
+
"@storm-software/config-tools": "1.188.77",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.23",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KRWY2PQY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findWorkspaceRoot,
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNMJDKDN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q5YIARCL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
18
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk7YSJQ3QYjs = require('./chunk-7YSJQ3QY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUZODNPP7js = require('./chunk-UZODNPP7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ var _chunkOGBWI4VYjs = require('./chunk-OGBWI4VY.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkVXBGUJBDjs = require('./chunk-VXBGUJBD.js');
|
|
16
16
|
|
|
17
17
|
// src/generators/worker/generator.ts
|
|
18
18
|
|
|
@@ -45,20 +45,20 @@ var vitestScript = `"test": "vitest run"`;
|
|
|
45
45
|
|
|
46
46
|
// src/generators/worker/generator.ts
|
|
47
47
|
async function applicationGenerator(tree, schema) {
|
|
48
|
-
const stopwatch =
|
|
48
|
+
const stopwatch = _chunkVXBGUJBDjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
49
49
|
let config;
|
|
50
50
|
try {
|
|
51
|
-
|
|
51
|
+
_chunkVXBGUJBDjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
52
52
|
|
|
53
53
|
`, config);
|
|
54
|
-
const workspaceRoot =
|
|
55
|
-
|
|
54
|
+
const workspaceRoot = _chunkUZODNPP7js.findWorkspaceRoot.call(void 0, );
|
|
55
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0,
|
|
56
56
|
`Loading the Storm Config from environment variables and storm.json file...
|
|
57
57
|
- workspaceRoot: ${workspaceRoot}`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
config = await
|
|
61
|
-
|
|
60
|
+
config = await _chunkUZODNPP7js.getConfig.call(void 0, workspaceRoot);
|
|
61
|
+
_chunkVXBGUJBDjs.writeTrace.call(void 0,
|
|
62
62
|
`Loaded Storm config into env:
|
|
63
63
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
64
64
|
config
|
|
@@ -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 _chunk7YSJQ3QYjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -134,11 +134,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
134
134
|
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
135
135
|
} catch (error) {
|
|
136
136
|
return () => {
|
|
137
|
-
|
|
137
|
+
_chunkVXBGUJBDjs.writeFatal.call(void 0,
|
|
138
138
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
139
139
|
config
|
|
140
140
|
);
|
|
141
|
-
|
|
141
|
+
_chunkVXBGUJBDjs.writeError.call(void 0,
|
|
142
142
|
`An exception was thrown in the generator's process
|
|
143
143
|
- Details: ${error.message}
|
|
144
144
|
- Stacktrace: ${error.stack}`,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVXBGUJBDjs = require('./chunk-VXBGUJBD.js');
|
|
7
7
|
|
|
8
8
|
// src/utils/r2-bucket-helpers.ts
|
|
9
9
|
var _libstorage = require('@aws-sdk/lib-storage');
|
|
10
10
|
var _crypto = require('crypto');
|
|
11
11
|
var _prettybytes = require('pretty-bytes'); var _prettybytes2 = _interopRequireDefault(_prettybytes);
|
|
12
12
|
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
13
|
-
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName :
|
|
14
|
-
|
|
13
|
+
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName : _chunkVXBGUJBDjs.joinPaths.call(void 0, bucketPath.trim(), fileName)), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/^\/+/g, "")]) || "";
|
|
14
|
+
_chunkVXBGUJBDjs.writeDebug.call(void 0,
|
|
15
15
|
`Uploading ${key} (content-type: ${contentType}, size: ${_prettybytes2.default.call(void 0,
|
|
16
16
|
Buffer.byteLength(fileContent, getEncoding(contentType))
|
|
17
17
|
)}) to the ${bucketName} R2 bucket`
|
|
@@ -33,10 +33,10 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
|
|
|
33
33
|
});
|
|
34
34
|
await upload.done();
|
|
35
35
|
} else {
|
|
36
|
-
|
|
36
|
+
_chunkVXBGUJBDjs.writeWarning.call(void 0, "[Dry run]: Skipping upload to the R2 bucket.");
|
|
37
37
|
}
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
39
|
+
_chunkVXBGUJBDjs.writeError.call(void 0, `Failed to upload ${key} to the ${bucketName} R2 bucket.`);
|
|
40
40
|
throw error;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.38",
|
|
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",
|
|
@@ -136,9 +136,9 @@ var require_package = __commonJS({
|
|
|
136
136
|
"@nx/js": "catalog:",
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
|
-
"@storm-software/config": "1.
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
139
|
+
"@storm-software/config": "1.135.0",
|
|
140
|
+
"@storm-software/config-tools": "1.188.77",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.23",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getWorkspaceConfig,
|
|
9
9
|
schemaRegistry,
|
|
10
10
|
workspaceConfigSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SNMJDKDN.mjs";
|
|
12
12
|
import {
|
|
13
13
|
correctPaths,
|
|
14
14
|
formatLogMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Q5YIARCL.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__dirname
|
|
29
29
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getEncoding,
|
|
6
6
|
getInternalDependencies,
|
|
7
7
|
uploadFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QR2JEXGR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createCliOptions,
|
|
11
11
|
getPackageInfo
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot,
|
|
15
15
|
getConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SNMJDKDN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
correctPaths,
|
|
19
19
|
joinPaths,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeTrace,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-Q5YIARCL.mjs";
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
import {
|
|
@@ -111,12 +111,12 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u2620", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
116
|
+
[LogLevelLabel.INFO]: useIcon("\u{1F6C8}", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
118
118
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
119
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
119
|
+
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
120
120
|
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
121
121
|
};
|
|
122
122
|
|
|
@@ -233,7 +233,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
233
233
|
return (message) => {
|
|
234
234
|
console.debug(
|
|
235
235
|
`
|
|
236
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.
|
|
236
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
237
237
|
`
|
|
238
238
|
);
|
|
239
239
|
};
|
|
@@ -242,7 +242,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
242
242
|
return (message) => {
|
|
243
243
|
console.debug(
|
|
244
244
|
`
|
|
245
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
245
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
246
246
|
`
|
|
247
247
|
);
|
|
248
248
|
};
|