@storm-software/workspace-tools 1.201.3 → 1.202.1
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/index.js +19 -95
- package/meta.json +70 -140
- package/package.json +1 -1
- package/src/base/base-executor.js +17 -4
- package/src/base/base-generator.js +17 -4
- package/src/base/index.js +18 -94
- package/src/base/typescript-library-generator.d.ts +1 -3
- package/src/base/typescript-library-generator.js +1 -90
- package/src/executors/cargo-build/executor.js +17 -4
- package/src/executors/cargo-check/executor.js +17 -4
- package/src/executors/cargo-clippy/executor.js +17 -4
- package/src/executors/cargo-doc/executor.js +17 -4
- package/src/executors/cargo-format/executor.js +17 -4
- package/src/executors/clean-package/executor.js +17 -4
- package/src/executors/rolldown/executor.js +17 -4
- package/src/executors/rollup/executor.js +17 -4
- package/src/executors/size-limit/executor.js +17 -4
- package/src/executors/tsup/executor.js +17 -4
- package/src/executors/tsup-browser/executor.js +17 -4
- package/src/executors/tsup-neutral/executor.js +17 -4
- package/src/executors/tsup-node/executor.js +17 -4
- package/src/executors/typia/executor.js +17 -4
- package/src/executors/unbuild/executor.js +17 -4
- package/src/generators/browser-library/generator.js +23 -97
- package/src/generators/config-schema/generator.js +17 -4
- package/src/generators/neutral-library/generator.js +19 -93
- package/src/generators/node-library/generator.js +19 -93
- package/src/generators/preset/generator.js +17 -4
- package/src/generators/release-version/generator.js +17 -4
- package/src/utils/index.js +17 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.202.1 (2024-12-19)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Resolved issue with TypeScript library generator
|
|
6
|
+
([f1968e8d](https://github.com/storm-software/storm-ops/commit/f1968e8d))
|
|
7
|
+
|
|
8
|
+
## 1.202.0 (2024-12-18)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
- **storm-ops:** Improved descriptions and markdown across monorepo
|
|
13
|
+
([aec89c79](https://github.com/storm-software/storm-ops/commit/aec89c79))
|
|
14
|
+
|
|
1
15
|
## 1.201.3 (2024-12-18)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
package/index.js
CHANGED
|
@@ -66386,7 +66386,12 @@ var init_schema = __esm({
|
|
|
66386
66386
|
extends: z3.string().trim().optional().describe(
|
|
66387
66387
|
"The path to a base JSON file to use as a configuration preset file"
|
|
66388
66388
|
),
|
|
66389
|
-
|
|
66389
|
+
isRoot: z3.boolean().optional().describe(
|
|
66390
|
+
"A flag indicating if the current configuration is the set in the root of the workspace"
|
|
66391
|
+
),
|
|
66392
|
+
name: z3.string().trim().toLowerCase().optional().describe(
|
|
66393
|
+
"The name of the service/package/scope using this configuration"
|
|
66394
|
+
),
|
|
66390
66395
|
namespace: z3.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
66391
66396
|
organization: z3.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
66392
66397
|
repository: z3.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
@@ -66396,7 +66401,7 @@ var init_schema = __esm({
|
|
|
66396
66401
|
licensing: z3.string().trim().url().default(STORM_DEFAULT_LICENSING).describe("The base licensing site for the workspace"),
|
|
66397
66402
|
branch: z3.string().trim().default("main").describe("The branch of the workspace"),
|
|
66398
66403
|
preid: z3.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
66399
|
-
owner: z3.string().trim().default("@storm-software/
|
|
66404
|
+
owner: z3.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
66400
66405
|
worker: z3.string().trim().default("Stormie-Bot").describe(
|
|
66401
66406
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
66402
66407
|
),
|
|
@@ -66407,7 +66412,15 @@ var init_schema = __esm({
|
|
|
66407
66412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
66408
66413
|
),
|
|
66409
66414
|
skipCache: z3.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
66410
|
-
cacheDirectory: z3.string().trim().
|
|
66415
|
+
cacheDirectory: z3.string().trim().optional().describe(
|
|
66416
|
+
"The directory used to store the environment's cached file data"
|
|
66417
|
+
),
|
|
66418
|
+
dataDirectory: z3.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
66419
|
+
configDirectory: z3.string().trim().optional().describe(
|
|
66420
|
+
"The directory used to store the environment's configuration files"
|
|
66421
|
+
),
|
|
66422
|
+
tempDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66423
|
+
logDirectory: z3.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
66411
66424
|
buildDirectory: z3.string().trim().default("dist").describe("The build directory for the workspace"),
|
|
66412
66425
|
outputDirectory: z3.string().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
66413
66426
|
runtimeVersion: z3.string().trim().regex(
|
|
@@ -66425,7 +66438,7 @@ var init_schema = __esm({
|
|
|
66425
66438
|
"debug",
|
|
66426
66439
|
"trace",
|
|
66427
66440
|
"all"
|
|
66428
|
-
]).default("
|
|
66441
|
+
]).default("info").describe(
|
|
66429
66442
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
66430
66443
|
),
|
|
66431
66444
|
cloudflareAccountId: z3.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
@@ -220709,7 +220722,6 @@ __export(workspace_tools_exports, {
|
|
|
220709
220722
|
ProjectTagConstants: () => ProjectTagConstants,
|
|
220710
220723
|
YARN_LOCK_FILE: () => YARN_LOCK_FILE,
|
|
220711
220724
|
YARN_LOCK_PATH: () => YARN_LOCK_PATH,
|
|
220712
|
-
addLint: () => addLint,
|
|
220713
220725
|
addProjectTag: () => addProjectTag,
|
|
220714
220726
|
applyWorkspaceExecutorTokens: () => applyWorkspaceExecutorTokens,
|
|
220715
220727
|
buildCargoCommand: () => buildCargoCommand,
|
|
@@ -221170,7 +221182,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
221170
221182
|
type: "github",
|
|
221171
221183
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
221172
221184
|
};
|
|
221173
|
-
let description = schema.description ?? "
|
|
221185
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
221174
221186
|
if (tree.exists("package.json")) {
|
|
221175
221187
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
221176
221188
|
if (packageJson?.repository) {
|
|
@@ -221279,96 +221291,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
221279
221291
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
221280
221292
|
});
|
|
221281
221293
|
}
|
|
221282
|
-
const lintCallback = await addLint(tree, options);
|
|
221283
|
-
tasks.push(lintCallback);
|
|
221284
221294
|
await (0, import_devkit.formatFiles)(tree);
|
|
221285
221295
|
return null;
|
|
221286
221296
|
}
|
|
221287
|
-
async function addLint(tree, options) {
|
|
221288
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
221289
|
-
const { mapLintPattern } = (
|
|
221290
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
221291
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
221292
|
-
);
|
|
221293
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
221294
|
-
const task = lintProjectGenerator(tree, {
|
|
221295
|
-
project: options.name,
|
|
221296
|
-
linter: options.linter,
|
|
221297
|
-
skipFormat: true,
|
|
221298
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
221299
|
-
unitTestRunner: options.unitTestRunner,
|
|
221300
|
-
eslintFilePatterns: [
|
|
221301
|
-
mapLintPattern(
|
|
221302
|
-
options.projectRoot,
|
|
221303
|
-
options.js ? "js" : "ts",
|
|
221304
|
-
options.rootProject
|
|
221305
|
-
)
|
|
221306
|
-
],
|
|
221307
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
221308
|
-
rootProject: options.rootProject
|
|
221309
|
-
});
|
|
221310
|
-
const {
|
|
221311
|
-
addOverrideToLintConfig,
|
|
221312
|
-
lintConfigHasOverride,
|
|
221313
|
-
isEslintConfigSupported,
|
|
221314
|
-
updateOverrideInLintConfig
|
|
221315
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
221316
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
221317
|
-
if (!isEslintConfigSupported(tree)) {
|
|
221318
|
-
return task;
|
|
221319
|
-
}
|
|
221320
|
-
addOverrideToLintConfig(tree, "", {
|
|
221321
|
-
files: ["*.json"],
|
|
221322
|
-
parser: "jsonc-eslint-parser",
|
|
221323
|
-
rules: {
|
|
221324
|
-
"@nx/dependency-checks": [
|
|
221325
|
-
"error",
|
|
221326
|
-
{
|
|
221327
|
-
"buildTargets": ["build"],
|
|
221328
|
-
"ignoredFiles": [
|
|
221329
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
221330
|
-
"{projectRoot}/jest.config.ts"
|
|
221331
|
-
],
|
|
221332
|
-
"checkMissingDependencies": true,
|
|
221333
|
-
"checkObsoleteDependencies": true,
|
|
221334
|
-
"checkVersionMismatches": false
|
|
221335
|
-
}
|
|
221336
|
-
]
|
|
221337
|
-
}
|
|
221338
|
-
});
|
|
221339
|
-
if (lintConfigHasOverride(
|
|
221340
|
-
tree,
|
|
221341
|
-
projectConfiguration.root,
|
|
221342
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
221343
|
-
true
|
|
221344
|
-
)) {
|
|
221345
|
-
updateOverrideInLintConfig(
|
|
221346
|
-
tree,
|
|
221347
|
-
projectConfiguration.root,
|
|
221348
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
221349
|
-
(o) => {
|
|
221350
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
221351
|
-
let ruleSeverity;
|
|
221352
|
-
let ruleOptions;
|
|
221353
|
-
if (Array.isArray(value2)) {
|
|
221354
|
-
ruleSeverity = value2[0];
|
|
221355
|
-
ruleOptions = value2[1];
|
|
221356
|
-
} else {
|
|
221357
|
-
ruleSeverity = value2 ?? "error";
|
|
221358
|
-
ruleOptions = {};
|
|
221359
|
-
}
|
|
221360
|
-
if (options.bundler === "esbuild") {
|
|
221361
|
-
ruleOptions.ignoredFiles = [
|
|
221362
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
221363
|
-
];
|
|
221364
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
221365
|
-
}
|
|
221366
|
-
return o;
|
|
221367
|
-
}
|
|
221368
|
-
);
|
|
221369
|
-
}
|
|
221370
|
-
return task;
|
|
221371
|
-
}
|
|
221372
221297
|
function getOutputPath(options) {
|
|
221373
221298
|
const parts = ["dist"];
|
|
221374
221299
|
if (options.projectRoot === ".") {
|
|
@@ -235629,7 +235554,7 @@ async function nodeLibraryGeneratorFn(tree, schema) {
|
|
|
235629
235554
|
devDependencies: {
|
|
235630
235555
|
"@types/node": typesNodeVersion
|
|
235631
235556
|
},
|
|
235632
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
235557
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
235633
235558
|
};
|
|
235634
235559
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
235635
235560
|
const { className, name, propertyName } = (0, import_devkit11.names)(
|
|
@@ -237073,7 +236998,6 @@ var getTypiaTransform = (program3, diagnostics) => (0, import_transform.default)
|
|
|
237073
236998
|
ProjectTagConstants,
|
|
237074
236999
|
YARN_LOCK_FILE,
|
|
237075
237000
|
YARN_LOCK_PATH,
|
|
237076
|
-
addLint,
|
|
237077
237001
|
addProjectTag,
|
|
237078
237002
|
applyWorkspaceExecutorTokens,
|
|
237079
237003
|
buildCargoCommand,
|