Skip to content

Commit

Permalink
chore: build nuxt module before release (#702)
Browse files Browse the repository at this point in the history
<!---
☝️ PR title should follow conventional commits
(https://conventionalcommits.org)
-->

### 🔗 Linked issue

Fixes #689.
<!-- If it resolves an open issue, please link the issue here. For
example "Resolves #123" -->

### ❓ Type of change

<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply. -->

- [ ] 📖 Documentation (updates to the documentation or readme)
- [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [ ] 👌 Enhancement (improving an existing functionality)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and
libraries)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to change)

### 📚 Description

The nuxt module was not built while running `pnpm publish`. This is
fixed by adding a `prepack` script. Also add a git push (with tags) to
the `release` script.

<!-- Describe your changes in detail -->
<!-- Why is this change required? What problem does it solve? -->
  • Loading branch information
tobiasdiez authored Jul 12, 2024
1 parent 3408f92 commit 6aba147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"lint:eslint": "eslint --max-warnings=0 --report-unused-disable-directives .",
"lint:prettier": "prettier --check .",
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:prettier --write",
"prepack": "pnpm build",
"release": "pnpm jiti prepare-release.ts && pnpm publish --recursive",
"release": "pnpm jiti prepare-release.ts && pnpm publish --recursive && git push --follow-tags",
"prepare": "pnpm run --filter=./playground/** prepare",
"docs:dev": "pnpm run --filter=./docs/** dev",
"docs:build": "pnpm run --filter=./docs/** build",
Expand Down
3 changes: 2 additions & 1 deletion packages/nuxt-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
],
"scripts": {
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
"build": "nuxt-module-build build"
"build": "nuxt-module-build build",
"prepack": "nuxt-module-build build"
},
"dependencies": {
"@nuxt/devtools-kit": "^1.0.8",
Expand Down

0 comments on commit 6aba147

Please sign in to comment.