@storm-software/workspace-tools 1.207.0 → 1.207.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 +14 -0
- package/meta.json +3 -3
- package/package.json +1 -1
- package/src/plugins/typescript/tsup.d.ts +1 -1
- package/src/plugins/typescript/tsup.js +39 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.207.2 (2024-12-23)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Resolve issue with `output` property of `build` target
|
|
6
|
+
([735e496d](https://github.com/storm-software/storm-ops/commit/735e496d))
|
|
7
|
+
|
|
8
|
+
## 1.207.1 (2024-12-23)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **workspace-tools:** Resolve issue with `tsup` plugin's regex
|
|
13
|
+
([3f0e2c52](https://github.com/storm-software/storm-ops/commit/3f0e2c52))
|
|
14
|
+
|
|
1
15
|
## 1.207.0 (2024-12-23)
|
|
2
16
|
|
|
3
17
|
### Features
|
package/meta.json
CHANGED
|
@@ -24797,7 +24797,7 @@
|
|
|
24797
24797
|
"format": "esm"
|
|
24798
24798
|
},
|
|
24799
24799
|
"packages/workspace-tools/src/plugins/typescript/tsup.ts": {
|
|
24800
|
-
"bytes":
|
|
24800
|
+
"bytes": 3886,
|
|
24801
24801
|
"imports": [
|
|
24802
24802
|
{
|
|
24803
24803
|
"path": "@nx/devkit",
|
|
@@ -68548,13 +68548,13 @@
|
|
|
68548
68548
|
"entryPoint": "packages/workspace-tools/src/plugins/typescript/tsup.ts",
|
|
68549
68549
|
"inputs": {
|
|
68550
68550
|
"packages/workspace-tools/src/plugins/typescript/tsup.ts": {
|
|
68551
|
-
"bytesInOutput":
|
|
68551
|
+
"bytesInOutput": 3853
|
|
68552
68552
|
},
|
|
68553
68553
|
"packages/workspace-tools/src/utils/project-tags.ts": {
|
|
68554
68554
|
"bytesInOutput": 2559
|
|
68555
68555
|
}
|
|
68556
68556
|
},
|
|
68557
|
-
"bytes":
|
|
68557
|
+
"bytes": 7488
|
|
68558
68558
|
},
|
|
68559
68559
|
"dist/packages/workspace-tools/src/utils/index.js": {
|
|
68560
68560
|
"imports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.207.
|
|
3
|
+
"version": "1.207.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
|
|
6
6
|
"repository": {
|
|
@@ -122,7 +122,7 @@ var setDefaultProjectTags = (project, plugin) => {
|
|
|
122
122
|
// packages/workspace-tools/src/plugins/typescript/tsup.ts
|
|
123
123
|
var name = "storm-software/typescript/tsup";
|
|
124
124
|
var createNodes = [
|
|
125
|
-
"
|
|
125
|
+
"**/tsup.config.ts",
|
|
126
126
|
(file, opts, ctx) => {
|
|
127
127
|
const projectRoot = createProjectRoot(file, ctx.workspaceRoot);
|
|
128
128
|
if (!projectRoot) {
|
|
@@ -151,48 +151,45 @@ Please add it to your dependencies by running "pnpm add tsup -D --filter="${pack
|
|
|
151
151
|
packageJson,
|
|
152
152
|
nxJson
|
|
153
153
|
);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
inputs: [file, "typescript", "^production"],
|
|
158
|
-
outputs: ["{workspaceRoot}/{projectRoot}/dist"],
|
|
159
|
-
executor: "nx:run-commands",
|
|
160
|
-
dependsOn: ["clean", "^build"],
|
|
161
|
-
options: {
|
|
162
|
-
command: `tsup --config="${file}"`,
|
|
163
|
-
cwd: "{projectRoot}"
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
if (!targets.build) {
|
|
168
|
-
targets.build = {
|
|
169
|
-
cache: true,
|
|
170
|
-
inputs: [file, "typescript", "^production"],
|
|
171
|
-
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
172
|
-
executor: "nx:run-commands",
|
|
173
|
-
dependsOn: ["build-base"],
|
|
174
|
-
options: {
|
|
175
|
-
commands: [
|
|
176
|
-
`pnpm copyfiles LICENSE dist/${projectRoot}`,
|
|
177
|
-
`pnpm copyfiles --up=2 ./${projectRoot}/README.md ./${projectRoot}/package.json dist/${projectRoot}`,
|
|
178
|
-
`pnpm copyfiles --up=3 ./${projectRoot}/dist/* dist/${projectRoot}/dist`
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
if (!targets.clean) {
|
|
184
|
-
targets.clean = {
|
|
185
|
-
cache: true,
|
|
186
|
-
executor: "nx:run-commands",
|
|
187
|
-
inputs: ["typescript", "^production"],
|
|
188
|
-
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
189
|
-
options: {
|
|
190
|
-
command: "pnpm exec rimraf dist/{projectRoot}",
|
|
191
|
-
color: true,
|
|
192
|
-
cwd: "{workspaceRoot}"
|
|
193
|
-
}
|
|
194
|
-
};
|
|
154
|
+
let relativeRoot = projectRoot.replace(ctx.workspaceRoot, "").replaceAll("\\", "/");
|
|
155
|
+
if (relativeRoot.startsWith("/")) {
|
|
156
|
+
relativeRoot = relativeRoot.slice(1);
|
|
195
157
|
}
|
|
158
|
+
targets["build-base"] = {
|
|
159
|
+
cache: true,
|
|
160
|
+
inputs: [file, "typescript", "^production"],
|
|
161
|
+
outputs: [`${relativeRoot}/dist`],
|
|
162
|
+
executor: "nx:run-commands",
|
|
163
|
+
dependsOn: ["clean", "^build"],
|
|
164
|
+
options: {
|
|
165
|
+
command: `tsup --config="${file}"`,
|
|
166
|
+
cwd: relativeRoot
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
targets.build = {
|
|
170
|
+
cache: true,
|
|
171
|
+
inputs: [file, "typescript", "^production"],
|
|
172
|
+
outputs: [`dist/${relativeRoot}`],
|
|
173
|
+
executor: "nx:run-commands",
|
|
174
|
+
dependsOn: ["build-base"],
|
|
175
|
+
options: {
|
|
176
|
+
commands: [
|
|
177
|
+
`pnpm copyfiles LICENSE dist/${relativeRoot}`,
|
|
178
|
+
`pnpm copyfiles --up=2 ./${relativeRoot}/README.md ./${relativeRoot}/package.json dist/${relativeRoot}`,
|
|
179
|
+
`pnpm copyfiles --up=3 ./${relativeRoot}/dist/* dist/${relativeRoot}/dist`
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
targets.clean = {
|
|
184
|
+
executor: "nx:run-commands",
|
|
185
|
+
inputs: [file, "typescript", "^production"],
|
|
186
|
+
options: {
|
|
187
|
+
commands: [
|
|
188
|
+
`pnpm exec rimraf dist/${relativeRoot}`,
|
|
189
|
+
`pnpm exec rimraf ${relativeRoot}/dist`
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
};
|
|
196
193
|
setDefaultProjectTags(project, name);
|
|
197
194
|
return project?.name ? {
|
|
198
195
|
projects: {
|