@storm-software/workspace-tools 1.66.19 → 1.66.20
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,15 @@
|
|
|
1
|
+
## 1.66.20 (2024-03-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Enhance `npm-publish` executor to better handle publish directory ([9101ca92](https://github.com/storm-software/storm-ops/commit/9101ca92))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.66.19 (2024-03-29)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -22,9 +22,13 @@ export default async function npmPublishExecutorFn(
|
|
|
22
22
|
if (!projectConfig) {
|
|
23
23
|
throw new Error(`Could not find project configuration for ${context.projectName}`);
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
const outputs = projectConfig?.targets?.build?.outputs;
|
|
25
27
|
const packageRoot = joinPathFragments(
|
|
26
28
|
context.root,
|
|
27
|
-
options.packageRoot
|
|
29
|
+
options.packageRoot ??
|
|
30
|
+
(outputs && outputs.length > 0 ? outputs[0] : null) ??
|
|
31
|
+
joinPathFragments("dist", projectConfig.root)
|
|
28
32
|
);
|
|
29
33
|
|
|
30
34
|
const packageJsonPath = joinPathFragments(packageRoot, "package.json");
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
},
|
|
12
12
|
"registry": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"description": "The registry to publish the package to."
|
|
14
|
+
"description": "The registry to publish the package to.",
|
|
15
|
+
"format": "uri",
|
|
16
|
+
"default": "https://registry.npmjs.org/"
|
|
15
17
|
},
|
|
16
18
|
"tag": {
|
|
17
19
|
"type": "string",
|
|
@@ -22,5 +24,5 @@
|
|
|
22
24
|
"description": "Whether to run the command without actually publishing the package to the registry."
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
|
-
"required": []
|
|
26
|
-
}
|
|
27
|
+
"required": ["registry"]
|
|
28
|
+
}
|