@storm-software/workspace-tools 1.66.20 → 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
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
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
|
+
|
|
13
|
+
## 1.66.21 (2024-03-29)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Resolve issues applying Nx plugins ([7dd277e6](https://github.com/storm-software/storm-ops/commit/7dd277e6))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.66.20 (2024-03-29)
|
|
2
26
|
|
|
3
27
|
|
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
|
},
|
|
@@ -297,7 +296,7 @@
|
|
|
297
296
|
"@nx/js": {
|
|
298
297
|
"analyzeSourceFiles": true,
|
|
299
298
|
"analyzeLockfile": true,
|
|
300
|
-
"analyzePackageJson":
|
|
299
|
+
"analyzePackageJson": false
|
|
301
300
|
}
|
|
302
301
|
},
|
|
303
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
|
+
}
|
|
@@ -339,8 +339,6 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
// TODO: reevaluate this logic/workflow for independent projects
|
|
343
|
-
//
|
|
344
342
|
// Always assume that if the current version is a prerelease, then the next version should be a prerelease.
|
|
345
343
|
// Users must manually graduate from a prerelease to a release by providing an explicit specifier.
|
|
346
344
|
if (prerelease(currentVersion)) {
|
|
@@ -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,13 +74,12 @@ 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,
|
|
83
81
|
inputs: ["default", "^production"],
|
|
84
|
-
dependsOn: ["test", "^nx-release-publish"],
|
|
82
|
+
dependsOn: ["test", "build", "^nx-release-publish"],
|
|
85
83
|
executor: "@storm-software/workspace-tools:cargo-publish",
|
|
86
84
|
options: {
|
|
87
85
|
packageRoot: root
|
|
@@ -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) => {
|
|
@@ -64,7 +65,7 @@ export const createNodes = [
|
|
|
64
65
|
targets["nx-release-publish"] = {
|
|
65
66
|
cache: false,
|
|
66
67
|
inputs: ["default", "^production"],
|
|
67
|
-
dependsOn: ["build", "^nx-release-publish"],
|
|
68
|
+
dependsOn: ["test", "build", "^nx-release-publish"],
|
|
68
69
|
executor: "@storm-software/workspace-tools:npm-publish",
|
|
69
70
|
options: {
|
|
70
71
|
registry: "https://registry.npmjs.org/"
|
|
@@ -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: {
|