Skip to content

Commit d813f14

Browse files
authored
fix(angular): publish from the dist directory (#8151)
**Related Issue:** #7860 ## Summary Angular has an unusual workflow where you need to `cd` into the library's `dist` directory and run `npm publish` from there. I found related Lerna issues that culminated in the ability to publish a particular package from a different directory. This is the doc I found for the config option: https://github.com/lerna/lerna/tree/main/libs/commands/publish#publishconfigdirectory Unfortunately, it didn't end up working, so `v1.10.1-next.3` of the angular wrapper is broken. I'm not aware of a way to test the results of `lerna publish` without actually publishing. I ended up copying the config from the `arcgis-web-components` repo's angular wrapper once I remembered they use Lerna.
1 parent 4ef8b67 commit d813f14

File tree

2 files changed

+11
-63
lines changed

2 files changed

+11
-63
lines changed

package-lock.json

Lines changed: 3 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/calcite-components-angular/projects/component-library/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@
1818
"peerDependencies": {
1919
"@angular/common": "^16.2.0",
2020
"@angular/core": "^16.2.0",
21-
"@esri/calcite-components": "1.10.0"
21+
"@esri/calcite-components": "1.10.1-next.3"
2222
},
2323
"devDependencies": {
24-
"@esri/calcite-components": "1.10.0"
24+
"@esri/calcite-components": "1.10.1-next.3"
2525
},
2626
"dependencies": {
2727
"tslib": "2.3.0"
2828
},
29-
"publishConfig": {
30-
"directory": "./dist"
29+
"lerna": {
30+
"command": {
31+
"publish": {
32+
"directory": "./dist"
33+
}
34+
}
3135
},
3236
"license": "SEE LICENSE.md"
3337
}

0 commit comments

Comments
 (0)