https://github.com/thdk/nx-release-ts-packages
Example nx workspace containing multiple typescript libraries which can be published using nx release command.
https://github.com/thdk/nx-release-ts-packages
Last synced: 5 months ago
JSON representation
Example nx workspace containing multiple typescript libraries which can be published using nx release command.
- Host: GitHub
- URL: https://github.com/thdk/nx-release-ts-packages
- Owner: thdk
- Created: 2024-02-17T22:50:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T05:53:10.000Z (over 2 years ago)
- Last Synced: 2024-12-29T13:48:27.081Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# NxTsPackagesRelease
Example nx workspace containing multiple typescript packages to be published using `nx release`.
## Generate workspace
```sh
npx create-nx-workspace@latest --preset ts --ci skip nx-ts-packages-release
```
## Add a ts lib
```sh
npx nx g @nx/js:lib my-lib \
--unitTestRunner none \
--bundler tsc \
--publishable \
--importPath @my-org/my-lib \
--directory packages/my-lib \
--projectNameAndRootFormat as-provided
```
## Add another ts lib
```sh
npx nx g @nx/js:lib my-lib-2 \
--unitTestRunner none \
--bundler tsc \
--publishable \
--importPath @my-org/my-lib-2 \
--directory packages/my-lib-2 \
--projectNameAndRootFormat as-provided
```
## Release
```sh
npx nx release --skip-publish
```
Note that this repo is using conventional-commits and `nx release version` currently only bumps versions for `feat:` and `fix:` commits.