@storm-software/workspace-tools 1.281.0 → 1.281.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 +35 -0
- package/README.md +1 -2
- package/dist/chunk-2MHNU4Q7.js +377 -0
- package/dist/chunk-6PV2RYEF.mjs +913 -0
- package/dist/chunk-6ROCSRV6.js +250 -0
- package/dist/chunk-AJVVBG3Z.mjs +32 -0
- package/dist/chunk-AKYIPW4G.mjs +32 -0
- package/dist/chunk-BIUFDYOH.mjs +31 -0
- package/dist/chunk-F4AI4CWP.mjs +253 -0
- package/dist/chunk-FFIC46QK.js +79 -0
- package/dist/chunk-FQEVWSSD.mjs +377 -0
- package/dist/chunk-LQWER6QQ.mjs +41 -0
- package/dist/chunk-MFDDUIKJ.js +913 -0
- package/dist/chunk-MHMLKOUJ.js +32 -0
- package/dist/chunk-PD2BMJVZ.js +32 -0
- package/dist/chunk-QVAJZCTS.js +32 -0
- package/dist/chunk-RYK4EJIF.js +41 -0
- package/dist/chunk-SYBLSYMX.mjs +32 -0
- package/dist/chunk-VTDD2GZ7.js +31 -0
- package/dist/chunk-YK4VTANT.mjs +82 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Changelog for Storm Ops - Workspace Tools
|
|
4
|
+
|
|
5
|
+
## [1.281.1](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.281.1) (2025-08-07)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Reformat workspace package files
|
|
10
|
+
([7b6add0f5](https://github.com/storm-software/storm-ops/commit/7b6add0f5))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated prettier to 0.53.1
|
|
15
|
+
- Updated esbuild to 0.47.1
|
|
16
|
+
- Updated unbuild to 0.51.1
|
|
17
|
+
|
|
18
|
+
## [1.281.0](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.281.0) (2025-08-06)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- **config:** Update the configuration schema to use `zod/mini` to reduce size
|
|
23
|
+
([1a89aae2e](https://github.com/storm-software/storm-ops/commit/1a89aae2e))
|
|
24
|
+
|
|
25
|
+
### Miscellaneous
|
|
26
|
+
|
|
27
|
+
- **monorepo:** Regenerate README markdown files
|
|
28
|
+
([92d5d61a0](https://github.com/storm-software/storm-ops/commit/92d5d61a0))
|
|
29
|
+
|
|
30
|
+
### Updated Dependencies
|
|
31
|
+
|
|
32
|
+
- Updated prettier to 0.53.0
|
|
33
|
+
- Updated esbuild to 0.47.0
|
|
34
|
+
- Updated unbuild to 0.51.0
|
|
35
|
+
|
|
1
36
|

|
|
2
37
|
|
|
3
38
|
# Changelog for Storm Ops - Workspace Tools
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Workspace Tools](#storm-workspace-tools)
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkNSSJMQFDjs = require('./chunk-NSSJMQFD.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
13
|
+
|
|
14
|
+
// src/plugins/rust/cargo-toml.ts
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _devkit = require('@nx/devkit');
|
|
21
|
+
var _fs = require('fs');
|
|
22
|
+
var _path = require('path');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
var _projectgraph = require('nx/src/config/project-graph');
|
|
26
|
+
var name = "storm-software/rust";
|
|
27
|
+
var description = "Plugin for parsing Cargo.toml files";
|
|
28
|
+
var DefaultCargoPluginProfileMap = {
|
|
29
|
+
development: "dev",
|
|
30
|
+
production: "prod"
|
|
31
|
+
};
|
|
32
|
+
var DEFAULT_ERROR_MESSAGE = "An error occurred in the Storm Rust Nx plugin.";
|
|
33
|
+
var createNodesV2 = [
|
|
34
|
+
"*/**/Cargo.toml",
|
|
35
|
+
async (configFiles, options, context) => {
|
|
36
|
+
return await _devkit.createNodesFromFiles.call(void 0,
|
|
37
|
+
(configFile, options2, context2) => {
|
|
38
|
+
try {
|
|
39
|
+
const profiles = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _2 => _2.profiles]), () => ( {}));
|
|
40
|
+
const includeApps = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _3 => _3.includeApps]), () => ( true));
|
|
41
|
+
const toolchain = _optionalChain([options2, 'optionalAccess', _4 => _4.toolchain]);
|
|
42
|
+
const skipDocs = _nullishCoalesce(_optionalChain([options2, 'optionalAccess', _5 => _5.skipDocs]), () => ( false));
|
|
43
|
+
const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
|
|
44
|
+
if (!metadata) {
|
|
45
|
+
return {};
|
|
46
|
+
}
|
|
47
|
+
const { packages: cargoPackages } = metadata;
|
|
48
|
+
const externalNodes = {};
|
|
49
|
+
const projects = {};
|
|
50
|
+
const profs = {
|
|
51
|
+
...DefaultCargoPluginProfileMap,
|
|
52
|
+
...profiles
|
|
53
|
+
};
|
|
54
|
+
const configurations = Object.keys(profs).reduce((ret, key) => {
|
|
55
|
+
ret[key] = {
|
|
56
|
+
profile: profs[key]
|
|
57
|
+
};
|
|
58
|
+
return ret;
|
|
59
|
+
}, {});
|
|
60
|
+
const cargoPackageMap = cargoPackages.reduce((acc, p) => {
|
|
61
|
+
if (!acc.has(p.name)) {
|
|
62
|
+
acc.set(p.name, p);
|
|
63
|
+
}
|
|
64
|
+
return acc;
|
|
65
|
+
}, /* @__PURE__ */ new Map());
|
|
66
|
+
for (const cargoPackage of cargoPackages) {
|
|
67
|
+
if (!_chunkLJDV7HFTjs.isExternal.call(void 0, cargoPackage, context2.workspaceRoot)) {
|
|
68
|
+
const root = _chunkNSSJMQFDjs.getRoot.call(void 0, _path.dirname.call(void 0, configFile), context2);
|
|
69
|
+
const project = {
|
|
70
|
+
root,
|
|
71
|
+
name: cargoPackage.name
|
|
72
|
+
};
|
|
73
|
+
if (_fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, root, "project.json"))) {
|
|
74
|
+
const projectJson = _devkit.readJsonFile.call(void 0,
|
|
75
|
+
_devkit.joinPathFragments.call(void 0, root, "project.json")
|
|
76
|
+
);
|
|
77
|
+
if (projectJson) {
|
|
78
|
+
Object.keys(projectJson).forEach((key) => {
|
|
79
|
+
if (!project[key]) {
|
|
80
|
+
project[key] = projectJson[key];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (includeApps === false && project.projectType === "application") {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
project.targets = {
|
|
89
|
+
"lint-markdown": {
|
|
90
|
+
cache: true,
|
|
91
|
+
outputs: ["{projectRoot}/**/*.md", "{projectRoot}/**/*.mdx"],
|
|
92
|
+
inputs: [
|
|
93
|
+
"linting",
|
|
94
|
+
"{projectRoot}/**/*.md",
|
|
95
|
+
"{projectRoot}/**/*.mdx"
|
|
96
|
+
],
|
|
97
|
+
dependsOn: ["^lint-markdown"],
|
|
98
|
+
executor: "nx:run-commands",
|
|
99
|
+
options: {
|
|
100
|
+
command: 'pnpm exec markdownlint-cli2 "{projectRoot}/*.{md,mdx}" "{projectRoot}/**/*.{md,mdx}" --config "node_modules/@storm-software/markdownlint/config/base.markdownlint-cli2.jsonc" --fix'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"lint-ls": {
|
|
104
|
+
cache: true,
|
|
105
|
+
inputs: ["linting", "rust", "^production"],
|
|
106
|
+
dependsOn: ["^lint-ls"],
|
|
107
|
+
options: {
|
|
108
|
+
command: 'pnpm exec ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/.ls-lint.yml" ',
|
|
109
|
+
color: true
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
lint: {
|
|
113
|
+
cache: true,
|
|
114
|
+
inputs: ["linting", "rust", "^production"],
|
|
115
|
+
dependsOn: ["lint-ls", "lint-markdown", "^lint"],
|
|
116
|
+
executor: "@storm-software/workspace-tools:cargo-clippy",
|
|
117
|
+
options: {
|
|
118
|
+
toolchain,
|
|
119
|
+
fix: false
|
|
120
|
+
},
|
|
121
|
+
defaultConfiguration: "development",
|
|
122
|
+
configurations
|
|
123
|
+
},
|
|
124
|
+
check: {
|
|
125
|
+
cache: true,
|
|
126
|
+
inputs: ["linting", "rust", "^production"],
|
|
127
|
+
dependsOn: ["lint", "^check"],
|
|
128
|
+
executor: "@storm-software/workspace-tools:cargo-check",
|
|
129
|
+
options: {
|
|
130
|
+
toolchain
|
|
131
|
+
},
|
|
132
|
+
defaultConfiguration: "development",
|
|
133
|
+
configurations
|
|
134
|
+
},
|
|
135
|
+
"format-readme": {
|
|
136
|
+
cache: true,
|
|
137
|
+
inputs: [
|
|
138
|
+
"linting",
|
|
139
|
+
"documentation",
|
|
140
|
+
"{projectRoot}/{README.md,package.json,Cargo.toml,executors.json,generators.json}"
|
|
141
|
+
],
|
|
142
|
+
outputs: ["{projectRoot}/README.md"],
|
|
143
|
+
dependsOn: ["^format-readme"],
|
|
144
|
+
executor: "nx:run-commands",
|
|
145
|
+
options: {
|
|
146
|
+
command: 'pnpm exec storm-git readme --templates="tools/readme-templates" --project="{projectName}"'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"format-toml": {
|
|
150
|
+
cache: true,
|
|
151
|
+
inputs: ["linting", "{projectRoot}/**/*.toml"],
|
|
152
|
+
outputs: ["{projectRoot}/**/*.toml"],
|
|
153
|
+
dependsOn: ["^format-toml"],
|
|
154
|
+
executor: "nx:run-commands",
|
|
155
|
+
options: {
|
|
156
|
+
command: 'pnpm exec taplo format --config="node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="node_modules/.cache/taplo/{projectRoot}" --colors="always" "{projectRoot}/*.toml" "{projectRoot}/**/*.toml" '
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"format-clippy": {
|
|
160
|
+
cache: true,
|
|
161
|
+
inputs: ["linting", "rust", "^production"],
|
|
162
|
+
dependsOn: ["^format-clippy"],
|
|
163
|
+
executor: "@storm-software/workspace-tools:cargo-clippy",
|
|
164
|
+
options: {
|
|
165
|
+
toolchain,
|
|
166
|
+
fix: true
|
|
167
|
+
},
|
|
168
|
+
defaultConfiguration: "development",
|
|
169
|
+
configurations
|
|
170
|
+
},
|
|
171
|
+
format: {
|
|
172
|
+
cache: true,
|
|
173
|
+
inputs: ["linting", "documentation", "rust", "^production"],
|
|
174
|
+
dependsOn: [
|
|
175
|
+
"format-readme",
|
|
176
|
+
"format-clippy",
|
|
177
|
+
"format-toml",
|
|
178
|
+
"^format"
|
|
179
|
+
],
|
|
180
|
+
executor: "@storm-software/workspace-tools:cargo-format",
|
|
181
|
+
options: {
|
|
182
|
+
toolchain,
|
|
183
|
+
fix: true
|
|
184
|
+
},
|
|
185
|
+
defaultConfiguration: "development",
|
|
186
|
+
configurations
|
|
187
|
+
},
|
|
188
|
+
clean: {
|
|
189
|
+
cache: true,
|
|
190
|
+
inputs: ["rust", "^production"],
|
|
191
|
+
outputs: [`{workspaceRoot}/dist/{projectRoot}/target`],
|
|
192
|
+
executor: "nx:run-commands",
|
|
193
|
+
options: {
|
|
194
|
+
command: `pnpm exec rimraf dist/{projectRoot}/target`,
|
|
195
|
+
color: true,
|
|
196
|
+
cwd: "{workspaceRoot}"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
build: {
|
|
200
|
+
cache: true,
|
|
201
|
+
inputs: ["rust", "^production"],
|
|
202
|
+
dependsOn: ["build-base", "^build"],
|
|
203
|
+
executor: "@storm-software/workspace-tools:cargo-build",
|
|
204
|
+
outputs: [`{workspaceRoot}/dist/{projectRoot}/target`],
|
|
205
|
+
options: {
|
|
206
|
+
toolchain
|
|
207
|
+
},
|
|
208
|
+
defaultConfiguration: "development",
|
|
209
|
+
configurations
|
|
210
|
+
},
|
|
211
|
+
rebuild: {
|
|
212
|
+
cache: false,
|
|
213
|
+
inputs: ["rust", "^production"],
|
|
214
|
+
dependsOn: ["clean", "build-base", "^build"],
|
|
215
|
+
executor: "@storm-software/workspace-tools:cargo-build",
|
|
216
|
+
outputs: [`{workspaceRoot}/dist/{projectRoot}/target`],
|
|
217
|
+
options: {
|
|
218
|
+
toolchain
|
|
219
|
+
},
|
|
220
|
+
defaultConfiguration: "development",
|
|
221
|
+
configurations
|
|
222
|
+
},
|
|
223
|
+
test: {
|
|
224
|
+
cache: true,
|
|
225
|
+
inputs: ["testing", "rust", "^production"],
|
|
226
|
+
dependsOn: ["build", "^test"],
|
|
227
|
+
executor: "@monodon/rust:test",
|
|
228
|
+
outputs: ["{options.target-dir}"],
|
|
229
|
+
options: {
|
|
230
|
+
"target-dir": `{workspaceRoot}/dist/{projectRoot}/target`
|
|
231
|
+
},
|
|
232
|
+
defaultConfiguration: "development",
|
|
233
|
+
configurations
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
if (skipDocs != true) {
|
|
237
|
+
project.targets.docs = {
|
|
238
|
+
cache: true,
|
|
239
|
+
inputs: ["linting", "documentation", "^production"],
|
|
240
|
+
dependsOn: ["format-readme", "lint-docs", "^docs"],
|
|
241
|
+
outputs: [`{workspaceRoot}/dist/{projectRoot}/docs`],
|
|
242
|
+
executor: "@storm-software/workspace-tools:cargo-doc",
|
|
243
|
+
options: {
|
|
244
|
+
toolchain
|
|
245
|
+
},
|
|
246
|
+
defaultConfiguration: "production",
|
|
247
|
+
configurations
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (cargoPackage.publish === null || cargoPackage.publish === void 0 || cargoPackage.publish === true || Array.isArray(cargoPackage.publish) && cargoPackage.publish.length > 0) {
|
|
251
|
+
_chunkAX3RSZT7js.addProjectTag.call(void 0,
|
|
252
|
+
project,
|
|
253
|
+
_chunkAX3RSZT7js.ProjectTagConstants.Registry.TAG_ID,
|
|
254
|
+
_chunkAX3RSZT7js.ProjectTagConstants.Registry.CARGO,
|
|
255
|
+
{ overwrite: true }
|
|
256
|
+
);
|
|
257
|
+
project.targets["nx-release-publish"] = {
|
|
258
|
+
cache: true,
|
|
259
|
+
inputs: [
|
|
260
|
+
"linting",
|
|
261
|
+
"testing",
|
|
262
|
+
"documentation",
|
|
263
|
+
"rust",
|
|
264
|
+
"^production"
|
|
265
|
+
],
|
|
266
|
+
dependsOn: ["build", "^nx-release-publish"],
|
|
267
|
+
executor: "@storm-software/workspace-tools:cargo-publish",
|
|
268
|
+
options: {
|
|
269
|
+
packageRoot: root
|
|
270
|
+
},
|
|
271
|
+
defaultConfiguration: "production",
|
|
272
|
+
configurations
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
_chunkAX3RSZT7js.addProjectTag.call(void 0,
|
|
276
|
+
project,
|
|
277
|
+
_chunkAX3RSZT7js.ProjectTagConstants.Language.TAG_ID,
|
|
278
|
+
_chunkAX3RSZT7js.ProjectTagConstants.Language.RUST,
|
|
279
|
+
{ overwrite: true }
|
|
280
|
+
);
|
|
281
|
+
_chunkAX3RSZT7js.setDefaultProjectTags.call(void 0, project, name);
|
|
282
|
+
projects[root] = {
|
|
283
|
+
...project,
|
|
284
|
+
release: {
|
|
285
|
+
...project.release,
|
|
286
|
+
version: {
|
|
287
|
+
..._optionalChain([project, 'access', _6 => _6.release, 'optionalAccess', _7 => _7.version]),
|
|
288
|
+
generator: "@storm-software/workspace-tools:release-version"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
for (const dep of cargoPackage.dependencies) {
|
|
294
|
+
if (_chunkLJDV7HFTjs.isExternal.call(void 0, dep, context2.workspaceRoot)) {
|
|
295
|
+
const externalDepName = `cargo:${dep.name}`;
|
|
296
|
+
if (!_optionalChain([externalNodes, 'optionalAccess', _8 => _8[externalDepName]])) {
|
|
297
|
+
externalNodes[externalDepName] = {
|
|
298
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
299
|
+
type: "cargo",
|
|
300
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
301
|
+
name: externalDepName,
|
|
302
|
+
data: {
|
|
303
|
+
packageName: dep.name,
|
|
304
|
+
version: _nullishCoalesce(_optionalChain([cargoPackageMap, 'access', _9 => _9.get, 'call', _10 => _10(dep.name), 'optionalAccess', _11 => _11.version]), () => ( "0.0.0"))
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return {
|
|
312
|
+
projects,
|
|
313
|
+
externalNodes
|
|
314
|
+
};
|
|
315
|
+
} catch (e) {
|
|
316
|
+
console.error(DEFAULT_ERROR_MESSAGE);
|
|
317
|
+
console.error(e);
|
|
318
|
+
throw new Error(DEFAULT_ERROR_MESSAGE, { cause: e });
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
configFiles,
|
|
322
|
+
options,
|
|
323
|
+
context
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
];
|
|
327
|
+
var createDependencies = (_, context) => {
|
|
328
|
+
const metadata = _chunkLJDV7HFTjs.cargoMetadata.call(void 0, );
|
|
329
|
+
if (!metadata) {
|
|
330
|
+
return [];
|
|
331
|
+
}
|
|
332
|
+
const { packages: cargoPackages } = metadata;
|
|
333
|
+
const dependencies = [];
|
|
334
|
+
for (const pkg of cargoPackages) {
|
|
335
|
+
if (context.projects[pkg.name]) {
|
|
336
|
+
for (const deps of pkg.dependencies) {
|
|
337
|
+
if (!cargoPackages.find((p) => p.name === deps.name)) {
|
|
338
|
+
console.debug(
|
|
339
|
+
`[storm-software/rust]: Dependency ${deps.name} not found in the cargo metadata.`
|
|
340
|
+
);
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
if (context.projects[deps.name]) {
|
|
344
|
+
dependencies.push(
|
|
345
|
+
createDependency(pkg, deps.name, _projectgraph.DependencyType.static)
|
|
346
|
+
);
|
|
347
|
+
} else {
|
|
348
|
+
const externalDepName = `cargo:${deps.name}`;
|
|
349
|
+
if (externalDepName in (_nullishCoalesce(context.externalNodes, () => ( {})))) {
|
|
350
|
+
dependencies.push(
|
|
351
|
+
createDependency(pkg, externalDepName, _projectgraph.DependencyType.static)
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return dependencies;
|
|
359
|
+
};
|
|
360
|
+
function createDependency(pkg, depName, type) {
|
|
361
|
+
const target = pkg.manifest_path.replace(/\\/g, "/");
|
|
362
|
+
return {
|
|
363
|
+
type,
|
|
364
|
+
source: pkg.name,
|
|
365
|
+
target: depName,
|
|
366
|
+
sourceFile: target.replace(`${_devkit.workspaceRoot.replace(/\\/g, "/")}/`, "")
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
exports.name = name; exports.description = description; exports.DefaultCargoPluginProfileMap = DefaultCargoPluginProfileMap; exports.DEFAULT_ERROR_MESSAGE = DEFAULT_ERROR_MESSAGE; exports.createNodesV2 = createNodesV2; exports.createDependencies = createDependencies;
|