@storm-software/workspace-tools 1.66.21 → 1.66.22
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 +12 -0
- package/config/nx.json +16 -3
- package/package.json +1 -1
- package/project.json +21 -8
- package/src/plugins/rust/cargo-toml.ts +9 -12
- package/src/plugins/typescript/project-config.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.66.22 (2024-03-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Further updates to Nx plugin modules ([82b6ab01](https://github.com/storm-software/storm-ops/commit/82b6ab01))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.66.21 (2024-03-29)
|
|
2
14
|
|
|
3
15
|
|
package/config/nx.json
CHANGED
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"e2e",
|
|
14
14
|
"docs"
|
|
15
15
|
],
|
|
16
|
-
"parallel": 3
|
|
17
|
-
"cacheDirectory": "node_modules/.cache/nx"
|
|
16
|
+
"parallel": 3
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
},
|
|
@@ -249,6 +248,20 @@
|
|
|
249
248
|
"test",
|
|
250
249
|
"^e2e"
|
|
251
250
|
]
|
|
251
|
+
},
|
|
252
|
+
"nx-release-publish": {
|
|
253
|
+
"cache": false,
|
|
254
|
+
"inputs": [
|
|
255
|
+
"default",
|
|
256
|
+
"^production"
|
|
257
|
+
],
|
|
258
|
+
"outputs": [
|
|
259
|
+
"{options.outputPath}"
|
|
260
|
+
],
|
|
261
|
+
"dependsOn": [
|
|
262
|
+
"test",
|
|
263
|
+
"^nx-release-publish"
|
|
264
|
+
]
|
|
252
265
|
}
|
|
253
266
|
},
|
|
254
267
|
"release": {
|
|
@@ -283,7 +296,7 @@
|
|
|
283
296
|
"@nx/js": {
|
|
284
297
|
"analyzeSourceFiles": true,
|
|
285
298
|
"analyzeLockfile": true,
|
|
286
|
-
"analyzePackageJson":
|
|
299
|
+
"analyzePackageJson": false
|
|
287
300
|
}
|
|
288
301
|
},
|
|
289
302
|
"defaultBase": "main"
|
package/package.json
CHANGED
package/project.json
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"targets": {
|
|
7
7
|
"build": {
|
|
8
8
|
"executor": "@nx/esbuild:esbuild",
|
|
9
|
-
"outputs": [
|
|
9
|
+
"outputs": [
|
|
10
|
+
"{options.outputPath}"
|
|
11
|
+
],
|
|
10
12
|
"options": {
|
|
11
13
|
"outputPath": "dist/packages/workspace-tools",
|
|
12
14
|
"tsConfig": "packages/workspace-tools/tsconfig.lib.json",
|
|
@@ -39,13 +41,19 @@
|
|
|
39
41
|
"skipTypeCheck": false,
|
|
40
42
|
"metafile": true,
|
|
41
43
|
"minify": false,
|
|
42
|
-
"format": [
|
|
44
|
+
"format": [
|
|
45
|
+
"cjs"
|
|
46
|
+
],
|
|
43
47
|
"esbuildOptions": {
|
|
44
48
|
"outExtension": {
|
|
45
49
|
".js": ".js"
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
|
-
"external": [
|
|
52
|
+
"external": [
|
|
53
|
+
"nx",
|
|
54
|
+
"@nx/devkit",
|
|
55
|
+
"esbuild"
|
|
56
|
+
],
|
|
49
57
|
"assets": [
|
|
50
58
|
{
|
|
51
59
|
"input": "packages/workspace-tools",
|
|
@@ -60,13 +68,19 @@
|
|
|
60
68
|
{
|
|
61
69
|
"input": "packages/workspace-tools",
|
|
62
70
|
"glob": "**/*.json",
|
|
63
|
-
"ignore": [
|
|
71
|
+
"ignore": [
|
|
72
|
+
"**/tsconfig*.json",
|
|
73
|
+
"project.json",
|
|
74
|
+
".eslintrc.json"
|
|
75
|
+
],
|
|
64
76
|
"output": "."
|
|
65
77
|
},
|
|
66
78
|
{
|
|
67
79
|
"input": "packages/workspace-tools",
|
|
68
80
|
"glob": "**/*.js",
|
|
69
|
-
"ignore": [
|
|
81
|
+
"ignore": [
|
|
82
|
+
"**/jest.config.js"
|
|
83
|
+
],
|
|
70
84
|
"output": "."
|
|
71
85
|
},
|
|
72
86
|
{
|
|
@@ -97,6 +111,5 @@
|
|
|
97
111
|
]
|
|
98
112
|
}
|
|
99
113
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -32,9 +32,8 @@ export const createNodes: CreateNodes = [
|
|
|
32
32
|
return acc;
|
|
33
33
|
}, new Map<string, Package>());
|
|
34
34
|
|
|
35
|
-
for (const
|
|
36
|
-
if (!isExternal(
|
|
37
|
-
// const root = normalizePath(dirname(relative(ctx.workspaceRoot, pkg.manifest_path)));
|
|
35
|
+
for (const cargoPackage of cargoPackages) {
|
|
36
|
+
if (!isExternal(cargoPackage, ctx.workspaceRoot)) {
|
|
38
37
|
const root = dirname(cargoFile);
|
|
39
38
|
|
|
40
39
|
const targets: ProjectConfiguration["targets"] = {
|
|
@@ -45,7 +44,7 @@ export const createNodes: CreateNodes = [
|
|
|
45
44
|
executor: "@monodon/rust:lint",
|
|
46
45
|
outputs: ["{options.target-dir}"],
|
|
47
46
|
options: {
|
|
48
|
-
"target-dir": `dist/target/${
|
|
47
|
+
"target-dir": `dist/target/${cargoPackage.name}`
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
50
|
build: {
|
|
@@ -55,7 +54,7 @@ export const createNodes: CreateNodes = [
|
|
|
55
54
|
executor: "@monodon/rust:check",
|
|
56
55
|
outputs: ["{options.target-dir}"],
|
|
57
56
|
options: {
|
|
58
|
-
"target-dir": `dist/target/${
|
|
57
|
+
"target-dir": `dist/target/${cargoPackage.name}`
|
|
59
58
|
}
|
|
60
59
|
},
|
|
61
60
|
test: {
|
|
@@ -65,7 +64,7 @@ export const createNodes: CreateNodes = [
|
|
|
65
64
|
executor: "@monodon/rust:test",
|
|
66
65
|
outputs: ["{options.target-dir}"],
|
|
67
66
|
options: {
|
|
68
|
-
"target-dir": `dist/target/${
|
|
67
|
+
"target-dir": `dist/target/${cargoPackage.name}`
|
|
69
68
|
},
|
|
70
69
|
configurations: {
|
|
71
70
|
production: {
|
|
@@ -75,8 +74,7 @@ export const createNodes: CreateNodes = [
|
|
|
75
74
|
}
|
|
76
75
|
};
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
const isPrivate = pkg.publish?.length === 0;
|
|
77
|
+
const isPrivate = cargoPackage.publish?.length === 0;
|
|
80
78
|
if (!isPrivate) {
|
|
81
79
|
targets["nx-release-publish"] = {
|
|
82
80
|
cache: false,
|
|
@@ -91,17 +89,17 @@ export const createNodes: CreateNodes = [
|
|
|
91
89
|
|
|
92
90
|
projects[root] = {
|
|
93
91
|
root,
|
|
94
|
-
name:
|
|
92
|
+
name: cargoPackage.name,
|
|
95
93
|
targets,
|
|
96
94
|
release: {
|
|
97
95
|
version: {
|
|
98
96
|
generator: "@storm-software/workspace-tools:release-version"
|
|
99
97
|
}
|
|
100
98
|
},
|
|
101
|
-
tags: ["rust"
|
|
99
|
+
tags: ["lang:rust"]
|
|
102
100
|
};
|
|
103
101
|
}
|
|
104
|
-
for (const dep of
|
|
102
|
+
for (const dep of cargoPackage.dependencies) {
|
|
105
103
|
if (isExternal(dep, ctx.workspaceRoot)) {
|
|
106
104
|
const externalDepName = `cargo:${dep.name}`;
|
|
107
105
|
if (!externalNodes?.[externalDepName]) {
|
|
@@ -132,7 +130,6 @@ export const createDependencies: CreateDependencies = (_, { projects, externalNo
|
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
const { packages: cargoPackages } = metadata;
|
|
135
|
-
|
|
136
133
|
const dependencies: RawProjectGraphDependency[] = [];
|
|
137
134
|
|
|
138
135
|
for (const pkg of cargoPackages) {
|
|
@@ -5,6 +5,7 @@ import { readJsonFile } from "nx/src/utils/fileutils";
|
|
|
5
5
|
import { type PackageJson, readTargetsFromPackageJson } from "nx/src/utils/package-json";
|
|
6
6
|
|
|
7
7
|
export const name = "storm-software/typescript/project-config";
|
|
8
|
+
|
|
8
9
|
export const createNodes = [
|
|
9
10
|
"{project.json,**/project.json}",
|
|
10
11
|
(file, _, ctx) => {
|
|
@@ -76,7 +77,7 @@ export const createNodes = [
|
|
|
76
77
|
? {
|
|
77
78
|
projects: {
|
|
78
79
|
[project.name]: {
|
|
79
|
-
tags: ["typescript"
|
|
80
|
+
tags: ["lang:typescript"],
|
|
80
81
|
...project,
|
|
81
82
|
targets,
|
|
82
83
|
release: {
|