diff --git a/examples/nuxt-vite/nuxt-host/package.json b/examples/nuxt-vite/nuxt-host/package.json index 558a8c9..7dc3cec 100644 --- a/examples/nuxt-vite/nuxt-host/package.json +++ b/examples/nuxt-vite/nuxt-host/package.json @@ -3,11 +3,12 @@ "private": true, "type": "module", "scripts": { + "prebuild": "nuxt prepare", "build": "nuxt build", + "predev": "nuxt prepare", "dev": "NODE_OPTIONS=--experimental-vm-modules nuxt dev --experimental-vm-modules --port=3001", "generate": "nuxt generate", - "preview": "NITRO_PORT=3001 nuxt preview", - "postinstall": "nuxt prepare" + "preview": "NITRO_PORT=3001 nuxt preview" }, "dependencies": { "nuxt": "^3.13.0", diff --git a/examples/nuxt-vite/nuxt-remote/package.json b/examples/nuxt-vite/nuxt-remote/package.json index 25e6f10..5359661 100644 --- a/examples/nuxt-vite/nuxt-remote/package.json +++ b/examples/nuxt-vite/nuxt-remote/package.json @@ -3,11 +3,12 @@ "private": true, "type": "module", "scripts": { + "prebuild": "nuxt prepare", "build": "nuxt build", + "predev": "nuxt prepare", "dev": "NODE_OPTIONS=--experimental-vm-modules nuxt dev --experimental-vm-modules", "generate": "nuxt generate", - "preview": "nuxt preview --port=3001", - "postinstall": "nuxt prepare" + "preview": "nuxt preview --port=3001" }, "dependencies": { "@module-federation/vite": "workspace:*", diff --git a/package.json b/package.json index b28f45b..77becea 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "lib/**/*" ], "scripts": { - "postinstall": "npm run build", "prepare": "husky install", "format": "pretty-quick", "dev": "microbundle watch --no-sourcemap --compress=false",