@storm-software/cloudflare-tools 0.20.0 → 0.20.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 +14 -0
- package/README.md +1 -1
- package/index.js +18 -41
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/cloudflare-publish/executor.js +17 -40
- package/src/executors/serve/executor.js +17 -40
- 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.20.
|
|
3
|
+
"version": "0.20.2",
|
|
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": {
|
|
@@ -617025,24 +617025,15 @@ var executor_default3 = withRunExecutor(
|
|
|
617025
617025
|
|
|
617026
617026
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
617027
617027
|
var import_build_tools = require("@storm-software/build-tools");
|
|
617028
|
-
var import_build_tools2 = require("@storm-software/build-tools");
|
|
617029
617028
|
async function tsupExecutorFn(options, context, config) {
|
|
617030
|
-
const {
|
|
617029
|
+
const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
617031
617030
|
writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
|
|
617032
|
-
writeDebug2(
|
|
617033
|
-
`\u2699\uFE0F Executor options:
|
|
617034
|
-
${Object.keys(options).map(
|
|
617035
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
617036
|
-
).join("\n")}
|
|
617037
|
-
`,
|
|
617038
|
-
config
|
|
617039
|
-
);
|
|
617040
617031
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
617041
617032
|
throw new Error(
|
|
617042
617033
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
617043
617034
|
);
|
|
617044
617035
|
}
|
|
617045
|
-
await (0,
|
|
617036
|
+
await (0, import_build_tools.build)(config, {
|
|
617046
617037
|
...options,
|
|
617047
617038
|
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
617048
617039
|
projectName: context.projectName,
|
|
@@ -617063,29 +617054,15 @@ var executor_default4 = withRunExecutor(
|
|
|
617063
617054
|
}
|
|
617064
617055
|
}
|
|
617065
617056
|
);
|
|
617066
|
-
var _isPrimitive = (value2) => {
|
|
617067
|
-
try {
|
|
617068
|
-
return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
|
|
617069
|
-
} catch (e2) {
|
|
617070
|
-
return false;
|
|
617071
|
-
}
|
|
617072
|
-
};
|
|
617073
|
-
var _isFunction3 = (value2) => {
|
|
617074
|
-
try {
|
|
617075
|
-
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
617076
|
-
} catch (e2) {
|
|
617077
|
-
return false;
|
|
617078
|
-
}
|
|
617079
|
-
};
|
|
617080
617057
|
|
|
617081
617058
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
617082
|
-
var
|
|
617059
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
617083
617060
|
var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
617084
617061
|
return tsupExecutorFn(
|
|
617085
617062
|
{
|
|
617086
617063
|
...options,
|
|
617087
617064
|
platform: "browser",
|
|
617088
|
-
banner: (0,
|
|
617065
|
+
banner: (0, import_build_tools2.getFileBanner)(
|
|
617089
617066
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Browser Platforms)"
|
|
617090
617067
|
),
|
|
617091
617068
|
define: {
|
|
@@ -617094,7 +617071,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
617094
617071
|
env: {
|
|
617095
617072
|
...process.env
|
|
617096
617073
|
},
|
|
617097
|
-
getConfig:
|
|
617074
|
+
getConfig: import_build_tools2.browserConfig
|
|
617098
617075
|
},
|
|
617099
617076
|
context,
|
|
617100
617077
|
config
|
|
@@ -617108,12 +617085,12 @@ var executor_default5 = withRunExecutor(
|
|
|
617108
617085
|
hooks: {
|
|
617109
617086
|
applyDefaultOptions: (options) => {
|
|
617110
617087
|
return {
|
|
617111
|
-
...(0,
|
|
617088
|
+
...(0, import_build_tools2.applyDefaultOptions)({
|
|
617112
617089
|
plugins: [],
|
|
617113
617090
|
...options,
|
|
617114
617091
|
platform: "browser"
|
|
617115
617092
|
}),
|
|
617116
|
-
getConfig:
|
|
617093
|
+
getConfig: import_build_tools2.browserConfig
|
|
617117
617094
|
};
|
|
617118
617095
|
}
|
|
617119
617096
|
}
|
|
@@ -617121,13 +617098,13 @@ var executor_default5 = withRunExecutor(
|
|
|
617121
617098
|
);
|
|
617122
617099
|
|
|
617123
617100
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
617124
|
-
var
|
|
617101
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
617125
617102
|
var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
617126
617103
|
return tsupExecutorFn(
|
|
617127
617104
|
{
|
|
617128
617105
|
...options,
|
|
617129
617106
|
platform: "neutral",
|
|
617130
|
-
banner: (0,
|
|
617107
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
617131
617108
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map(
|
|
617132
617109
|
(s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : ""
|
|
617133
617110
|
).join(" ") : "TypeScript (Neutral Platform)"
|
|
@@ -617139,7 +617116,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
617139
617116
|
env: {
|
|
617140
617117
|
...process.env
|
|
617141
617118
|
},
|
|
617142
|
-
getConfig:
|
|
617119
|
+
getConfig: import_build_tools3.neutralConfig
|
|
617143
617120
|
},
|
|
617144
617121
|
context,
|
|
617145
617122
|
config
|
|
@@ -617153,12 +617130,12 @@ var executor_default6 = withRunExecutor(
|
|
|
617153
617130
|
hooks: {
|
|
617154
617131
|
applyDefaultOptions: (options) => {
|
|
617155
617132
|
return {
|
|
617156
|
-
...(0,
|
|
617133
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
617157
617134
|
plugins: [],
|
|
617158
617135
|
...options,
|
|
617159
617136
|
platform: "neutral"
|
|
617160
617137
|
}),
|
|
617161
|
-
getConfig:
|
|
617138
|
+
getConfig: import_build_tools3.neutralConfig
|
|
617162
617139
|
};
|
|
617163
617140
|
}
|
|
617164
617141
|
}
|
|
@@ -617166,13 +617143,13 @@ var executor_default6 = withRunExecutor(
|
|
|
617166
617143
|
);
|
|
617167
617144
|
|
|
617168
617145
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
617169
|
-
var
|
|
617146
|
+
var import_build_tools4 = require("@storm-software/build-tools");
|
|
617170
617147
|
var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
617171
617148
|
return tsupExecutorFn(
|
|
617172
617149
|
{
|
|
617173
617150
|
...options,
|
|
617174
617151
|
platform: "node",
|
|
617175
|
-
banner: (0,
|
|
617152
|
+
banner: (0, import_build_tools4.getFileBanner)(
|
|
617176
617153
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
|
|
617177
617154
|
),
|
|
617178
617155
|
define: {
|
|
@@ -617181,7 +617158,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
617181
617158
|
env: {
|
|
617182
617159
|
...process.env
|
|
617183
617160
|
},
|
|
617184
|
-
getConfig:
|
|
617161
|
+
getConfig: import_build_tools4.nodeConfig
|
|
617185
617162
|
},
|
|
617186
617163
|
context,
|
|
617187
617164
|
config
|
|
@@ -617195,12 +617172,12 @@ var executor_default7 = withRunExecutor(
|
|
|
617195
617172
|
hooks: {
|
|
617196
617173
|
applyDefaultOptions: (options) => {
|
|
617197
617174
|
return {
|
|
617198
|
-
...(0,
|
|
617175
|
+
...(0, import_build_tools4.applyDefaultOptions)({
|
|
617199
617176
|
plugins: [],
|
|
617200
617177
|
...options,
|
|
617201
617178
|
platform: "node"
|
|
617202
617179
|
}),
|
|
617203
|
-
getConfig:
|
|
617180
|
+
getConfig: import_build_tools4.nodeConfig,
|
|
617204
617181
|
transports: ["pino-pretty", "pino-loki"]
|
|
617205
617182
|
};
|
|
617206
617183
|
}
|
|
@@ -617073,24 +617073,15 @@ var executor_default3 = withRunExecutor(
|
|
|
617073
617073
|
|
|
617074
617074
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
617075
617075
|
var import_build_tools = require("@storm-software/build-tools");
|
|
617076
|
-
var import_build_tools2 = require("@storm-software/build-tools");
|
|
617077
617076
|
async function tsupExecutorFn(options, context, config) {
|
|
617078
|
-
const {
|
|
617077
|
+
const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
617079
617078
|
writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
|
|
617080
|
-
writeDebug2(
|
|
617081
|
-
`\u2699\uFE0F Executor options:
|
|
617082
|
-
${Object.keys(options).map(
|
|
617083
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
617084
|
-
).join("\n")}
|
|
617085
|
-
`,
|
|
617086
|
-
config
|
|
617087
|
-
);
|
|
617088
617079
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
617089
617080
|
throw new Error(
|
|
617090
617081
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
617091
617082
|
);
|
|
617092
617083
|
}
|
|
617093
|
-
await (0,
|
|
617084
|
+
await (0, import_build_tools.build)(config, {
|
|
617094
617085
|
...options,
|
|
617095
617086
|
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
617096
617087
|
projectName: context.projectName,
|
|
@@ -617111,29 +617102,15 @@ var executor_default4 = withRunExecutor(
|
|
|
617111
617102
|
}
|
|
617112
617103
|
}
|
|
617113
617104
|
);
|
|
617114
|
-
var _isPrimitive = (value2) => {
|
|
617115
|
-
try {
|
|
617116
|
-
return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
|
|
617117
|
-
} catch (e2) {
|
|
617118
|
-
return false;
|
|
617119
|
-
}
|
|
617120
|
-
};
|
|
617121
|
-
var _isFunction3 = (value2) => {
|
|
617122
|
-
try {
|
|
617123
|
-
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
617124
|
-
} catch (e2) {
|
|
617125
|
-
return false;
|
|
617126
|
-
}
|
|
617127
|
-
};
|
|
617128
617105
|
|
|
617129
617106
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
617130
|
-
var
|
|
617107
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
617131
617108
|
var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
617132
617109
|
return tsupExecutorFn(
|
|
617133
617110
|
{
|
|
617134
617111
|
...options,
|
|
617135
617112
|
platform: "browser",
|
|
617136
|
-
banner: (0,
|
|
617113
|
+
banner: (0, import_build_tools2.getFileBanner)(
|
|
617137
617114
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Browser Platforms)"
|
|
617138
617115
|
),
|
|
617139
617116
|
define: {
|
|
@@ -617142,7 +617119,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
617142
617119
|
env: {
|
|
617143
617120
|
...process.env
|
|
617144
617121
|
},
|
|
617145
|
-
getConfig:
|
|
617122
|
+
getConfig: import_build_tools2.browserConfig
|
|
617146
617123
|
},
|
|
617147
617124
|
context,
|
|
617148
617125
|
config
|
|
@@ -617156,12 +617133,12 @@ var executor_default5 = withRunExecutor(
|
|
|
617156
617133
|
hooks: {
|
|
617157
617134
|
applyDefaultOptions: (options) => {
|
|
617158
617135
|
return {
|
|
617159
|
-
...(0,
|
|
617136
|
+
...(0, import_build_tools2.applyDefaultOptions)({
|
|
617160
617137
|
plugins: [],
|
|
617161
617138
|
...options,
|
|
617162
617139
|
platform: "browser"
|
|
617163
617140
|
}),
|
|
617164
|
-
getConfig:
|
|
617141
|
+
getConfig: import_build_tools2.browserConfig
|
|
617165
617142
|
};
|
|
617166
617143
|
}
|
|
617167
617144
|
}
|
|
@@ -617169,13 +617146,13 @@ var executor_default5 = withRunExecutor(
|
|
|
617169
617146
|
);
|
|
617170
617147
|
|
|
617171
617148
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
617172
|
-
var
|
|
617149
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
617173
617150
|
var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
617174
617151
|
return tsupExecutorFn(
|
|
617175
617152
|
{
|
|
617176
617153
|
...options,
|
|
617177
617154
|
platform: "neutral",
|
|
617178
|
-
banner: (0,
|
|
617155
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
617179
617156
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map(
|
|
617180
617157
|
(s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : ""
|
|
617181
617158
|
).join(" ") : "TypeScript (Neutral Platform)"
|
|
@@ -617187,7 +617164,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
617187
617164
|
env: {
|
|
617188
617165
|
...process.env
|
|
617189
617166
|
},
|
|
617190
|
-
getConfig:
|
|
617167
|
+
getConfig: import_build_tools3.neutralConfig
|
|
617191
617168
|
},
|
|
617192
617169
|
context,
|
|
617193
617170
|
config
|
|
@@ -617201,12 +617178,12 @@ var executor_default6 = withRunExecutor(
|
|
|
617201
617178
|
hooks: {
|
|
617202
617179
|
applyDefaultOptions: (options) => {
|
|
617203
617180
|
return {
|
|
617204
|
-
...(0,
|
|
617181
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
617205
617182
|
plugins: [],
|
|
617206
617183
|
...options,
|
|
617207
617184
|
platform: "neutral"
|
|
617208
617185
|
}),
|
|
617209
|
-
getConfig:
|
|
617186
|
+
getConfig: import_build_tools3.neutralConfig
|
|
617210
617187
|
};
|
|
617211
617188
|
}
|
|
617212
617189
|
}
|
|
@@ -617214,13 +617191,13 @@ var executor_default6 = withRunExecutor(
|
|
|
617214
617191
|
);
|
|
617215
617192
|
|
|
617216
617193
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
617217
|
-
var
|
|
617194
|
+
var import_build_tools4 = require("@storm-software/build-tools");
|
|
617218
617195
|
var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
617219
617196
|
return tsupExecutorFn(
|
|
617220
617197
|
{
|
|
617221
617198
|
...options,
|
|
617222
617199
|
platform: "node",
|
|
617223
|
-
banner: (0,
|
|
617200
|
+
banner: (0, import_build_tools4.getFileBanner)(
|
|
617224
617201
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => s2 ? s2.toUpperCase()[0] + s2.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
|
|
617225
617202
|
),
|
|
617226
617203
|
define: {
|
|
@@ -617229,7 +617206,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
617229
617206
|
env: {
|
|
617230
617207
|
...process.env
|
|
617231
617208
|
},
|
|
617232
|
-
getConfig:
|
|
617209
|
+
getConfig: import_build_tools4.nodeConfig
|
|
617233
617210
|
},
|
|
617234
617211
|
context,
|
|
617235
617212
|
config
|
|
@@ -617243,12 +617220,12 @@ var executor_default7 = withRunExecutor(
|
|
|
617243
617220
|
hooks: {
|
|
617244
617221
|
applyDefaultOptions: (options) => {
|
|
617245
617222
|
return {
|
|
617246
|
-
...(0,
|
|
617223
|
+
...(0, import_build_tools4.applyDefaultOptions)({
|
|
617247
617224
|
plugins: [],
|
|
617248
617225
|
...options,
|
|
617249
617226
|
platform: "node"
|
|
617250
617227
|
}),
|
|
617251
|
-
getConfig:
|
|
617228
|
+
getConfig: import_build_tools4.nodeConfig,
|
|
617252
617229
|
transports: ["pino-pretty", "pino-loki"]
|
|
617253
617230
|
};
|
|
617254
617231
|
}
|
|
@@ -427545,7 +427545,7 @@ var require_package3 = __commonJS({
|
|
|
427545
427545
|
"packages/cloudflare-tools/package.json"(exports2, module2) {
|
|
427546
427546
|
module2.exports = {
|
|
427547
427547
|
name: "@storm-software/cloudflare-tools",
|
|
427548
|
-
version: "0.20.
|
|
427548
|
+
version: "0.20.2",
|
|
427549
427549
|
type: "commonjs",
|
|
427550
427550
|
description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
427551
427551
|
repository: {
|
|
@@ -660097,7 +660097,7 @@ var require_package13 = __commonJS({
|
|
|
660097
660097
|
"packages/cloudflare-tools/package.json"(exports2, module2) {
|
|
660098
660098
|
module2.exports = {
|
|
660099
660099
|
name: "@storm-software/cloudflare-tools",
|
|
660100
|
-
version: "0.20.
|
|
660100
|
+
version: "0.20.2",
|
|
660101
660101
|
type: "commonjs",
|
|
660102
660102
|
description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
660103
660103
|
repository: {
|