use PNPM workspace monorepo
Limit the types of package management Strictly (default PNPM).
If you want to modify, you can change the engines
field in package.json.
use changesets
If husky not works:
chmod ug+x .husky/*
chmod ug+x .git/hooks/*
reference stackoverflow
lint command: pnpm run -r lint
commitlint will check commit message before you commit.
-
Change npm's
name
in package.json. -
Apply
NPM_TOKEN
and fill in your repo's secrets:
- Auto publish package by Changesets on Github Action.