Skip to content

Commit 25b9892

Browse files
committed
refactor(snackbar): update package json for export style
1 parent 27d9bcb commit 25b9892

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/snackbar/package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@
2929
"types": "./dist/main.d.ts",
3030
"import": "./dist/main.mjs",
3131
"require": "./dist/main.cjs"
32-
}
32+
},
33+
"./style": "./dist/style/main.css"
3334
},
3435
"main": "./dist/main.cjs",
3536
"module": "./dist/main.mjs",
3637
"types": "./dist/main.d.ts",
38+
"style": "./dist/style/main.css",
3739
"files": [
3840
"**/*.{js,mjs,cjs,map,d.ts,html,md,LEGAL.txt}",
3941
"LICENSE",
4042
"!**/*.test.js",
41-
"!demo/**/*"
43+
"!demo/**/*",
44+
"style/main.css"
4245
],
4346
"scripts": {
4447
"build": "wireit",
@@ -76,7 +79,7 @@
7679
]
7780
},
7881
"build:es": {
79-
"command": "nano-build --preset=module",
82+
"command": "nano-build --preset=module && cp style/main.css dist/style/",
8083
"files": [
8184
"src",
8285
"tsconfig.json"

0 commit comments

Comments
 (0)