Skip to content

Commit 4ab3a5c

Browse files
committed
build: 👷 add pre publish script to build the headless version of the lib
1 parent 261a1ad commit 4ab3a5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"fmt": "prettier --write .",
6060
"fmt.check": "prettier --check .",
6161
"lint": "eslint \"src/**/*.ts*\"",
62-
"release": "bumpp --commit --tag --push && npm run build && npm publish",
62+
"release": "bumpp --commit --tag --push && npm publish",
63+
"prepublishOnly": "PKG=headless npm run build && PKG=raw npm run build",
6364
"postpublish": "rm -rf headless index.d.ts index.qwik.cjs index.qwik.mjs toaster-styled.d.ts",
6465
"start": "vite --open --mode ssr",
6566
"test": "echo \"No test specified\" && exit 0",
@@ -82,4 +83,4 @@
8283
"vite-plugin-dts": "3.8.1",
8384
"vite-tsconfig-paths": "4.3.2"
8485
}
85-
}
86+
}

0 commit comments

Comments
 (0)