Skip to content

Commit 7504519

Browse files
committed
Add pnpm publish-git
1 parent 07a4097 commit 7504519

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,4 @@ To create a release:
8787
1. Merge the feature PR into main. The commit message should follow conventional commits.
8888
1. Wait for release-please to run, which should result in a PR being opened. Merge that PR.
8989
1. `git checkout main && git pull main`
90-
1. `./scripts/publish.mjs --dry-run`
91-
1. Run above without `--dry-run`
90+
1. `pnpm publish-git`

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
"docs:build": "cd docs && pnpm build",
3939
"docs:deploy": "pnpm docs:build && netlify deploy --dir docs/build --prod",
4040
"watch": "pnpm run build:watch",
41-
"clean": "pnpm -r run clean && rm -rf packages/*/{package,*.tgz}",
41+
"clean": "pnpm -r run clean && rimraf packages/*/{package,*.tgz}",
4242
"format": "prettier --write .",
4343
"prettier:check": "prettier --list-different .",
44-
"postinstall": "./node_modules/ghooks/bin/install"
44+
"postinstall": "./node_modules/ghooks/bin/install",
45+
"publish-git": "sh -c 'if [ -n \"$(git status --porcelain)\" ]; then echo \"Repository is dirty. Commit or stash your changes first.\" >&2; exit 1; fi && pnpm clean && pnpm build && ./scripts/publish.mjs && git reset --hard HEAD'"
4546
},
4647
"devDependencies": {
4748
"@types/node": "^20.10.3",

tsconfig-common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"exclude": ["node_modules"],
2+
"exclude": ["node_modules", "package"],
33
"compilerOptions": {
44
"composite": true,
55
"sourceMap": true,

0 commit comments

Comments
 (0)