Skip to content

Commit 8901cbb

Browse files
committed
chore: add build scripts for styles + export bundled & minified css
1 parent e3b34dd commit 8901cbb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pheralb/toast",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"author": "@pheralb_",
55
"keywords": [
66
"react",
@@ -20,13 +20,16 @@
2020
"require": "./dist/main.cjs",
2121
"import": "./dist/main.js",
2222
"types": "./dist/main.d.ts"
23-
}
23+
},
24+
"./dist/styles.css": "./dist/styles.css"
2425
},
2526
"files": [
2627
"dist"
2728
],
2829
"scripts": {
2930
"build": "tsc && tsup",
31+
"build:library": "tsc && tsup",
32+
"build:styles": "lightningcss --minify --bundle ./src/styles/globals.css -o ./dist/styles.css",
3033
"dev": "tsup --watch",
3134
"test": "vitest run --config ./vitest.config.ts",
3235
"test:watch": "vitest --watch",
@@ -47,6 +50,7 @@
4750
"eslint-plugin-react-hooks": "4.6.2",
4851
"eslint-plugin-react-refresh": "0.4.7",
4952
"jsdom": "24.1.0",
53+
"lightningcss-cli": "1.28.2",
5054
"react": "18.3.1",
5155
"react-dom": "18.3.1",
5256
"tsup": "8.1.0",

0 commit comments

Comments
 (0)