Skip to content

Commit

Permalink
Fix(Nuxt): Incorrectly adding postinstall script to production
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jan 15, 2024
1 parent a9b1fee commit 47e8403
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "@master/css.nuxt",
"scripts": {
"build": "nuxt-module-build build --stub",
"dev": "nuxi dev playground",
"build": "nuxt prepare && nuxt-module-build build --stub",
"dev": "nuxt prepare && nuxi dev playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"lint": "eslint .",
"test": "vitest run",
"postinstall": "nuxt prepare"
"test": "nuxt prepare && vitest run"
},
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -34,6 +33,13 @@
"ssr"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/types.d.ts",
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
}
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"files": [
Expand Down

0 comments on commit 47e8403

Please sign in to comment.