@storm-software/workspace-tools 1.167.1 → 1.169.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 +38 -0
- package/README.md +1 -1
- package/declarations.d.ts +8 -0
- package/index.js +3143 -260
- package/meta.json +1 -1
- package/package.json +7 -7
- package/src/base/base-executor.js +23 -16
- package/src/base/base-generator.js +23 -16
- package/src/base/index.js +123 -116
- package/src/base/typescript-library-generator.js +100 -100
- package/src/executors/cargo-build/executor.js +23 -16
- package/src/executors/cargo-check/executor.js +23 -16
- package/src/executors/cargo-clippy/executor.js +23 -16
- package/src/executors/cargo-doc/executor.js +23 -16
- package/src/executors/cargo-format/executor.js +23 -16
- package/src/executors/clean-package/executor.js +23 -16
- package/src/executors/rolldown/executor.js +23 -16
- package/src/executors/rollup/executor.js +14271 -124225
- package/src/executors/size-limit/executor.js +23 -16
- package/src/executors/tsup/executor.js +23 -16
- package/src/executors/tsup-browser/executor.js +23 -16
- package/src/executors/tsup-neutral/executor.js +23 -16
- package/src/executors/tsup-node/executor.js +23 -16
- package/src/executors/typia/executor.js +23 -16
- package/src/executors/unbuild/executor.js +23 -16
- package/src/generators/browser-library/generator.js +123 -116
- package/src/generators/config-schema/generator.js +23 -16
- package/src/generators/neutral-library/generator.js +123 -116
- package/src/generators/node-library/generator.js +123 -116
- package/src/generators/preset/generator.js +23 -16
- package/src/generators/release-version/generator.js +31 -24
- package/src/plugins/rust/index.js +13 -0
- package/src/plugins/typescript/index.js +13 -0
- package/src/utils/index.js +30 -16
- package/src/utils/project-tags.d.ts +8 -1
- package/src/utils/project-tags.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.169.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
|
|
6
6
|
"repository": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
],
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@microsoft/api-extractor": "7.46.2",
|
|
57
|
-
"@nx/devkit": "^19.6.
|
|
58
|
-
"@nx/esbuild": "^19.6.
|
|
57
|
+
"@nx/devkit": "^19.6.4",
|
|
58
|
+
"@nx/esbuild": "^19.6.4",
|
|
59
59
|
"@nx/rollup": "^19.6.2",
|
|
60
|
-
"nx": "^19.6.
|
|
60
|
+
"nx": "^19.6.4"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@microsoft/api-extractor": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@anatine/esbuild-decorators": "0.2.19",
|
|
81
81
|
"@ltd/j-toml": "1.38.0",
|
|
82
|
-
"@nx/devkit": "^19.6.
|
|
82
|
+
"@nx/devkit": "^19.6.4",
|
|
83
83
|
"@rollup/plugin-json": "6.1.0",
|
|
84
84
|
"@size-limit/esbuild": "11.1.4",
|
|
85
85
|
"@size-limit/esbuild-why": "11.1.4",
|
|
@@ -110,11 +110,11 @@
|
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@microsoft/api-extractor": "7.46.2",
|
|
113
|
-
"@nx/esbuild": "^19.6.
|
|
113
|
+
"@nx/esbuild": "^19.6.4",
|
|
114
114
|
"@nx/rollup": "^19.6.2",
|
|
115
115
|
"@types/micromatch": "4.0.9",
|
|
116
116
|
"@types/semver": "7.5.8",
|
|
117
|
-
"nx": "^19.6.
|
|
117
|
+
"nx": "^19.6.4"
|
|
118
118
|
},
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
@@ -67063,7 +67063,8 @@ var init_schema = __esm({
|
|
|
67063
67063
|
github: RegistryUrlConfigSchema,
|
|
67064
67064
|
npm: RegistryUrlConfigSchema,
|
|
67065
67065
|
cargo: RegistryUrlConfigSchema,
|
|
67066
|
-
cyclone: RegistryUrlConfigSchema
|
|
67066
|
+
cyclone: RegistryUrlConfigSchema,
|
|
67067
|
+
container: RegistryUrlConfigSchema
|
|
67067
67068
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
67068
67069
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67069
67070
|
MultiThemeColorConfigSchema
|
|
@@ -67373,7 +67374,7 @@ var init_logger = __esm({
|
|
|
67373
67374
|
init_get_default_config();
|
|
67374
67375
|
init_get_log_level();
|
|
67375
67376
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67376
|
-
|
|
67377
|
+
const _chalk = getChalk();
|
|
67377
67378
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
67378
67379
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
67379
67380
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -67622,10 +67623,9 @@ var init_get_config_file = __esm({
|
|
|
67622
67623
|
};
|
|
67623
67624
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
67624
67625
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67625
|
-
|
|
67626
|
-
|
|
67627
|
-
|
|
67628
|
-
);
|
|
67626
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
67627
|
+
let config = result.config;
|
|
67628
|
+
const configFile = result.configFile;
|
|
67629
67629
|
if (config && Object.keys(config).length > 0) {
|
|
67630
67630
|
writeTrace(
|
|
67631
67631
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -67640,15 +67640,15 @@ var init_get_config_file = __esm({
|
|
|
67640
67640
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
67641
67641
|
)
|
|
67642
67642
|
);
|
|
67643
|
-
for (const
|
|
67644
|
-
if (
|
|
67643
|
+
for (const result2 of results) {
|
|
67644
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67645
67645
|
writeTrace(
|
|
67646
|
-
`Found additional configuration file "${
|
|
67646
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
67647
67647
|
{
|
|
67648
67648
|
logLevel: "all"
|
|
67649
67649
|
}
|
|
67650
67650
|
);
|
|
67651
|
-
config = (0, import_deepmerge.default)(
|
|
67651
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
67652
67652
|
}
|
|
67653
67653
|
}
|
|
67654
67654
|
}
|
|
@@ -67730,7 +67730,8 @@ var init_get_env = __esm({
|
|
|
67730
67730
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
67731
67731
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
67732
67732
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
67733
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
67733
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
67734
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
67734
67735
|
},
|
|
67735
67736
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
67736
67737
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -67989,6 +67990,11 @@ var init_set_env = __esm({
|
|
|
67989
67990
|
config.registry.cyclone
|
|
67990
67991
|
);
|
|
67991
67992
|
}
|
|
67993
|
+
if (config.registry.container) {
|
|
67994
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
67995
|
+
config.registry.cyclone
|
|
67996
|
+
);
|
|
67997
|
+
}
|
|
67992
67998
|
}
|
|
67993
67999
|
if (config.logLevel) {
|
|
67994
68000
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -68161,7 +68167,7 @@ var init_create_storm_config = __esm({
|
|
|
68161
68167
|
if (!_workspaceRoot) {
|
|
68162
68168
|
_workspaceRoot = findWorkspaceRoot();
|
|
68163
68169
|
}
|
|
68164
|
-
|
|
68170
|
+
const configFile = await getConfigFile(
|
|
68165
68171
|
_workspaceRoot
|
|
68166
68172
|
);
|
|
68167
68173
|
if (!configFile) {
|
|
@@ -68185,10 +68191,11 @@ var init_create_storm_config = __esm({
|
|
|
68185
68191
|
_workspaceRoot
|
|
68186
68192
|
);
|
|
68187
68193
|
setConfigEnv(config);
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68194
|
+
writeTrace(
|
|
68195
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68196
|
+
${formatLogMessage(config)}`,
|
|
68197
|
+
config
|
|
68198
|
+
);
|
|
68192
68199
|
return config;
|
|
68193
68200
|
};
|
|
68194
68201
|
}
|
|
@@ -67063,7 +67063,8 @@ var init_schema = __esm({
|
|
|
67063
67063
|
github: RegistryUrlConfigSchema,
|
|
67064
67064
|
npm: RegistryUrlConfigSchema,
|
|
67065
67065
|
cargo: RegistryUrlConfigSchema,
|
|
67066
|
-
cyclone: RegistryUrlConfigSchema
|
|
67066
|
+
cyclone: RegistryUrlConfigSchema,
|
|
67067
|
+
container: RegistryUrlConfigSchema
|
|
67067
67068
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
67068
67069
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67069
67070
|
MultiThemeColorConfigSchema
|
|
@@ -67373,7 +67374,7 @@ var init_logger = __esm({
|
|
|
67373
67374
|
init_get_default_config();
|
|
67374
67375
|
init_get_log_level();
|
|
67375
67376
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67376
|
-
|
|
67377
|
+
const _chalk = getChalk();
|
|
67377
67378
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
67378
67379
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
67379
67380
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -67622,10 +67623,9 @@ var init_get_config_file = __esm({
|
|
|
67622
67623
|
};
|
|
67623
67624
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
67624
67625
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67625
|
-
|
|
67626
|
-
|
|
67627
|
-
|
|
67628
|
-
);
|
|
67626
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
67627
|
+
let config = result.config;
|
|
67628
|
+
const configFile = result.configFile;
|
|
67629
67629
|
if (config && Object.keys(config).length > 0) {
|
|
67630
67630
|
writeTrace(
|
|
67631
67631
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -67640,15 +67640,15 @@ var init_get_config_file = __esm({
|
|
|
67640
67640
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
67641
67641
|
)
|
|
67642
67642
|
);
|
|
67643
|
-
for (const
|
|
67644
|
-
if (
|
|
67643
|
+
for (const result2 of results) {
|
|
67644
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67645
67645
|
writeTrace(
|
|
67646
|
-
`Found additional configuration file "${
|
|
67646
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
67647
67647
|
{
|
|
67648
67648
|
logLevel: "all"
|
|
67649
67649
|
}
|
|
67650
67650
|
);
|
|
67651
|
-
config = (0, import_deepmerge.default)(
|
|
67651
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
67652
67652
|
}
|
|
67653
67653
|
}
|
|
67654
67654
|
}
|
|
@@ -67730,7 +67730,8 @@ var init_get_env = __esm({
|
|
|
67730
67730
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
67731
67731
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
67732
67732
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
67733
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
67733
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
67734
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
67734
67735
|
},
|
|
67735
67736
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
67736
67737
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -67989,6 +67990,11 @@ var init_set_env = __esm({
|
|
|
67989
67990
|
config.registry.cyclone
|
|
67990
67991
|
);
|
|
67991
67992
|
}
|
|
67993
|
+
if (config.registry.container) {
|
|
67994
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
67995
|
+
config.registry.cyclone
|
|
67996
|
+
);
|
|
67997
|
+
}
|
|
67992
67998
|
}
|
|
67993
67999
|
if (config.logLevel) {
|
|
67994
68000
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -68161,7 +68167,7 @@ var init_create_storm_config = __esm({
|
|
|
68161
68167
|
if (!_workspaceRoot) {
|
|
68162
68168
|
_workspaceRoot = findWorkspaceRoot();
|
|
68163
68169
|
}
|
|
68164
|
-
|
|
68170
|
+
const configFile = await getConfigFile(
|
|
68165
68171
|
_workspaceRoot
|
|
68166
68172
|
);
|
|
68167
68173
|
if (!configFile) {
|
|
@@ -68185,10 +68191,11 @@ var init_create_storm_config = __esm({
|
|
|
68185
68191
|
_workspaceRoot
|
|
68186
68192
|
);
|
|
68187
68193
|
setConfigEnv(config);
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68194
|
+
writeTrace(
|
|
68195
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68196
|
+
${formatLogMessage(config)}`,
|
|
68197
|
+
config
|
|
68198
|
+
);
|
|
68192
68199
|
return config;
|
|
68193
68200
|
};
|
|
68194
68201
|
}
|