This libs are using npm workspaces to achieve mono-repo multi-packages
pnpm i --frozen-lockfile
pnpm run generate -- "<name-of-package>"
Dependencies & devDependencies are installed into your new package with
cd packages/<target>
pnpm add some-package
cd -
To in make internal dependencies, go to target package and do:
cd packages/<target>
pnpm add --workspace <name-of-package>
cd -
From root run
pnpm run test
pnpm run build
These commands will test and build all the packages respectively
The pnpm-script ws:version:set:all will ensure all packages are updated with same strategy, and git tagging is done right
pnpm run ws:version:set:all <strategy: major|minor|patch....>
Changing version to a single workspace package, simply enter the package and do
cd packages/<target>
pnpm version <strategy: major|minor|patch....>
../../scripts/ws-scripts.sh gitCommitTagPush
cd -
pnpm run build
cd packages/<target>
pnpm publish
cd -
or
pnpm run build
pnpm -r publish --access=public