@storm-software/workspace-tools 1.117.0 → 1.119.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 +16 -0
- package/README.md +43 -8
- package/executors.json +5 -0
- package/index.js +11902 -5321
- package/meta.json +1 -1
- package/package.json +3 -1
- package/packages/config/src/schema.d.ts +2 -2
- package/packages/workspace-tools/index.d.ts +2 -0
- package/packages/workspace-tools/src/base/base-executor.d.ts +2 -4
- package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +4 -0
- package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/types.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +4 -0
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/tsup/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/typia/executor.d.ts +1 -3
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +1 -3
- package/packages/workspace-tools/src/plugins/typescript/project-config.d.ts +1 -1
- package/src/base/index.js +4 -2
- package/src/executors/clean-package/executor.js +80083 -0
- package/src/executors/clean-package/schema.d.ts +10 -0
- package/src/executors/clean-package/schema.json +41 -0
- package/src/executors/rolldown/executor.js +4 -2
- package/src/executors/tsup/executor.js +4 -2
- package/src/executors/tsup-browser/executor.js +4 -2
- package/src/executors/tsup-neutral/executor.js +4 -2
- package/src/executors/tsup-node/executor.js +4 -2
- package/src/executors/typia/executor.js +4 -2
- package/src/executors/unbuild/executor.js +4 -2
- package/src/generators/browser-library/generator.js +2 -1
- package/src/generators/config-schema/generator.js +2 -1
- package/src/generators/neutral-library/generator.js +2 -1
- package/src/generators/node-library/generator.js +2 -1
- package/src/generators/preset/files/.github/CODEOWNERS +3 -1
- package/src/generators/preset/files/.github/dependabot.yml +49 -9
- package/src/generators/preset/files/.github/labels.yml +3 -0
- package/src/generators/preset/files/.github/renovate.json +4 -0
- package/src/generators/preset/files/.github/workflows/dependabot-update.yml +32 -0
- package/src/generators/preset/generator.js +2 -1
- package/src/generators/release-version/generator.js +2 -1
- package/src/plugins/rust/index.js +38 -7
- package/src/plugins/typescript/index.js +27 -1
- package/src/utils/index.js +2 -1
- package/src/generators/preset/files/.eslintignore +0 -21
- package/src/generators/preset/files/.github/workflows/dependabot-approve.yml +0 -24
- package/src/generators/preset/files/.prettierignore +0 -30
- package/src/generators/preset/files/.prettierrc.cjs +0 -9
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseExecutorSchema } from "../../../declarations";
|
|
2
|
+
|
|
3
|
+
export interface CleanPackageExecutorSchema extends BaseExecutorSchema {
|
|
4
|
+
outputPath: string;
|
|
5
|
+
packageJsonPath?: string;
|
|
6
|
+
ignoredFiles?: string;
|
|
7
|
+
fields?: string;
|
|
8
|
+
cleanReadMe: boolean;
|
|
9
|
+
cleanComments: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "clean-publish",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"title": "Clean Publish Executor",
|
|
6
|
+
"description": "Remove configuration files, fields, and scripts for development before publishing package. This tool is inspired by the [clean-publish](https://github.com/shashkovdanil/clean-publish/tree/master) package",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"outputPath": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The output path of the generated files.",
|
|
12
|
+
"x-completion-type": "directory",
|
|
13
|
+
"x-priority": "important",
|
|
14
|
+
"default": "dist/{projectRoot}"
|
|
15
|
+
},
|
|
16
|
+
"packageJsonPath": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The path to the package.json file, relative to the workspace root.",
|
|
19
|
+
"x-completion-type": "directory"
|
|
20
|
+
},
|
|
21
|
+
"cleanReadMe": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Should API Extractor generate an TSDoc Metadata file.",
|
|
24
|
+
"default": true
|
|
25
|
+
},
|
|
26
|
+
"cleanComments": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Should API Extractor generate an TSDoc Metadata file.",
|
|
29
|
+
"default": true
|
|
30
|
+
},
|
|
31
|
+
"ignoredFiles": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "List of ESBuild plugins to use during processing"
|
|
34
|
+
},
|
|
35
|
+
"fields": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "List of ESBuild plugins to use during processing"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": ["outputPath", "cleanReadMe", "cleanComments"]
|
|
41
|
+
}
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -67508,7 +67508,7 @@ var init_schema = __esm({
|
|
|
67508
67508
|
ci: z2.boolean().default(true).describe(
|
|
67509
67509
|
"An indicator specifying if the current environment is a CI environment"
|
|
67510
67510
|
),
|
|
67511
|
-
workspaceRoot: z2.string().trim().
|
|
67511
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
67512
67512
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
67513
67513
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
67514
67514
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -70154,6 +70154,7 @@ var init_create_storm_config = __esm({
|
|
|
70154
70154
|
...config.colors
|
|
70155
70155
|
}
|
|
70156
70156
|
});
|
|
70157
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
70157
70158
|
} else {
|
|
70158
70159
|
result = _static_cache;
|
|
70159
70160
|
}
|
|
@@ -299203,7 +299204,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
299203
299204
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
299204
299205
|
const stopwatch = getStopwatch2(name);
|
|
299205
299206
|
let options = _options;
|
|
299206
|
-
let config;
|
|
299207
|
+
let config = {};
|
|
299207
299208
|
try {
|
|
299208
299209
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
299209
299210
|
`, config);
|
|
@@ -299216,6 +299217,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
299216
299217
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
299217
299218
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
299218
299219
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
299220
|
+
config.workspaceRoot = workspaceRoot;
|
|
299219
299221
|
if (!executorOptions.skipReadingConfig) {
|
|
299220
299222
|
writeDebug2(
|
|
299221
299223
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -68247,7 +68248,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68247
68248
|
} = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
68248
68249
|
const stopwatch = getStopwatch2(name);
|
|
68249
68250
|
let options = _options;
|
|
68250
|
-
let config;
|
|
68251
|
+
let config = {};
|
|
68251
68252
|
try {
|
|
68252
68253
|
writeInfo2(`\u26A1 Running the ${name} executor...
|
|
68253
68254
|
`, config);
|
|
@@ -68260,6 +68261,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
68260
68261
|
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ?? workspaceRoot;
|
|
68261
68262
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
68262
68263
|
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
68264
|
+
config.workspaceRoot = workspaceRoot;
|
|
68263
68265
|
if (!executorOptions.skipReadingConfig) {
|
|
68264
68266
|
writeDebug2(
|
|
68265
68267
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -4038,7 +4038,7 @@ var init_schema = __esm({
|
|
|
4038
4038
|
ci: z.boolean().default(true).describe(
|
|
4039
4039
|
"An indicator specifying if the current environment is a CI environment"
|
|
4040
4040
|
),
|
|
4041
|
-
workspaceRoot: z.string().trim().
|
|
4041
|
+
workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
|
|
4042
4042
|
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
|
|
4043
4043
|
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
4044
4044
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
#
|
|
1
|
+
#################################
|
|
2
|
+
# GitHub Dependabot Config info #
|
|
3
|
+
#################################
|
|
4
|
+
|
|
3
5
|
# Please see the documentation for all configuration options:
|
|
4
6
|
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
7
|
|
|
@@ -7,18 +9,56 @@ version: 2
|
|
|
7
9
|
updates:
|
|
8
10
|
# Maintain dependencies for npm
|
|
9
11
|
- package-ecosystem: "npm"
|
|
12
|
+
assignees:
|
|
13
|
+
- "@sullivanpj"
|
|
14
|
+
- "@storm-software/operations"
|
|
15
|
+
reviewers:
|
|
16
|
+
- "@sullivanpj"
|
|
17
|
+
- "@storm-software/operations"
|
|
18
|
+
commit-message:
|
|
19
|
+
prefix: "deps(monorepo):"
|
|
10
20
|
directory: "/"
|
|
11
21
|
schedule:
|
|
12
|
-
interval: "
|
|
22
|
+
interval: "monthly"
|
|
23
|
+
ignore:
|
|
24
|
+
- dependency-name: "{@storm-software/*,@storm-stack/*,@cyclone-ui/*,@acidic/*,@nx/*,nx}"
|
|
25
|
+
open-pull-requests-limit: 5
|
|
26
|
+
labels:
|
|
27
|
+
- "dependencies"
|
|
28
|
+
- "dependabot"
|
|
13
29
|
|
|
14
|
-
# Maintain dependencies for
|
|
15
|
-
- package-ecosystem: "
|
|
30
|
+
# Maintain dependencies for GitHub Actions
|
|
31
|
+
- package-ecosystem: "github-actions"
|
|
32
|
+
assignees:
|
|
33
|
+
- "@sullivanpj"
|
|
34
|
+
- "@storm-software/operations"
|
|
35
|
+
reviewers:
|
|
36
|
+
- "@sullivanpj"
|
|
37
|
+
- "@storm-software/operations"
|
|
38
|
+
commit-message:
|
|
39
|
+
prefix: "deps(monorepo):"
|
|
16
40
|
directory: "/"
|
|
17
41
|
schedule:
|
|
18
|
-
interval: "
|
|
42
|
+
interval: "monthly"
|
|
43
|
+
open-pull-requests-limit: 5
|
|
44
|
+
labels:
|
|
45
|
+
- "dependencies"
|
|
46
|
+
- "dependabot"
|
|
19
47
|
|
|
20
|
-
# Maintain dependencies for
|
|
21
|
-
- package-ecosystem: "
|
|
48
|
+
# Maintain dependencies for bundler
|
|
49
|
+
- package-ecosystem: "bundler"
|
|
50
|
+
assignees:
|
|
51
|
+
- "@sullivanpj"
|
|
52
|
+
- "@storm-software/operations"
|
|
53
|
+
reviewers:
|
|
54
|
+
- "@sullivanpj"
|
|
55
|
+
- "@storm-software/operations"
|
|
56
|
+
commit-message:
|
|
57
|
+
prefix: "deps(monorepo):"
|
|
22
58
|
directory: "/"
|
|
23
59
|
schedule:
|
|
24
|
-
interval: "
|
|
60
|
+
interval: "monthly"
|
|
61
|
+
open-pull-requests-limit: 5
|
|
62
|
+
labels:
|
|
63
|
+
- "dependencies"
|
|
64
|
+
- "dependabot"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Dependabot Update
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
types:
|
|
7
|
+
- opened
|
|
8
|
+
- synchronize
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
dependabot:
|
|
16
|
+
env:
|
|
17
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
|
18
|
+
GITHUB_TOKEN: "${{secrets.STORM_BOT_GITHUB_TOKEN}}"
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
if: github.actor == 'dependabot[bot]'
|
|
21
|
+
steps:
|
|
22
|
+
- name: Fetch Dependabot metadata
|
|
23
|
+
id: metadata
|
|
24
|
+
uses: dependabot/fetch-metadata@v2
|
|
25
|
+
with:
|
|
26
|
+
github-token: "${{ secrets.STORM_BOT_GITHUB_TOKEN }}"
|
|
27
|
+
|
|
28
|
+
- name: Auto-merge the pull request in GitHub
|
|
29
|
+
run: gh pr merge --auto --squash --delete-branch "${PR_URL}"
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_ACTOR: Stormie-Bot
|
|
32
|
+
GITHUB_TOKEN: "${{secrets.STORM_BOT_GITHUB_TOKEN}}"
|
|
@@ -65395,7 +65395,7 @@ var init_schema = __esm({
|
|
|
65395
65395
|
ci: z2.boolean().default(true).describe(
|
|
65396
65396
|
"An indicator specifying if the current environment is a CI environment"
|
|
65397
65397
|
),
|
|
65398
|
-
workspaceRoot: z2.string().trim().
|
|
65398
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
65399
65399
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
65400
65400
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
65401
65401
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -68041,6 +68041,7 @@ var init_create_storm_config = __esm({
|
|
|
68041
68041
|
...config.colors
|
|
68042
68042
|
}
|
|
68043
68043
|
});
|
|
68044
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
68044
68045
|
} else {
|
|
68045
68046
|
result = _static_cache;
|
|
68046
68047
|
}
|
|
@@ -69658,7 +69658,7 @@ var init_schema = __esm({
|
|
|
69658
69658
|
ci: z2.boolean().default(true).describe(
|
|
69659
69659
|
"An indicator specifying if the current environment is a CI environment"
|
|
69660
69660
|
),
|
|
69661
|
-
workspaceRoot: z2.string().trim().
|
|
69661
|
+
workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
|
|
69662
69662
|
packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
|
|
69663
69663
|
externalPackagePatterns: z2.array(z2.string()).default([]).describe(
|
|
69664
69664
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
@@ -72304,6 +72304,7 @@ var init_create_storm_config = __esm({
|
|
|
72304
72304
|
...config.colors
|
|
72305
72305
|
}
|
|
72306
72306
|
});
|
|
72307
|
+
result.workspaceRoot ??= defaultConfig.workspaceRoot ? defaultConfig.workspaceRoot : findWorkspaceRoot(workspaceRoot);
|
|
72307
72308
|
} else {
|
|
72308
72309
|
result = _static_cache;
|
|
72309
72310
|
}
|
|
@@ -77,6 +77,7 @@ function isExternal(packageOrDep, workspaceRoot3) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// packages/workspace-tools/src/plugins/rust/cargo-toml.ts
|
|
80
|
+
var import_node_fs = require("node:fs");
|
|
80
81
|
var name = "storm-software/rust/cargo-toml";
|
|
81
82
|
var createNodes = [
|
|
82
83
|
"*/**/Cargo.toml",
|
|
@@ -97,7 +98,23 @@ var createNodes = [
|
|
|
97
98
|
for (const cargoPackage of cargoPackages) {
|
|
98
99
|
if (!isExternal(cargoPackage, ctx.workspaceRoot)) {
|
|
99
100
|
const root = (0, import_node_path2.dirname)(cargoFile);
|
|
100
|
-
const
|
|
101
|
+
const project = {
|
|
102
|
+
root,
|
|
103
|
+
name: cargoPackage.name
|
|
104
|
+
};
|
|
105
|
+
if ((0, import_node_fs.existsSync)((0, import_devkit2.joinPathFragments)(root, "project.json"))) {
|
|
106
|
+
const projectJson = (0, import_devkit2.readJsonFile)(
|
|
107
|
+
(0, import_devkit2.joinPathFragments)(root, "project.json")
|
|
108
|
+
);
|
|
109
|
+
if (projectJson) {
|
|
110
|
+
Object.keys(projectJson).forEach((key) => {
|
|
111
|
+
if (!project[key]) {
|
|
112
|
+
project[key] = projectJson[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
project.targets = {
|
|
101
118
|
"lint-ls": {
|
|
102
119
|
cache: true,
|
|
103
120
|
inputs: ["config_linting", "rust", "^production"],
|
|
@@ -179,7 +196,7 @@ var createNodes = [
|
|
|
179
196
|
};
|
|
180
197
|
const isPrivate = cargoPackage.publish?.length === 0;
|
|
181
198
|
if (!isPrivate) {
|
|
182
|
-
targets["nx-release-publish"] = {
|
|
199
|
+
project.targets["nx-release-publish"] = {
|
|
183
200
|
cache: false,
|
|
184
201
|
inputs: ["rust", "^production"],
|
|
185
202
|
executor: "@storm-software/workspace-tools:cargo-publish",
|
|
@@ -188,16 +205,30 @@ var createNodes = [
|
|
|
188
205
|
}
|
|
189
206
|
};
|
|
190
207
|
}
|
|
208
|
+
const tags = project.tags ?? [];
|
|
209
|
+
if (!tags.some((tag) => tag.startsWith("language:"))) {
|
|
210
|
+
tags.push("language:rust");
|
|
211
|
+
}
|
|
212
|
+
if (!tags.some((tag) => tag.startsWith("type:"))) {
|
|
213
|
+
tags.push(
|
|
214
|
+
`type:${project.projectType ? project.projectType : "library"}`
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
if (!tags.some((tag) => tag.startsWith("dist-style:"))) {
|
|
218
|
+
tags.push(
|
|
219
|
+
`dist-style:${Object.keys(project.targets).includes("clean-package") ? "dist-style:clean" : "dist-style:normal"}`
|
|
220
|
+
);
|
|
221
|
+
}
|
|
191
222
|
projects[root] = {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
targets,
|
|
223
|
+
...project,
|
|
224
|
+
tags,
|
|
195
225
|
release: {
|
|
226
|
+
...project.release,
|
|
196
227
|
version: {
|
|
228
|
+
...project.release?.version,
|
|
197
229
|
generator: "@storm-software/workspace-tools:release-version"
|
|
198
230
|
}
|
|
199
|
-
}
|
|
200
|
-
tags: ["language:rust"]
|
|
231
|
+
}
|
|
201
232
|
};
|
|
202
233
|
}
|
|
203
234
|
for (const dep of cargoPackage.dependencies) {
|
|
@@ -168,12 +168,38 @@ var createNodes = [
|
|
|
168
168
|
executor: "@storm-software/workspace-tools:npm-publish",
|
|
169
169
|
options: {}
|
|
170
170
|
};
|
|
171
|
+
if (project.projectType === "application" || project.tags?.includes("type:application") || project.tags?.includes("dist-style:clean")) {
|
|
172
|
+
targets["clean-package"] = {
|
|
173
|
+
cache: false,
|
|
174
|
+
dependsOn: ["build"],
|
|
175
|
+
executor: "@storm-software/workspace-tools:clean-package",
|
|
176
|
+
options: {
|
|
177
|
+
cleanReadMe: true,
|
|
178
|
+
cleanComments: true
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
targets["nx-release-publish"].dependsOn = ["clean-package"];
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const tags = project.tags ?? [];
|
|
185
|
+
if (!tags.some((tag) => tag.startsWith("language:"))) {
|
|
186
|
+
tags.push("language:typescript");
|
|
187
|
+
}
|
|
188
|
+
if (!tags.some((tag) => tag.startsWith("type:"))) {
|
|
189
|
+
tags.push(
|
|
190
|
+
`type:${project.projectType ? project.projectType : "library"}`
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
if (!tags.some((tag) => tag.startsWith("dist-style:"))) {
|
|
194
|
+
tags.push(
|
|
195
|
+
`dist-style:${Object.keys(targets).includes("clean-package") ? "dist-style:clean" : "dist-style:normal"}`
|
|
196
|
+
);
|
|
171
197
|
}
|
|
172
198
|
return project?.name ? {
|
|
173
199
|
projects: {
|
|
174
200
|
[project.name]: {
|
|
175
|
-
tags: ["language:typescript"],
|
|
176
201
|
...project,
|
|
202
|
+
tags,
|
|
177
203
|
targets,
|
|
178
204
|
release: {
|
|
179
205
|
...project?.release,
|