@storm-software/workspace-tools 1.202.0 → 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 +7 -0
- package/index.js +2 -91
- package/meta.json +22 -92
- package/package.json +1 -1
- package/src/base/index.js +1 -90
- package/src/base/typescript-library-generator.d.ts +1 -3
- package/src/base/typescript-library-generator.js +1 -90
- package/src/generators/browser-library/generator.js +6 -93
- package/src/generators/neutral-library/generator.js +2 -89
- package/src/generators/node-library/generator.js +2 -89
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -220722,7 +220722,6 @@ __export(workspace_tools_exports, {
|
|
|
220722
220722
|
ProjectTagConstants: () => ProjectTagConstants,
|
|
220723
220723
|
YARN_LOCK_FILE: () => YARN_LOCK_FILE,
|
|
220724
220724
|
YARN_LOCK_PATH: () => YARN_LOCK_PATH,
|
|
220725
|
-
addLint: () => addLint,
|
|
220726
220725
|
addProjectTag: () => addProjectTag,
|
|
220727
220726
|
applyWorkspaceExecutorTokens: () => applyWorkspaceExecutorTokens,
|
|
220728
220727
|
buildCargoCommand: () => buildCargoCommand,
|
|
@@ -221183,7 +221182,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
221183
221182
|
type: "github",
|
|
221184
221183
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
221185
221184
|
};
|
|
221186
|
-
let description = schema.description ?? "
|
|
221185
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
221187
221186
|
if (tree.exists("package.json")) {
|
|
221188
221187
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
221189
221188
|
if (packageJson?.repository) {
|
|
@@ -221292,96 +221291,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
221292
221291
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
221293
221292
|
});
|
|
221294
221293
|
}
|
|
221295
|
-
const lintCallback = await addLint(tree, options);
|
|
221296
|
-
tasks.push(lintCallback);
|
|
221297
221294
|
await (0, import_devkit.formatFiles)(tree);
|
|
221298
221295
|
return null;
|
|
221299
221296
|
}
|
|
221300
|
-
async function addLint(tree, options) {
|
|
221301
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
221302
|
-
const { mapLintPattern } = (
|
|
221303
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
221304
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
221305
|
-
);
|
|
221306
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
221307
|
-
const task = lintProjectGenerator(tree, {
|
|
221308
|
-
project: options.name,
|
|
221309
|
-
linter: options.linter,
|
|
221310
|
-
skipFormat: true,
|
|
221311
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
221312
|
-
unitTestRunner: options.unitTestRunner,
|
|
221313
|
-
eslintFilePatterns: [
|
|
221314
|
-
mapLintPattern(
|
|
221315
|
-
options.projectRoot,
|
|
221316
|
-
options.js ? "js" : "ts",
|
|
221317
|
-
options.rootProject
|
|
221318
|
-
)
|
|
221319
|
-
],
|
|
221320
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
221321
|
-
rootProject: options.rootProject
|
|
221322
|
-
});
|
|
221323
|
-
const {
|
|
221324
|
-
addOverrideToLintConfig,
|
|
221325
|
-
lintConfigHasOverride,
|
|
221326
|
-
isEslintConfigSupported,
|
|
221327
|
-
updateOverrideInLintConfig
|
|
221328
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
221329
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
221330
|
-
if (!isEslintConfigSupported(tree)) {
|
|
221331
|
-
return task;
|
|
221332
|
-
}
|
|
221333
|
-
addOverrideToLintConfig(tree, "", {
|
|
221334
|
-
files: ["*.json"],
|
|
221335
|
-
parser: "jsonc-eslint-parser",
|
|
221336
|
-
rules: {
|
|
221337
|
-
"@nx/dependency-checks": [
|
|
221338
|
-
"error",
|
|
221339
|
-
{
|
|
221340
|
-
"buildTargets": ["build"],
|
|
221341
|
-
"ignoredFiles": [
|
|
221342
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
221343
|
-
"{projectRoot}/jest.config.ts"
|
|
221344
|
-
],
|
|
221345
|
-
"checkMissingDependencies": true,
|
|
221346
|
-
"checkObsoleteDependencies": true,
|
|
221347
|
-
"checkVersionMismatches": false
|
|
221348
|
-
}
|
|
221349
|
-
]
|
|
221350
|
-
}
|
|
221351
|
-
});
|
|
221352
|
-
if (lintConfigHasOverride(
|
|
221353
|
-
tree,
|
|
221354
|
-
projectConfiguration.root,
|
|
221355
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
221356
|
-
true
|
|
221357
|
-
)) {
|
|
221358
|
-
updateOverrideInLintConfig(
|
|
221359
|
-
tree,
|
|
221360
|
-
projectConfiguration.root,
|
|
221361
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
221362
|
-
(o) => {
|
|
221363
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
221364
|
-
let ruleSeverity;
|
|
221365
|
-
let ruleOptions;
|
|
221366
|
-
if (Array.isArray(value2)) {
|
|
221367
|
-
ruleSeverity = value2[0];
|
|
221368
|
-
ruleOptions = value2[1];
|
|
221369
|
-
} else {
|
|
221370
|
-
ruleSeverity = value2 ?? "error";
|
|
221371
|
-
ruleOptions = {};
|
|
221372
|
-
}
|
|
221373
|
-
if (options.bundler === "esbuild") {
|
|
221374
|
-
ruleOptions.ignoredFiles = [
|
|
221375
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
221376
|
-
];
|
|
221377
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
221378
|
-
}
|
|
221379
|
-
return o;
|
|
221380
|
-
}
|
|
221381
|
-
);
|
|
221382
|
-
}
|
|
221383
|
-
return task;
|
|
221384
|
-
}
|
|
221385
221297
|
function getOutputPath(options) {
|
|
221386
221298
|
const parts = ["dist"];
|
|
221387
221299
|
if (options.projectRoot === ".") {
|
|
@@ -235642,7 +235554,7 @@ async function nodeLibraryGeneratorFn(tree, schema) {
|
|
|
235642
235554
|
devDependencies: {
|
|
235643
235555
|
"@types/node": typesNodeVersion
|
|
235644
235556
|
},
|
|
235645
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
235557
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
235646
235558
|
};
|
|
235647
235559
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
235648
235560
|
const { className, name, propertyName } = (0, import_devkit11.names)(
|
|
@@ -237086,7 +236998,6 @@ var getTypiaTransform = (program3, diagnostics) => (0, import_transform.default)
|
|
|
237086
236998
|
ProjectTagConstants,
|
|
237087
236999
|
YARN_LOCK_FILE,
|
|
237088
237000
|
YARN_LOCK_PATH,
|
|
237089
|
-
addLint,
|
|
237090
237001
|
addProjectTag,
|
|
237091
237002
|
applyWorkspaceExecutorTokens,
|
|
237092
237003
|
buildCargoCommand,
|
package/meta.json
CHANGED
|
@@ -3767,7 +3767,7 @@
|
|
|
3767
3767
|
"format": "esm"
|
|
3768
3768
|
},
|
|
3769
3769
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
3770
|
-
"bytes":
|
|
3770
|
+
"bytes": 13220,
|
|
3771
3771
|
"imports": [
|
|
3772
3772
|
{
|
|
3773
3773
|
"path": "@nx/devkit",
|
|
@@ -3798,16 +3798,6 @@
|
|
|
3798
3798
|
"path": "packages/workspace-tools/src/utils/versions.ts",
|
|
3799
3799
|
"kind": "import-statement",
|
|
3800
3800
|
"original": "../utils/versions"
|
|
3801
|
-
},
|
|
3802
|
-
{
|
|
3803
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
3804
|
-
"kind": "require-call",
|
|
3805
|
-
"external": true
|
|
3806
|
-
},
|
|
3807
|
-
{
|
|
3808
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
3809
|
-
"kind": "require-call",
|
|
3810
|
-
"external": true
|
|
3811
3801
|
}
|
|
3812
3802
|
],
|
|
3813
3803
|
"format": "esm"
|
|
@@ -23977,7 +23967,7 @@
|
|
|
23977
23967
|
"imports": []
|
|
23978
23968
|
},
|
|
23979
23969
|
"packages/workspace-tools/src/generators/node-library/generator.ts": {
|
|
23980
|
-
"bytes":
|
|
23970
|
+
"bytes": 1825,
|
|
23981
23971
|
"imports": [
|
|
23982
23972
|
{
|
|
23983
23973
|
"path": "@nx/devkit",
|
|
@@ -24631,7 +24621,7 @@
|
|
|
24631
24621
|
"format": "esm"
|
|
24632
24622
|
},
|
|
24633
24623
|
"packages/workspace-tools/src/generators/neutral-library/generator.ts": {
|
|
24634
|
-
"bytes":
|
|
24624
|
+
"bytes": 1736,
|
|
24635
24625
|
"imports": [
|
|
24636
24626
|
{
|
|
24637
24627
|
"path": "@nx/devkit",
|
|
@@ -24657,7 +24647,7 @@
|
|
|
24657
24647
|
"format": "esm"
|
|
24658
24648
|
},
|
|
24659
24649
|
"packages/workspace-tools/src/generators/browser-library/generator.ts": {
|
|
24660
|
-
"bytes":
|
|
24650
|
+
"bytes": 2289,
|
|
24661
24651
|
"imports": [
|
|
24662
24652
|
{
|
|
24663
24653
|
"path": "@nx/devkit",
|
|
@@ -27355,16 +27345,6 @@
|
|
|
27355
27345
|
"kind": "require-call",
|
|
27356
27346
|
"external": true
|
|
27357
27347
|
},
|
|
27358
|
-
{
|
|
27359
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
27360
|
-
"kind": "require-call",
|
|
27361
|
-
"external": true
|
|
27362
|
-
},
|
|
27363
|
-
{
|
|
27364
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
27365
|
-
"kind": "require-call",
|
|
27366
|
-
"external": true
|
|
27367
|
-
},
|
|
27368
27348
|
{
|
|
27369
27349
|
"path": "@nx/devkit",
|
|
27370
27350
|
"kind": "require-call",
|
|
@@ -30998,7 +30978,7 @@
|
|
|
30998
30978
|
"bytesInOutput": 16007
|
|
30999
30979
|
},
|
|
31000
30980
|
"packages/workspace-tools/index.ts": {
|
|
31001
|
-
"bytesInOutput":
|
|
30981
|
+
"bytesInOutput": 3818
|
|
31002
30982
|
},
|
|
31003
30983
|
"packages/workspace-tools/src/base/base-executor.ts": {
|
|
31004
30984
|
"bytesInOutput": 4599
|
|
@@ -31013,7 +30993,7 @@
|
|
|
31013
30993
|
"bytesInOutput": 3251
|
|
31014
30994
|
},
|
|
31015
30995
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
31016
|
-
"bytesInOutput":
|
|
30996
|
+
"bytesInOutput": 8912
|
|
31017
30997
|
},
|
|
31018
30998
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
31019
30999
|
"bytesInOutput": 582
|
|
@@ -31322,7 +31302,7 @@
|
|
|
31322
31302
|
"bytesInOutput": 648
|
|
31323
31303
|
},
|
|
31324
31304
|
"packages/workspace-tools/src/generators/node-library/generator.ts": {
|
|
31325
|
-
"bytesInOutput":
|
|
31305
|
+
"bytesInOutput": 1375
|
|
31326
31306
|
},
|
|
31327
31307
|
"packages/workspace-tools/src/generators/preset/generator.ts": {
|
|
31328
31308
|
"bytesInOutput": 8243
|
|
@@ -31355,7 +31335,7 @@
|
|
|
31355
31335
|
"bytesInOutput": 205
|
|
31356
31336
|
}
|
|
31357
31337
|
},
|
|
31358
|
-
"bytes":
|
|
31338
|
+
"bytes": 10955287
|
|
31359
31339
|
},
|
|
31360
31340
|
"dist/packages/workspace-tools/src/executors/unbuild/executor.js": {
|
|
31361
31341
|
"imports": [
|
|
@@ -60085,16 +60065,6 @@
|
|
|
60085
60065
|
"path": "@nx/js/src/generators/setup-verdaccio/generator",
|
|
60086
60066
|
"kind": "require-call",
|
|
60087
60067
|
"external": true
|
|
60088
|
-
},
|
|
60089
|
-
{
|
|
60090
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
60091
|
-
"kind": "require-call",
|
|
60092
|
-
"external": true
|
|
60093
|
-
},
|
|
60094
|
-
{
|
|
60095
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
60096
|
-
"kind": "require-call",
|
|
60097
|
-
"external": true
|
|
60098
60068
|
}
|
|
60099
60069
|
],
|
|
60100
60070
|
"exports": [],
|
|
@@ -60557,19 +60527,19 @@
|
|
|
60557
60527
|
"bytesInOutput": 1915
|
|
60558
60528
|
},
|
|
60559
60529
|
"packages/workspace-tools/src/generators/node-library/generator.ts": {
|
|
60560
|
-
"bytesInOutput":
|
|
60530
|
+
"bytesInOutput": 1571
|
|
60561
60531
|
},
|
|
60562
60532
|
"packages/workspace-tools/src/base/base-generator.ts": {
|
|
60563
60533
|
"bytesInOutput": 3245
|
|
60564
60534
|
},
|
|
60565
60535
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
60566
|
-
"bytesInOutput":
|
|
60536
|
+
"bytesInOutput": 8898
|
|
60567
60537
|
},
|
|
60568
60538
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
60569
60539
|
"bytesInOutput": 60
|
|
60570
60540
|
}
|
|
60571
60541
|
},
|
|
60572
|
-
"bytes":
|
|
60542
|
+
"bytes": 4204905
|
|
60573
60543
|
},
|
|
60574
60544
|
"dist/packages/workspace-tools/src/generators/neutral-library/generator.js": {
|
|
60575
60545
|
"imports": [
|
|
@@ -61612,16 +61582,6 @@
|
|
|
61612
61582
|
"path": "@nx/js/src/generators/setup-verdaccio/generator",
|
|
61613
61583
|
"kind": "require-call",
|
|
61614
61584
|
"external": true
|
|
61615
|
-
},
|
|
61616
|
-
{
|
|
61617
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
61618
|
-
"kind": "require-call",
|
|
61619
|
-
"external": true
|
|
61620
|
-
},
|
|
61621
|
-
{
|
|
61622
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
61623
|
-
"kind": "require-call",
|
|
61624
|
-
"external": true
|
|
61625
61585
|
}
|
|
61626
61586
|
],
|
|
61627
61587
|
"exports": [],
|
|
@@ -62084,19 +62044,19 @@
|
|
|
62084
62044
|
"bytesInOutput": 1915
|
|
62085
62045
|
},
|
|
62086
62046
|
"packages/workspace-tools/src/generators/neutral-library/generator.ts": {
|
|
62087
|
-
"bytesInOutput":
|
|
62047
|
+
"bytesInOutput": 1544
|
|
62088
62048
|
},
|
|
62089
62049
|
"packages/workspace-tools/src/base/base-generator.ts": {
|
|
62090
62050
|
"bytesInOutput": 3245
|
|
62091
62051
|
},
|
|
62092
62052
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
62093
|
-
"bytesInOutput":
|
|
62053
|
+
"bytesInOutput": 8898
|
|
62094
62054
|
},
|
|
62095
62055
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
62096
62056
|
"bytesInOutput": 27
|
|
62097
62057
|
}
|
|
62098
62058
|
},
|
|
62099
|
-
"bytes":
|
|
62059
|
+
"bytes": 4204854
|
|
62100
62060
|
},
|
|
62101
62061
|
"dist/packages/workspace-tools/src/generators/browser-library/generator.js": {
|
|
62102
62062
|
"imports": [
|
|
@@ -63139,16 +63099,6 @@
|
|
|
63139
63099
|
"path": "@nx/js/src/generators/setup-verdaccio/generator",
|
|
63140
63100
|
"kind": "require-call",
|
|
63141
63101
|
"external": true
|
|
63142
|
-
},
|
|
63143
|
-
{
|
|
63144
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
63145
|
-
"kind": "require-call",
|
|
63146
|
-
"external": true
|
|
63147
|
-
},
|
|
63148
|
-
{
|
|
63149
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
63150
|
-
"kind": "require-call",
|
|
63151
|
-
"external": true
|
|
63152
63102
|
}
|
|
63153
63103
|
],
|
|
63154
63104
|
"exports": [],
|
|
@@ -63611,19 +63561,19 @@
|
|
|
63611
63561
|
"bytesInOutput": 1915
|
|
63612
63562
|
},
|
|
63613
63563
|
"packages/workspace-tools/src/generators/browser-library/generator.ts": {
|
|
63614
|
-
"bytesInOutput":
|
|
63564
|
+
"bytesInOutput": 2089
|
|
63615
63565
|
},
|
|
63616
63566
|
"packages/workspace-tools/src/base/base-generator.ts": {
|
|
63617
63567
|
"bytesInOutput": 3245
|
|
63618
63568
|
},
|
|
63619
63569
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
63620
|
-
"bytesInOutput":
|
|
63570
|
+
"bytesInOutput": 8898
|
|
63621
63571
|
},
|
|
63622
63572
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
63623
63573
|
"bytesInOutput": 27
|
|
63624
63574
|
}
|
|
63625
63575
|
},
|
|
63626
|
-
"bytes":
|
|
63576
|
+
"bytes": 4205399
|
|
63627
63577
|
},
|
|
63628
63578
|
"dist/packages/workspace-tools/src/generators/release-version/generator.js": {
|
|
63629
63579
|
"imports": [
|
|
@@ -72591,16 +72541,6 @@
|
|
|
72591
72541
|
"path": "@nx/js/src/generators/setup-verdaccio/generator",
|
|
72592
72542
|
"kind": "require-call",
|
|
72593
72543
|
"external": true
|
|
72594
|
-
},
|
|
72595
|
-
{
|
|
72596
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
72597
|
-
"kind": "require-call",
|
|
72598
|
-
"external": true
|
|
72599
|
-
},
|
|
72600
|
-
{
|
|
72601
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
72602
|
-
"kind": "require-call",
|
|
72603
|
-
"external": true
|
|
72604
72544
|
}
|
|
72605
72545
|
],
|
|
72606
72546
|
"exports": [],
|
|
@@ -73063,7 +73003,7 @@
|
|
|
73063
73003
|
"bytesInOutput": 1915
|
|
73064
73004
|
},
|
|
73065
73005
|
"packages/workspace-tools/src/base/index.ts": {
|
|
73066
|
-
"bytesInOutput":
|
|
73006
|
+
"bytesInOutput": 394
|
|
73067
73007
|
},
|
|
73068
73008
|
"packages/workspace-tools/src/base/base-executor.ts": {
|
|
73069
73009
|
"bytesInOutput": 4574
|
|
@@ -73075,13 +73015,13 @@
|
|
|
73075
73015
|
"bytesInOutput": 3245
|
|
73076
73016
|
},
|
|
73077
73017
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
73078
|
-
"bytesInOutput":
|
|
73018
|
+
"bytesInOutput": 8898
|
|
73079
73019
|
},
|
|
73080
73020
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
73081
73021
|
"bytesInOutput": 27
|
|
73082
73022
|
}
|
|
73083
73023
|
},
|
|
73084
|
-
"bytes":
|
|
73024
|
+
"bytes": 4210151
|
|
73085
73025
|
},
|
|
73086
73026
|
"dist/packages/workspace-tools/src/base/base-executor.js": {
|
|
73087
73027
|
"imports": [
|
|
@@ -76068,29 +76008,19 @@
|
|
|
76068
76008
|
"path": "@nx/js/src/generators/setup-verdaccio/generator",
|
|
76069
76009
|
"kind": "require-call",
|
|
76070
76010
|
"external": true
|
|
76071
|
-
},
|
|
76072
|
-
{
|
|
76073
|
-
"path": "@nx/eslint/src/generators/lint-project/lint-project",
|
|
76074
|
-
"kind": "require-call",
|
|
76075
|
-
"external": true
|
|
76076
|
-
},
|
|
76077
|
-
{
|
|
76078
|
-
"path": "@nx/eslint/src/generators/utils/eslint-file",
|
|
76079
|
-
"kind": "require-call",
|
|
76080
|
-
"external": true
|
|
76081
76011
|
}
|
|
76082
76012
|
],
|
|
76083
76013
|
"exports": [],
|
|
76084
76014
|
"entryPoint": "packages/workspace-tools/src/base/typescript-library-generator.ts",
|
|
76085
76015
|
"inputs": {
|
|
76086
76016
|
"packages/workspace-tools/src/base/typescript-library-generator.ts": {
|
|
76087
|
-
"bytesInOutput":
|
|
76017
|
+
"bytesInOutput": 9276
|
|
76088
76018
|
},
|
|
76089
76019
|
"packages/workspace-tools/src/utils/versions.ts": {
|
|
76090
76020
|
"bytesInOutput": 27
|
|
76091
76021
|
}
|
|
76092
76022
|
},
|
|
76093
|
-
"bytes":
|
|
76023
|
+
"bytes": 11064
|
|
76094
76024
|
}
|
|
76095
76025
|
}
|
|
76096
76026
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.202.
|
|
3
|
+
"version": "1.202.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
6
6
|
"repository": {
|
package/src/base/index.js
CHANGED
|
@@ -67611,7 +67611,6 @@ var init_src2 = __esm({
|
|
|
67611
67611
|
// packages/workspace-tools/src/base/index.ts
|
|
67612
67612
|
var base_exports = {};
|
|
67613
67613
|
__export(base_exports, {
|
|
67614
|
-
addLint: () => addLint,
|
|
67615
67614
|
createProjectTsConfigJson: () => createProjectTsConfigJson,
|
|
67616
67615
|
getOutputPath: () => getOutputPath,
|
|
67617
67616
|
normalizeOptions: () => normalizeOptions,
|
|
@@ -67993,7 +67992,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67993
67992
|
type: "github",
|
|
67994
67993
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67995
67994
|
};
|
|
67996
|
-
let description = schema.description ?? "
|
|
67995
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67997
67996
|
if (tree.exists("package.json")) {
|
|
67998
67997
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67999
67998
|
if (packageJson?.repository) {
|
|
@@ -68102,96 +68101,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
68102
68101
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
68103
68102
|
});
|
|
68104
68103
|
}
|
|
68105
|
-
const lintCallback = await addLint(tree, options);
|
|
68106
|
-
tasks.push(lintCallback);
|
|
68107
68104
|
await (0, import_devkit.formatFiles)(tree);
|
|
68108
68105
|
return null;
|
|
68109
68106
|
}
|
|
68110
|
-
async function addLint(tree, options) {
|
|
68111
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
68112
|
-
const { mapLintPattern } = (
|
|
68113
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
68114
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
68115
|
-
);
|
|
68116
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
68117
|
-
const task = lintProjectGenerator(tree, {
|
|
68118
|
-
project: options.name,
|
|
68119
|
-
linter: options.linter,
|
|
68120
|
-
skipFormat: true,
|
|
68121
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
68122
|
-
unitTestRunner: options.unitTestRunner,
|
|
68123
|
-
eslintFilePatterns: [
|
|
68124
|
-
mapLintPattern(
|
|
68125
|
-
options.projectRoot,
|
|
68126
|
-
options.js ? "js" : "ts",
|
|
68127
|
-
options.rootProject
|
|
68128
|
-
)
|
|
68129
|
-
],
|
|
68130
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
68131
|
-
rootProject: options.rootProject
|
|
68132
|
-
});
|
|
68133
|
-
const {
|
|
68134
|
-
addOverrideToLintConfig,
|
|
68135
|
-
lintConfigHasOverride,
|
|
68136
|
-
isEslintConfigSupported,
|
|
68137
|
-
updateOverrideInLintConfig
|
|
68138
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
68139
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
68140
|
-
if (!isEslintConfigSupported(tree)) {
|
|
68141
|
-
return task;
|
|
68142
|
-
}
|
|
68143
|
-
addOverrideToLintConfig(tree, "", {
|
|
68144
|
-
files: ["*.json"],
|
|
68145
|
-
parser: "jsonc-eslint-parser",
|
|
68146
|
-
rules: {
|
|
68147
|
-
"@nx/dependency-checks": [
|
|
68148
|
-
"error",
|
|
68149
|
-
{
|
|
68150
|
-
"buildTargets": ["build"],
|
|
68151
|
-
"ignoredFiles": [
|
|
68152
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
68153
|
-
"{projectRoot}/jest.config.ts"
|
|
68154
|
-
],
|
|
68155
|
-
"checkMissingDependencies": true,
|
|
68156
|
-
"checkObsoleteDependencies": true,
|
|
68157
|
-
"checkVersionMismatches": false
|
|
68158
|
-
}
|
|
68159
|
-
]
|
|
68160
|
-
}
|
|
68161
|
-
});
|
|
68162
|
-
if (lintConfigHasOverride(
|
|
68163
|
-
tree,
|
|
68164
|
-
projectConfiguration.root,
|
|
68165
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
68166
|
-
true
|
|
68167
|
-
)) {
|
|
68168
|
-
updateOverrideInLintConfig(
|
|
68169
|
-
tree,
|
|
68170
|
-
projectConfiguration.root,
|
|
68171
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
68172
|
-
(o) => {
|
|
68173
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
68174
|
-
let ruleSeverity;
|
|
68175
|
-
let ruleOptions;
|
|
68176
|
-
if (Array.isArray(value2)) {
|
|
68177
|
-
ruleSeverity = value2[0];
|
|
68178
|
-
ruleOptions = value2[1];
|
|
68179
|
-
} else {
|
|
68180
|
-
ruleSeverity = value2 ?? "error";
|
|
68181
|
-
ruleOptions = {};
|
|
68182
|
-
}
|
|
68183
|
-
if (options.bundler === "esbuild") {
|
|
68184
|
-
ruleOptions.ignoredFiles = [
|
|
68185
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
68186
|
-
];
|
|
68187
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
68188
|
-
}
|
|
68189
|
-
return o;
|
|
68190
|
-
}
|
|
68191
|
-
);
|
|
68192
|
-
}
|
|
68193
|
-
return task;
|
|
68194
|
-
}
|
|
68195
68107
|
function getOutputPath(options) {
|
|
68196
68108
|
const parts = ["dist"];
|
|
68197
68109
|
if (options.projectRoot === ".") {
|
|
@@ -68287,7 +68199,6 @@ async function normalizeOptions(tree, options) {
|
|
|
68287
68199
|
}
|
|
68288
68200
|
// Annotate the CommonJS export names for ESM import in node:
|
|
68289
68201
|
0 && (module.exports = {
|
|
68290
|
-
addLint,
|
|
68291
68202
|
createProjectTsConfigJson,
|
|
68292
68203
|
getOutputPath,
|
|
68293
68204
|
normalizeOptions,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type { AddLintOptions } from "@nx/js/src/generators/library/library";
|
|
1
|
+
import { type Tree } from "@nx/devkit";
|
|
3
2
|
import type { TypeScriptLibraryGeneratorNormalizedSchema, TypeScriptLibraryGeneratorSchema } from "../../declarations.d";
|
|
4
3
|
export declare function typeScriptLibraryGeneratorFn(tree: Tree, schema: TypeScriptLibraryGeneratorSchema): Promise<null>;
|
|
5
|
-
export declare function addLint(tree: Tree, options: AddLintOptions): Promise<GeneratorCallback>;
|
|
6
4
|
export declare function getOutputPath(options: TypeScriptLibraryGeneratorNormalizedSchema): string;
|
|
7
5
|
export declare function createProjectTsConfigJson(tree: Tree, options: TypeScriptLibraryGeneratorNormalizedSchema): void;
|
|
8
6
|
export declare function normalizeOptions(tree: Tree, options: TypeScriptLibraryGeneratorSchema): Promise<TypeScriptLibraryGeneratorNormalizedSchema>;
|
|
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// packages/workspace-tools/src/base/typescript-library-generator.ts
|
|
30
30
|
var typescript_library_generator_exports = {};
|
|
31
31
|
__export(typescript_library_generator_exports, {
|
|
32
|
-
addLint: () => addLint,
|
|
33
32
|
createProjectTsConfigJson: () => createProjectTsConfigJson,
|
|
34
33
|
getOutputPath: () => getOutputPath,
|
|
35
34
|
normalizeOptions: () => normalizeOptions,
|
|
@@ -120,7 +119,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
120
119
|
type: "github",
|
|
121
120
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
122
121
|
};
|
|
123
|
-
let description = schema.description ?? "
|
|
122
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
124
123
|
if (tree.exists("package.json")) {
|
|
125
124
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
126
125
|
if (packageJson?.repository) {
|
|
@@ -229,96 +228,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
229
228
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
230
229
|
});
|
|
231
230
|
}
|
|
232
|
-
const lintCallback = await addLint(tree, options);
|
|
233
|
-
tasks.push(lintCallback);
|
|
234
231
|
await (0, import_devkit.formatFiles)(tree);
|
|
235
232
|
return null;
|
|
236
233
|
}
|
|
237
|
-
async function addLint(tree, options) {
|
|
238
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
239
|
-
const { mapLintPattern } = (
|
|
240
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
241
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
242
|
-
);
|
|
243
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
244
|
-
const task = lintProjectGenerator(tree, {
|
|
245
|
-
project: options.name,
|
|
246
|
-
linter: options.linter,
|
|
247
|
-
skipFormat: true,
|
|
248
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
249
|
-
unitTestRunner: options.unitTestRunner,
|
|
250
|
-
eslintFilePatterns: [
|
|
251
|
-
mapLintPattern(
|
|
252
|
-
options.projectRoot,
|
|
253
|
-
options.js ? "js" : "ts",
|
|
254
|
-
options.rootProject
|
|
255
|
-
)
|
|
256
|
-
],
|
|
257
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
258
|
-
rootProject: options.rootProject
|
|
259
|
-
});
|
|
260
|
-
const {
|
|
261
|
-
addOverrideToLintConfig,
|
|
262
|
-
lintConfigHasOverride,
|
|
263
|
-
isEslintConfigSupported,
|
|
264
|
-
updateOverrideInLintConfig
|
|
265
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
266
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
267
|
-
if (!isEslintConfigSupported(tree)) {
|
|
268
|
-
return task;
|
|
269
|
-
}
|
|
270
|
-
addOverrideToLintConfig(tree, "", {
|
|
271
|
-
files: ["*.json"],
|
|
272
|
-
parser: "jsonc-eslint-parser",
|
|
273
|
-
rules: {
|
|
274
|
-
"@nx/dependency-checks": [
|
|
275
|
-
"error",
|
|
276
|
-
{
|
|
277
|
-
"buildTargets": ["build"],
|
|
278
|
-
"ignoredFiles": [
|
|
279
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
280
|
-
"{projectRoot}/jest.config.ts"
|
|
281
|
-
],
|
|
282
|
-
"checkMissingDependencies": true,
|
|
283
|
-
"checkObsoleteDependencies": true,
|
|
284
|
-
"checkVersionMismatches": false
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
if (lintConfigHasOverride(
|
|
290
|
-
tree,
|
|
291
|
-
projectConfiguration.root,
|
|
292
|
-
(o) => Array.isArray(o.files) ? o.files.some((f) => f.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
293
|
-
true
|
|
294
|
-
)) {
|
|
295
|
-
updateOverrideInLintConfig(
|
|
296
|
-
tree,
|
|
297
|
-
projectConfiguration.root,
|
|
298
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
299
|
-
(o) => {
|
|
300
|
-
const value = o.rules["@nx/dependency-checks"];
|
|
301
|
-
let ruleSeverity;
|
|
302
|
-
let ruleOptions;
|
|
303
|
-
if (Array.isArray(value)) {
|
|
304
|
-
ruleSeverity = value[0];
|
|
305
|
-
ruleOptions = value[1];
|
|
306
|
-
} else {
|
|
307
|
-
ruleSeverity = value ?? "error";
|
|
308
|
-
ruleOptions = {};
|
|
309
|
-
}
|
|
310
|
-
if (options.bundler === "esbuild") {
|
|
311
|
-
ruleOptions.ignoredFiles = [
|
|
312
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
313
|
-
];
|
|
314
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
315
|
-
}
|
|
316
|
-
return o;
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
return task;
|
|
321
|
-
}
|
|
322
234
|
function getOutputPath(options) {
|
|
323
235
|
const parts = ["dist"];
|
|
324
236
|
if (options.projectRoot === ".") {
|
|
@@ -414,7 +326,6 @@ async function normalizeOptions(tree, options) {
|
|
|
414
326
|
}
|
|
415
327
|
// Annotate the CommonJS export names for ESM import in node:
|
|
416
328
|
0 && (module.exports = {
|
|
417
|
-
addLint,
|
|
418
329
|
createProjectTsConfigJson,
|
|
419
330
|
getOutputPath,
|
|
420
331
|
normalizeOptions,
|
|
@@ -67798,7 +67798,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67798
67798
|
type: "github",
|
|
67799
67799
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67800
67800
|
};
|
|
67801
|
-
let description = schema.description ?? "
|
|
67801
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67802
67802
|
if (tree.exists("package.json")) {
|
|
67803
67803
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67804
67804
|
if (packageJson?.repository) {
|
|
@@ -67907,96 +67907,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67907
67907
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67908
67908
|
});
|
|
67909
67909
|
}
|
|
67910
|
-
const lintCallback = await addLint(tree, options);
|
|
67911
|
-
tasks.push(lintCallback);
|
|
67912
67910
|
await (0, import_devkit.formatFiles)(tree);
|
|
67913
67911
|
return null;
|
|
67914
67912
|
}
|
|
67915
|
-
async function addLint(tree, options) {
|
|
67916
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67917
|
-
const { mapLintPattern } = (
|
|
67918
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67919
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67920
|
-
);
|
|
67921
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67922
|
-
const task = lintProjectGenerator(tree, {
|
|
67923
|
-
project: options.name,
|
|
67924
|
-
linter: options.linter,
|
|
67925
|
-
skipFormat: true,
|
|
67926
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67927
|
-
unitTestRunner: options.unitTestRunner,
|
|
67928
|
-
eslintFilePatterns: [
|
|
67929
|
-
mapLintPattern(
|
|
67930
|
-
options.projectRoot,
|
|
67931
|
-
options.js ? "js" : "ts",
|
|
67932
|
-
options.rootProject
|
|
67933
|
-
)
|
|
67934
|
-
],
|
|
67935
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67936
|
-
rootProject: options.rootProject
|
|
67937
|
-
});
|
|
67938
|
-
const {
|
|
67939
|
-
addOverrideToLintConfig,
|
|
67940
|
-
lintConfigHasOverride,
|
|
67941
|
-
isEslintConfigSupported,
|
|
67942
|
-
updateOverrideInLintConfig
|
|
67943
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67944
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67945
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67946
|
-
return task;
|
|
67947
|
-
}
|
|
67948
|
-
addOverrideToLintConfig(tree, "", {
|
|
67949
|
-
files: ["*.json"],
|
|
67950
|
-
parser: "jsonc-eslint-parser",
|
|
67951
|
-
rules: {
|
|
67952
|
-
"@nx/dependency-checks": [
|
|
67953
|
-
"error",
|
|
67954
|
-
{
|
|
67955
|
-
"buildTargets": ["build"],
|
|
67956
|
-
"ignoredFiles": [
|
|
67957
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67958
|
-
"{projectRoot}/jest.config.ts"
|
|
67959
|
-
],
|
|
67960
|
-
"checkMissingDependencies": true,
|
|
67961
|
-
"checkObsoleteDependencies": true,
|
|
67962
|
-
"checkVersionMismatches": false
|
|
67963
|
-
}
|
|
67964
|
-
]
|
|
67965
|
-
}
|
|
67966
|
-
});
|
|
67967
|
-
if (lintConfigHasOverride(
|
|
67968
|
-
tree,
|
|
67969
|
-
projectConfiguration.root,
|
|
67970
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67971
|
-
true
|
|
67972
|
-
)) {
|
|
67973
|
-
updateOverrideInLintConfig(
|
|
67974
|
-
tree,
|
|
67975
|
-
projectConfiguration.root,
|
|
67976
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67977
|
-
(o) => {
|
|
67978
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67979
|
-
let ruleSeverity;
|
|
67980
|
-
let ruleOptions;
|
|
67981
|
-
if (Array.isArray(value2)) {
|
|
67982
|
-
ruleSeverity = value2[0];
|
|
67983
|
-
ruleOptions = value2[1];
|
|
67984
|
-
} else {
|
|
67985
|
-
ruleSeverity = value2 ?? "error";
|
|
67986
|
-
ruleOptions = {};
|
|
67987
|
-
}
|
|
67988
|
-
if (options.bundler === "esbuild") {
|
|
67989
|
-
ruleOptions.ignoredFiles = [
|
|
67990
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67991
|
-
];
|
|
67992
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67993
|
-
}
|
|
67994
|
-
return o;
|
|
67995
|
-
}
|
|
67996
|
-
);
|
|
67997
|
-
}
|
|
67998
|
-
return task;
|
|
67999
|
-
}
|
|
68000
67913
|
function getOutputPath(options) {
|
|
68001
67914
|
const parts = ["dist"];
|
|
68002
67915
|
if (options.projectRoot === ".") {
|
|
@@ -68098,12 +68011,12 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68098
68011
|
...schema,
|
|
68099
68012
|
platform: "browser",
|
|
68100
68013
|
devDependencies: {
|
|
68101
|
-
"@types/react": "^18.
|
|
68102
|
-
"@types/react-dom": "^18.
|
|
68014
|
+
"@types/react": "^18.3.6",
|
|
68015
|
+
"@types/react-dom": "^18.3.0"
|
|
68103
68016
|
},
|
|
68104
68017
|
peerDependencies: {
|
|
68105
|
-
react: "^18.
|
|
68106
|
-
"react-dom": "^18.
|
|
68018
|
+
react: "^18.3.0",
|
|
68019
|
+
"react-dom": "^18.3.0",
|
|
68107
68020
|
"react-native": "*"
|
|
68108
68021
|
},
|
|
68109
68022
|
peerDependenciesMeta: {
|
|
@@ -68114,7 +68027,7 @@ async function browserLibraryGeneratorFn(tree, schema) {
|
|
|
68114
68027
|
optional: true
|
|
68115
68028
|
}
|
|
68116
68029
|
},
|
|
68117
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68030
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68118
68031
|
};
|
|
68119
68032
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68120
68033
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
@@ -67798,7 +67798,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67798
67798
|
type: "github",
|
|
67799
67799
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67800
67800
|
};
|
|
67801
|
-
let description = schema.description ?? "
|
|
67801
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67802
67802
|
if (tree.exists("package.json")) {
|
|
67803
67803
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67804
67804
|
if (packageJson?.repository) {
|
|
@@ -67907,96 +67907,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67907
67907
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67908
67908
|
});
|
|
67909
67909
|
}
|
|
67910
|
-
const lintCallback = await addLint(tree, options);
|
|
67911
|
-
tasks.push(lintCallback);
|
|
67912
67910
|
await (0, import_devkit.formatFiles)(tree);
|
|
67913
67911
|
return null;
|
|
67914
67912
|
}
|
|
67915
|
-
async function addLint(tree, options) {
|
|
67916
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67917
|
-
const { mapLintPattern } = (
|
|
67918
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67919
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67920
|
-
);
|
|
67921
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67922
|
-
const task = lintProjectGenerator(tree, {
|
|
67923
|
-
project: options.name,
|
|
67924
|
-
linter: options.linter,
|
|
67925
|
-
skipFormat: true,
|
|
67926
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67927
|
-
unitTestRunner: options.unitTestRunner,
|
|
67928
|
-
eslintFilePatterns: [
|
|
67929
|
-
mapLintPattern(
|
|
67930
|
-
options.projectRoot,
|
|
67931
|
-
options.js ? "js" : "ts",
|
|
67932
|
-
options.rootProject
|
|
67933
|
-
)
|
|
67934
|
-
],
|
|
67935
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67936
|
-
rootProject: options.rootProject
|
|
67937
|
-
});
|
|
67938
|
-
const {
|
|
67939
|
-
addOverrideToLintConfig,
|
|
67940
|
-
lintConfigHasOverride,
|
|
67941
|
-
isEslintConfigSupported,
|
|
67942
|
-
updateOverrideInLintConfig
|
|
67943
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67944
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67945
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67946
|
-
return task;
|
|
67947
|
-
}
|
|
67948
|
-
addOverrideToLintConfig(tree, "", {
|
|
67949
|
-
files: ["*.json"],
|
|
67950
|
-
parser: "jsonc-eslint-parser",
|
|
67951
|
-
rules: {
|
|
67952
|
-
"@nx/dependency-checks": [
|
|
67953
|
-
"error",
|
|
67954
|
-
{
|
|
67955
|
-
"buildTargets": ["build"],
|
|
67956
|
-
"ignoredFiles": [
|
|
67957
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67958
|
-
"{projectRoot}/jest.config.ts"
|
|
67959
|
-
],
|
|
67960
|
-
"checkMissingDependencies": true,
|
|
67961
|
-
"checkObsoleteDependencies": true,
|
|
67962
|
-
"checkVersionMismatches": false
|
|
67963
|
-
}
|
|
67964
|
-
]
|
|
67965
|
-
}
|
|
67966
|
-
});
|
|
67967
|
-
if (lintConfigHasOverride(
|
|
67968
|
-
tree,
|
|
67969
|
-
projectConfiguration.root,
|
|
67970
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67971
|
-
true
|
|
67972
|
-
)) {
|
|
67973
|
-
updateOverrideInLintConfig(
|
|
67974
|
-
tree,
|
|
67975
|
-
projectConfiguration.root,
|
|
67976
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67977
|
-
(o) => {
|
|
67978
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67979
|
-
let ruleSeverity;
|
|
67980
|
-
let ruleOptions;
|
|
67981
|
-
if (Array.isArray(value2)) {
|
|
67982
|
-
ruleSeverity = value2[0];
|
|
67983
|
-
ruleOptions = value2[1];
|
|
67984
|
-
} else {
|
|
67985
|
-
ruleSeverity = value2 ?? "error";
|
|
67986
|
-
ruleOptions = {};
|
|
67987
|
-
}
|
|
67988
|
-
if (options.bundler === "esbuild") {
|
|
67989
|
-
ruleOptions.ignoredFiles = [
|
|
67990
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67991
|
-
];
|
|
67992
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67993
|
-
}
|
|
67994
|
-
return o;
|
|
67995
|
-
}
|
|
67996
|
-
);
|
|
67997
|
-
}
|
|
67998
|
-
return task;
|
|
67999
|
-
}
|
|
68000
67913
|
function getOutputPath(options) {
|
|
68001
67914
|
const parts = ["dist"];
|
|
68002
67915
|
if (options.projectRoot === ".") {
|
|
@@ -68098,7 +68011,7 @@ async function neutralLibraryGeneratorFn(tree, schema) {
|
|
|
68098
68011
|
...schema,
|
|
68099
68012
|
platform: "neutral",
|
|
68100
68013
|
devDependencies: {},
|
|
68101
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68014
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68102
68015
|
};
|
|
68103
68016
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68104
68017
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
@@ -67799,7 +67799,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67799
67799
|
type: "github",
|
|
67800
67800
|
url: "https://github.com/storm-software/storm-stack.git"
|
|
67801
67801
|
};
|
|
67802
|
-
let description = schema.description ?? "
|
|
67802
|
+
let description = schema.description ?? "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
67803
67803
|
if (tree.exists("package.json")) {
|
|
67804
67804
|
const packageJson = (0, import_devkit.readJson)(tree, "package.json");
|
|
67805
67805
|
if (packageJson?.repository) {
|
|
@@ -67908,96 +67908,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
67908
67908
|
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
67909
67909
|
});
|
|
67910
67910
|
}
|
|
67911
|
-
const lintCallback = await addLint(tree, options);
|
|
67912
|
-
tasks.push(lintCallback);
|
|
67913
67911
|
await (0, import_devkit.formatFiles)(tree);
|
|
67914
67912
|
return null;
|
|
67915
67913
|
}
|
|
67916
|
-
async function addLint(tree, options) {
|
|
67917
|
-
const { lintProjectGenerator } = (0, import_devkit.ensurePackage)("@nx/eslint", nxVersion);
|
|
67918
|
-
const { mapLintPattern } = (
|
|
67919
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67920
|
-
require("@nx/eslint/src/generators/lint-project/lint-project")
|
|
67921
|
-
);
|
|
67922
|
-
const projectConfiguration = (0, import_devkit.readProjectConfiguration)(tree, options.name);
|
|
67923
|
-
const task = lintProjectGenerator(tree, {
|
|
67924
|
-
project: options.name,
|
|
67925
|
-
linter: options.linter,
|
|
67926
|
-
skipFormat: true,
|
|
67927
|
-
tsConfigPaths: [(0, import_devkit.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
67928
|
-
unitTestRunner: options.unitTestRunner,
|
|
67929
|
-
eslintFilePatterns: [
|
|
67930
|
-
mapLintPattern(
|
|
67931
|
-
options.projectRoot,
|
|
67932
|
-
options.js ? "js" : "ts",
|
|
67933
|
-
options.rootProject
|
|
67934
|
-
)
|
|
67935
|
-
],
|
|
67936
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
67937
|
-
rootProject: options.rootProject
|
|
67938
|
-
});
|
|
67939
|
-
const {
|
|
67940
|
-
addOverrideToLintConfig,
|
|
67941
|
-
lintConfigHasOverride,
|
|
67942
|
-
isEslintConfigSupported,
|
|
67943
|
-
updateOverrideInLintConfig
|
|
67944
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
67945
|
-
} = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
67946
|
-
if (!isEslintConfigSupported(tree)) {
|
|
67947
|
-
return task;
|
|
67948
|
-
}
|
|
67949
|
-
addOverrideToLintConfig(tree, "", {
|
|
67950
|
-
files: ["*.json"],
|
|
67951
|
-
parser: "jsonc-eslint-parser",
|
|
67952
|
-
rules: {
|
|
67953
|
-
"@nx/dependency-checks": [
|
|
67954
|
-
"error",
|
|
67955
|
-
{
|
|
67956
|
-
"buildTargets": ["build"],
|
|
67957
|
-
"ignoredFiles": [
|
|
67958
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}",
|
|
67959
|
-
"{projectRoot}/jest.config.ts"
|
|
67960
|
-
],
|
|
67961
|
-
"checkMissingDependencies": true,
|
|
67962
|
-
"checkObsoleteDependencies": true,
|
|
67963
|
-
"checkVersionMismatches": false
|
|
67964
|
-
}
|
|
67965
|
-
]
|
|
67966
|
-
}
|
|
67967
|
-
});
|
|
67968
|
-
if (lintConfigHasOverride(
|
|
67969
|
-
tree,
|
|
67970
|
-
projectConfiguration.root,
|
|
67971
|
-
(o) => Array.isArray(o.files) ? o.files.some((f2) => f2.match(/\.json$/)) : !!o.files?.match(/\.json$/),
|
|
67972
|
-
true
|
|
67973
|
-
)) {
|
|
67974
|
-
updateOverrideInLintConfig(
|
|
67975
|
-
tree,
|
|
67976
|
-
projectConfiguration.root,
|
|
67977
|
-
(o) => o.rules?.["@nx/dependency-checks"],
|
|
67978
|
-
(o) => {
|
|
67979
|
-
const value2 = o.rules["@nx/dependency-checks"];
|
|
67980
|
-
let ruleSeverity;
|
|
67981
|
-
let ruleOptions;
|
|
67982
|
-
if (Array.isArray(value2)) {
|
|
67983
|
-
ruleSeverity = value2[0];
|
|
67984
|
-
ruleOptions = value2[1];
|
|
67985
|
-
} else {
|
|
67986
|
-
ruleSeverity = value2 ?? "error";
|
|
67987
|
-
ruleOptions = {};
|
|
67988
|
-
}
|
|
67989
|
-
if (options.bundler === "esbuild") {
|
|
67990
|
-
ruleOptions.ignoredFiles = [
|
|
67991
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
67992
|
-
];
|
|
67993
|
-
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
67994
|
-
}
|
|
67995
|
-
return o;
|
|
67996
|
-
}
|
|
67997
|
-
);
|
|
67998
|
-
}
|
|
67999
|
-
return task;
|
|
68000
|
-
}
|
|
68001
67914
|
function getOutputPath(options) {
|
|
68002
67915
|
const parts = ["dist"];
|
|
68003
67916
|
if (options.projectRoot === ".") {
|
|
@@ -68101,7 +68014,7 @@ async function nodeLibraryGeneratorFn(tree, schema) {
|
|
|
68101
68014
|
devDependencies: {
|
|
68102
68015
|
"@types/node": typesNodeVersion
|
|
68103
68016
|
},
|
|
68104
|
-
buildExecutor: "@storm-software/workspace-tools:
|
|
68017
|
+
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
68105
68018
|
};
|
|
68106
68019
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
68107
68020
|
const { className, name, propertyName } = (0, import_devkit2.names)(
|