@storm-software/workspace-tools 1.247.12 → 1.248.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/config/base.json +29 -19
- package/dist/{chunk-KF7N7257.mjs → chunk-27EDH7NY.mjs} +1 -1
- package/dist/{chunk-WC2TNJLN.mjs → chunk-2KNHEXJQ.mjs} +2 -2
- package/dist/{chunk-YYGYJ6RD.js → chunk-3YC7YXGQ.js} +25 -25
- package/dist/{chunk-3OROMSFD.js → chunk-4AMZUCHL.js} +2 -2
- package/dist/{chunk-CJDYI6SP.js → chunk-4SJW3KRV.js} +2 -2
- package/dist/{chunk-KO35WWRE.mjs → chunk-57LRWY5U.mjs} +1 -1
- package/dist/{chunk-KHNJH7JQ.js → chunk-5O6RWCBQ.js} +2 -2
- package/dist/{chunk-QOUVCULF.mjs → chunk-7AXJ27FU.mjs} +1 -1
- package/dist/{chunk-QYC3WESC.mjs → chunk-7GW75RON.mjs} +1 -1
- package/dist/{chunk-IKU6KFBV.mjs → chunk-7H4PXXWW.mjs} +2 -2
- package/dist/{chunk-SI24L44V.mjs → chunk-APSDUSBR.mjs} +1 -1
- package/dist/{chunk-ZDHYVC5E.js → chunk-DCJXS5XI.js} +23 -23
- package/dist/{chunk-76D4P6YQ.js → chunk-FMOIAVZV.js} +31 -31
- package/dist/{chunk-XI7X3WOB.js → chunk-G7HTMCQK.js} +2 -2
- package/dist/{chunk-EDVXB4EP.js → chunk-JIQDXVMU.js} +22 -1
- package/dist/{chunk-V6H25SQW.mjs → chunk-JRGZWAZG.mjs} +1 -1
- package/dist/{chunk-Q3VF5VUQ.js → chunk-JXSTSZSG.js} +5 -5
- package/dist/{chunk-HGLKHBCY.js → chunk-K434EGC4.js} +2 -2
- package/dist/{chunk-OMDJO7Q6.js → chunk-KJPUYQEZ.js} +9 -9
- package/dist/{chunk-GDLIB6OQ.mjs → chunk-KM47X5XW.mjs} +2 -2
- package/dist/{chunk-G3UMUILK.mjs → chunk-N2P34ZQV.mjs} +10 -10
- package/dist/{chunk-VFASKAEJ.js → chunk-NXGJNB3C.js} +5 -5
- package/dist/{chunk-MNDO5WKT.mjs → chunk-OA6GD45B.mjs} +3 -4
- package/dist/{chunk-FZ7XOB5X.mjs → chunk-P4ZEGEQX.mjs} +1 -1
- package/dist/{chunk-BJK4LIZW.js → chunk-Q4YG53DV.js} +20 -20
- package/dist/{chunk-7DDXDUF3.mjs → chunk-Q6OBRMZG.mjs} +1 -1
- package/dist/{chunk-LV7XJZRR.mjs → chunk-QDZUYDVM.mjs} +22 -22
- package/dist/{chunk-HYTPWYZI.js → chunk-QKALACBC.js} +2 -2
- package/dist/{chunk-IDQTSO3Z.js → chunk-R2NBU264.js} +15 -15
- package/dist/{chunk-TKBY73FG.mjs → chunk-R63XBQKW.mjs} +25 -25
- package/dist/{chunk-WSYDQJ6Y.mjs → chunk-RSFH5OLL.mjs} +1 -1
- package/dist/{chunk-KCTEA3CC.mjs → chunk-S73S6XCY.mjs} +2 -2
- package/dist/{chunk-NNGBY52Z.js → chunk-SJNJ6TCD.js} +2 -2
- package/dist/{chunk-HLIO3W3D.mjs → chunk-TNAEFYVH.mjs} +1 -2
- package/dist/{chunk-NIO6FDIN.js → chunk-TSVTG657.js} +15 -15
- package/dist/{chunk-C773DCF3.mjs → chunk-UF3YMASN.mjs} +3 -3
- package/dist/{chunk-JQSRI7HM.js → chunk-WDK2FJUH.js} +2 -2
- package/dist/{chunk-GDHD4LIX.js → chunk-WGTIKGAE.js} +4 -4
- package/dist/{chunk-5JXVOE56.mjs → chunk-WK734NEX.mjs} +22 -1
- package/dist/{chunk-L7CTAQFR.js → chunk-WL7UV3YX.js} +41 -42
- package/dist/{chunk-K2JR6RSF.js → chunk-YDV7OQMN.js} +11 -12
- package/dist/{chunk-HIJLTEQJ.mjs → chunk-YILBFUCI.mjs} +1 -1
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +18 -18
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.js +22 -22
- package/dist/index.mjs +25 -25
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- package/dist/src/executors/unbuild/executor.js +4 -4
- package/dist/src/executors/unbuild/executor.mjs +3 -3
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/plugins/typescript/index.js +2 -2
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/project-config.js +2 -2
- package/dist/src/plugins/typescript/project-config.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.ts +20 -20
- package/package.json +4 -3
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createNodesFromFiles,
|
|
3
3
|
CreateNodesResultV2,
|
|
4
4
|
CreateNodesV2,
|
|
5
|
-
readJsonFile
|
|
5
|
+
readJsonFile,
|
|
6
6
|
} from "@nx/devkit";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { dirname, join } from "node:path";
|
|
@@ -10,7 +10,7 @@ import { readNxJson } from "nx/src/config/nx-json.js";
|
|
|
10
10
|
import type { ProjectConfiguration } from "nx/src/config/workspace-json-project-json";
|
|
11
11
|
import {
|
|
12
12
|
readTargetsFromPackageJson,
|
|
13
|
-
type PackageJson
|
|
13
|
+
type PackageJson,
|
|
14
14
|
} from "nx/src/utils/package-json";
|
|
15
15
|
import { addProjectTag, ProjectTagConstants } from "../../utils/project-tags";
|
|
16
16
|
|
|
@@ -29,12 +29,12 @@ export const createNodesV2: CreateNodesV2<UntypedPluginOptions> = [
|
|
|
29
29
|
|
|
30
30
|
const projectRoot = createProjectRoot(
|
|
31
31
|
configFile,
|
|
32
|
-
context.workspaceRoot
|
|
32
|
+
context.workspaceRoot,
|
|
33
33
|
);
|
|
34
34
|
if (!projectRoot) {
|
|
35
35
|
console.error(
|
|
36
36
|
"No project.json found in parent directories of Untyped schema file: ",
|
|
37
|
-
configFile
|
|
37
|
+
configFile,
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
return {};
|
|
@@ -43,7 +43,7 @@ export const createNodesV2: CreateNodesV2<UntypedPluginOptions> = [
|
|
|
43
43
|
const packageJson = readJsonFile(join(projectRoot, "package.json"));
|
|
44
44
|
if (!packageJson) {
|
|
45
45
|
console.error(
|
|
46
|
-
`No package.json found in project root: ${projectRoot}
|
|
46
|
+
`No package.json found in project root: ${projectRoot}`,
|
|
47
47
|
);
|
|
48
48
|
return {};
|
|
49
49
|
}
|
|
@@ -54,13 +54,13 @@ export const createNodesV2: CreateNodesV2<UntypedPluginOptions> = [
|
|
|
54
54
|
) {
|
|
55
55
|
console.warn(
|
|
56
56
|
`No "untyped" dependency or devDependency found in package.json: ${configFile}
|
|
57
|
-
Please add it to your dependencies by running "pnpm add untyped -D --filter="${packageJson.name}"
|
|
57
|
+
Please add it to your dependencies by running "pnpm add untyped -D --filter="${packageJson.name}"`,
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
const project = createProjectFromPackageJsonNextToProjectJson(
|
|
62
62
|
join(projectRoot, "project.json"),
|
|
63
|
-
packageJson
|
|
63
|
+
packageJson,
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
const nxJson = readNxJson(context.workspaceRoot);
|
|
@@ -88,7 +88,7 @@ Please add it to your dependencies by running "pnpm add untyped -D --filter="${p
|
|
|
88
88
|
dependsOn: ["clean", "^build"],
|
|
89
89
|
inputs: [
|
|
90
90
|
"{projectRoot}/src/**/untyped.ts",
|
|
91
|
-
"{projectRoot}/src/**/*.untyped.ts"
|
|
91
|
+
"{projectRoot}/src/**/*.untyped.ts",
|
|
92
92
|
],
|
|
93
93
|
outputs: [
|
|
94
94
|
"{projectRoot}/src/**/schema.d.ts",
|
|
@@ -96,13 +96,13 @@ Please add it to your dependencies by running "pnpm add untyped -D --filter="${p
|
|
|
96
96
|
"{projectRoot}/src/**/schema.md",
|
|
97
97
|
"{projectRoot}/src/**/*.schema.md",
|
|
98
98
|
"{projectRoot}/src/**/schema.json",
|
|
99
|
-
"{projectRoot}/src/**/*.schema.json"
|
|
99
|
+
"{projectRoot}/src/**/*.schema.json",
|
|
100
100
|
],
|
|
101
101
|
options: {
|
|
102
102
|
commands: [
|
|
103
|
-
`storm-untyped generate --entry=\"${projectRoot}/**/{untyped.ts,*.untyped.ts}\"
|
|
104
|
-
]
|
|
105
|
-
}
|
|
103
|
+
`storm-untyped generate --entry=\"${projectRoot}/**/{untyped.ts,*.untyped.ts}\" `,
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
addProjectTag(project, ProjectTagConstants.Plugin.TAG_ID, name);
|
|
@@ -113,9 +113,9 @@ Please add it to your dependencies by running "pnpm add untyped -D --filter="${p
|
|
|
113
113
|
[project.name]: {
|
|
114
114
|
...project,
|
|
115
115
|
root: relativeRoot,
|
|
116
|
-
targets
|
|
117
|
-
}
|
|
118
|
-
}
|
|
116
|
+
targets,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
119
|
}
|
|
120
120
|
: {};
|
|
121
121
|
console.log(`Writing Results for ${project?.name ?? "missing name"}`);
|
|
@@ -129,14 +129,14 @@ Please add it to your dependencies by running "pnpm add untyped -D --filter="${p
|
|
|
129
129
|
},
|
|
130
130
|
configFiles,
|
|
131
131
|
options,
|
|
132
|
-
context
|
|
132
|
+
context,
|
|
133
133
|
);
|
|
134
|
-
}
|
|
134
|
+
},
|
|
135
135
|
];
|
|
136
136
|
|
|
137
137
|
function createProjectFromPackageJsonNextToProjectJson(
|
|
138
138
|
projectJsonPath: string,
|
|
139
|
-
packageJson: PackageJson
|
|
139
|
+
packageJson: PackageJson,
|
|
140
140
|
): ProjectConfiguration {
|
|
141
141
|
const { nx, name } = packageJson;
|
|
142
142
|
const root = dirname(projectJsonPath);
|
|
@@ -148,13 +148,13 @@ function createProjectFromPackageJsonNextToProjectJson(
|
|
|
148
148
|
name,
|
|
149
149
|
...nx,
|
|
150
150
|
...projectJson,
|
|
151
|
-
root
|
|
151
|
+
root,
|
|
152
152
|
} as ProjectConfiguration;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
function createProjectRoot(
|
|
156
156
|
configPath: string,
|
|
157
|
-
workspaceRoot: string
|
|
157
|
+
workspaceRoot: string,
|
|
158
158
|
): string | null {
|
|
159
159
|
try {
|
|
160
160
|
let root = dirname(configPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.248.2",
|
|
4
4
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -220,7 +220,8 @@
|
|
|
220
220
|
"fs-extra": "11.2.0",
|
|
221
221
|
"glob": "^11.0.1",
|
|
222
222
|
"jiti": "^2.4.2",
|
|
223
|
-
"
|
|
223
|
+
"markdownlint-cli2": "^0.17.2",
|
|
224
|
+
"micromatch": "^4.0.7",
|
|
224
225
|
"pkg-types": "^1.1.1",
|
|
225
226
|
"prettier": "^3.3.3",
|
|
226
227
|
"read-yaml-file": "2.1.0",
|
|
@@ -233,7 +234,7 @@
|
|
|
233
234
|
},
|
|
234
235
|
"devDependencies": {
|
|
235
236
|
"@nx/devkit": "^20.3.1",
|
|
236
|
-
"@types/micromatch": "4.0.9",
|
|
237
|
+
"@types/micromatch": "^4.0.9",
|
|
237
238
|
"@types/node": "^22.10.2",
|
|
238
239
|
"@types/semver": "7.5.8",
|
|
239
240
|
"nx": "^20.3.1",
|