@storm-software/workspace-tools 1.128.0 → 1.128.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 +16 -0
- package/README.md +1 -1
- package/config/nx.json +117 -542
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/plugins/rust/index.js +16 -10
- package/src/plugins/typescript/index.js +18 -15
package/package.json
CHANGED
|
@@ -26,9 +26,10 @@ __export(rust_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(rust_exports);
|
|
27
27
|
|
|
28
28
|
// packages/workspace-tools/src/plugins/rust/cargo-toml.ts
|
|
29
|
+
var import_devkit2 = require("@nx/devkit");
|
|
30
|
+
var import_node_fs = require("node:fs");
|
|
29
31
|
var import_node_path2 = require("node:path");
|
|
30
32
|
var import_project_graph = require("nx/src/config/project-graph");
|
|
31
|
-
var import_devkit2 = require("@nx/devkit");
|
|
32
33
|
|
|
33
34
|
// packages/workspace-tools/src/utils/cargo.ts
|
|
34
35
|
var import_node_path = require("node:path");
|
|
@@ -76,9 +77,6 @@ function isExternal(packageOrDep, workspaceRoot3) {
|
|
|
76
77
|
return isRegistry || isGit || isOutsideWorkspace;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
// packages/workspace-tools/src/plugins/rust/cargo-toml.ts
|
|
80
|
-
var import_node_fs = require("node:fs");
|
|
81
|
-
|
|
82
80
|
// packages/workspace-tools/src/utils/project-tags.ts
|
|
83
81
|
var ProjectTagConstants = {
|
|
84
82
|
Language: {
|
|
@@ -177,12 +175,12 @@ var createNodes = [
|
|
|
177
175
|
project.targets = {
|
|
178
176
|
"lint-ls": {
|
|
179
177
|
cache: true,
|
|
180
|
-
inputs: ["
|
|
178
|
+
inputs: ["linting", "rust", "^production"],
|
|
181
179
|
dependsOn: ["^lint-ls"]
|
|
182
180
|
},
|
|
183
181
|
lint: {
|
|
184
182
|
cache: true,
|
|
185
|
-
inputs: ["
|
|
183
|
+
inputs: ["linting", "rust", "^production"],
|
|
186
184
|
dependsOn: ["lint-ls", "^lint"],
|
|
187
185
|
executor: "@monodon/rust:lint",
|
|
188
186
|
options: {
|
|
@@ -191,15 +189,17 @@ var createNodes = [
|
|
|
191
189
|
},
|
|
192
190
|
"format-readme": {
|
|
193
191
|
cache: true,
|
|
192
|
+
inputs: ["linting", "documentation", "rust", "^production"],
|
|
194
193
|
dependsOn: ["^format-readme"]
|
|
195
194
|
},
|
|
196
195
|
"format-toml": {
|
|
197
196
|
cache: true,
|
|
197
|
+
inputs: ["linting", "rust", "^production"],
|
|
198
198
|
dependsOn: ["^format-toml"]
|
|
199
199
|
},
|
|
200
200
|
format: {
|
|
201
201
|
cache: true,
|
|
202
|
-
inputs: ["
|
|
202
|
+
inputs: ["linting", "documentation", "rust", "^production"],
|
|
203
203
|
dependsOn: ["format-readme", "format-toml", "^format"],
|
|
204
204
|
executor: "nx:run-commands",
|
|
205
205
|
options: {
|
|
@@ -240,7 +240,7 @@ var createNodes = [
|
|
|
240
240
|
},
|
|
241
241
|
test: {
|
|
242
242
|
cache: true,
|
|
243
|
-
inputs: ["
|
|
243
|
+
inputs: ["testing", "rust", "^production"],
|
|
244
244
|
dependsOn: ["build", "^test"],
|
|
245
245
|
executor: "@monodon/rust:test",
|
|
246
246
|
outputs: ["{options.target-dir}"],
|
|
@@ -257,8 +257,14 @@ var createNodes = [
|
|
|
257
257
|
const isPrivate = cargoPackage.publish?.length === 0;
|
|
258
258
|
if (!isPrivate) {
|
|
259
259
|
project.targets["nx-release-publish"] = {
|
|
260
|
-
cache:
|
|
261
|
-
inputs: [
|
|
260
|
+
cache: true,
|
|
261
|
+
inputs: [
|
|
262
|
+
"linting",
|
|
263
|
+
"testing",
|
|
264
|
+
"documentation",
|
|
265
|
+
"rust",
|
|
266
|
+
"^production"
|
|
267
|
+
],
|
|
262
268
|
executor: "@storm-software/workspace-tools:cargo-publish",
|
|
263
269
|
options: {
|
|
264
270
|
packageRoot: root
|
|
@@ -118,7 +118,7 @@ var createNodes = [
|
|
|
118
118
|
if (!targets["lint-ls"]) {
|
|
119
119
|
targets["lint-ls"] = {
|
|
120
120
|
cache: true,
|
|
121
|
-
inputs: ["
|
|
121
|
+
inputs: ["linting", "typescript", "^production"],
|
|
122
122
|
dependsOn: ["^lint-ls"],
|
|
123
123
|
executor: "nx:run-commands",
|
|
124
124
|
options: {
|
|
@@ -130,7 +130,7 @@ var createNodes = [
|
|
|
130
130
|
if (!targets.lint) {
|
|
131
131
|
targets.lint = {
|
|
132
132
|
cache: true,
|
|
133
|
-
inputs: ["
|
|
133
|
+
inputs: ["linting", "typescript", "^production"],
|
|
134
134
|
dependsOn: ["lint-ls", "^lint"],
|
|
135
135
|
executor: "@nx/eslint:lint",
|
|
136
136
|
options: {
|
|
@@ -145,26 +145,28 @@ var createNodes = [
|
|
|
145
145
|
if (!targets["format-readme"]) {
|
|
146
146
|
targets["format-readme"] = {
|
|
147
147
|
cache: true,
|
|
148
|
+
inputs: ["linting", "documentation", "typescript", "^production"],
|
|
148
149
|
dependsOn: ["^format-readme"]
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
152
|
if (!targets["format-toml"]) {
|
|
152
153
|
targets["format-toml"] = {
|
|
153
154
|
cache: true,
|
|
155
|
+
inputs: ["linting", "typescript", "^production"],
|
|
154
156
|
dependsOn: ["^format-toml"]
|
|
155
157
|
};
|
|
156
158
|
}
|
|
157
159
|
if (!targets["format-prettier"]) {
|
|
158
160
|
targets["format-prettier"] = {
|
|
159
161
|
cache: true,
|
|
160
|
-
inputs: ["
|
|
162
|
+
inputs: ["linting", "typescript", "^production"],
|
|
161
163
|
dependsOn: ["^format-prettier"]
|
|
162
164
|
};
|
|
163
165
|
}
|
|
164
166
|
if (!targets.format) {
|
|
165
167
|
targets.format = {
|
|
166
168
|
cache: true,
|
|
167
|
-
inputs: ["
|
|
169
|
+
inputs: ["linting", "typescript", "^production"],
|
|
168
170
|
dependsOn: [
|
|
169
171
|
"format-readme",
|
|
170
172
|
"format-toml",
|
|
@@ -182,7 +184,7 @@ var createNodes = [
|
|
|
182
184
|
targets.clean = {
|
|
183
185
|
cache: true,
|
|
184
186
|
executor: "nx:run-commands",
|
|
185
|
-
inputs: ["
|
|
187
|
+
inputs: ["typescript", "^production"],
|
|
186
188
|
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
187
189
|
options: {
|
|
188
190
|
command: "pnpm exec rimraf dist/{projectRoot}",
|
|
@@ -196,7 +198,7 @@ var createNodes = [
|
|
|
196
198
|
cache: false,
|
|
197
199
|
executor: "nx:run-commands",
|
|
198
200
|
dependsOn: ["clean", "^build"],
|
|
199
|
-
inputs: ["
|
|
201
|
+
inputs: ["typescript", "^production"],
|
|
200
202
|
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
201
203
|
options: {
|
|
202
204
|
command: `pnpm exec nx run ${project.name}:build`,
|
|
@@ -209,12 +211,7 @@ var createNodes = [
|
|
|
209
211
|
targets.test = {
|
|
210
212
|
cache: true,
|
|
211
213
|
executor: "@nx/jest:jest",
|
|
212
|
-
inputs: [
|
|
213
|
-
"config_testing",
|
|
214
|
-
"source_testing",
|
|
215
|
-
"typescript",
|
|
216
|
-
"^production"
|
|
217
|
-
],
|
|
214
|
+
inputs: ["testing", "typescript", "^production"],
|
|
218
215
|
outputs: ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
219
216
|
defaultConfiguration: "local",
|
|
220
217
|
options: {
|
|
@@ -236,8 +233,14 @@ var createNodes = [
|
|
|
236
233
|
const isPrivate = packageJson.private ?? false;
|
|
237
234
|
if (!isPrivate) {
|
|
238
235
|
targets["nx-release-publish"] = {
|
|
239
|
-
cache:
|
|
240
|
-
inputs: [
|
|
236
|
+
cache: true,
|
|
237
|
+
inputs: [
|
|
238
|
+
"linting",
|
|
239
|
+
"testing",
|
|
240
|
+
"documentation",
|
|
241
|
+
"typescript",
|
|
242
|
+
"^production"
|
|
243
|
+
],
|
|
241
244
|
executor: "@storm-software/workspace-tools:npm-publish",
|
|
242
245
|
options: {}
|
|
243
246
|
};
|
|
@@ -253,7 +256,7 @@ var createNodes = [
|
|
|
253
256
|
targets["clean-package"] = {
|
|
254
257
|
cache: true,
|
|
255
258
|
dependsOn: ["build"],
|
|
256
|
-
inputs: ["
|
|
259
|
+
inputs: ["typescript", "^production"],
|
|
257
260
|
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
258
261
|
executor: "@storm-software/workspace-tools:clean-package",
|
|
259
262
|
options: {
|