Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 18 hours 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 (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-24T05:53:10.000Z (9 months ago)
- Last Synced: 2024-02-24T06:28:41.998Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- 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.