@storm-software/workspace-tools 1.207.1 → 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 +7 -0
- package/meta.json +3 -3
- package/package.json +1 -1
- package/src/plugins/typescript/tsup.js +12 -8
package/CHANGELOG.md
CHANGED
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": {
|
|
@@ -151,28 +151,32 @@ Please add it to your dependencies by running "pnpm add tsup -D --filter="${pack
|
|
|
151
151
|
packageJson,
|
|
152
152
|
nxJson
|
|
153
153
|
);
|
|
154
|
+
let relativeRoot = projectRoot.replace(ctx.workspaceRoot, "").replaceAll("\\", "/");
|
|
155
|
+
if (relativeRoot.startsWith("/")) {
|
|
156
|
+
relativeRoot = relativeRoot.slice(1);
|
|
157
|
+
}
|
|
154
158
|
targets["build-base"] = {
|
|
155
159
|
cache: true,
|
|
156
160
|
inputs: [file, "typescript", "^production"],
|
|
157
|
-
outputs: [
|
|
161
|
+
outputs: [`${relativeRoot}/dist`],
|
|
158
162
|
executor: "nx:run-commands",
|
|
159
163
|
dependsOn: ["clean", "^build"],
|
|
160
164
|
options: {
|
|
161
165
|
command: `tsup --config="${file}"`,
|
|
162
|
-
cwd:
|
|
166
|
+
cwd: relativeRoot
|
|
163
167
|
}
|
|
164
168
|
};
|
|
165
169
|
targets.build = {
|
|
166
170
|
cache: true,
|
|
167
171
|
inputs: [file, "typescript", "^production"],
|
|
168
|
-
outputs: [
|
|
172
|
+
outputs: [`dist/${relativeRoot}`],
|
|
169
173
|
executor: "nx:run-commands",
|
|
170
174
|
dependsOn: ["build-base"],
|
|
171
175
|
options: {
|
|
172
176
|
commands: [
|
|
173
|
-
`pnpm copyfiles LICENSE dist/${
|
|
174
|
-
`pnpm copyfiles --up=2 ./${
|
|
175
|
-
`pnpm copyfiles --up=3 ./${
|
|
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`
|
|
176
180
|
]
|
|
177
181
|
}
|
|
178
182
|
};
|
|
@@ -181,8 +185,8 @@ Please add it to your dependencies by running "pnpm add tsup -D --filter="${pack
|
|
|
181
185
|
inputs: [file, "typescript", "^production"],
|
|
182
186
|
options: {
|
|
183
187
|
commands: [
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
`pnpm exec rimraf dist/${relativeRoot}`,
|
|
189
|
+
`pnpm exec rimraf ${relativeRoot}/dist`
|
|
186
190
|
]
|
|
187
191
|
}
|
|
188
192
|
};
|