Skip to content

Commit

Permalink
chore(package): update postinstall script and add client:prepare script
Browse files Browse the repository at this point in the history
Removed `package-lock.json` from the fixtures and updated the `postinstall`
script in `package.json` to ensure proper build execution for all packages.
Added a new `client:prepare` script to streamline client preparation tasks.
  • Loading branch information
s00d committed Jan 20, 2025
1 parent 2e1488e commit a00afa7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 29 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"internals.d.ts"
],
"scripts": {
"prepack": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && pnpm run client:build",
"postinstall": "pnpm --filter \"./packages/**\" run build && nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && pnpm run client:build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
Expand All @@ -60,6 +60,7 @@
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
"test:workspaces": "pnpm recursive run test",
"client:build": "nuxi generate client",
"client:prepare": "nuxi client:prepare client",
"client:dev": "nuxi dev client --port 3300",
"clean": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"typecheck": "tsc --noEmit",
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"prepare": "nuxt prepare",
"client:prepare": "nuxt prepare",
"generate": "nuxi generate",
"test": "echo \"Error: no test specified\""
},
"devDependencies": {
"nuxt-i18n-micro": "v1.63.2"
"nuxt-i18n-micro": "v1.65.0"
}
}
25 changes: 19 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions test/fixtures/i18n-micro/package-lock.json

This file was deleted.

0 comments on commit a00afa7

Please sign in to comment.