From 5d039d0d0a7df19480320584710c95317575e767 Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Mon, 1 Apr 2024 20:46:23 +0530 Subject: [PATCH] Fix: copied over raw styles to output --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5863770..803045e 100644 --- a/package.json +++ b/package.json @@ -10,18 +10,19 @@ "exports": { ".": "./dist/index.js", "./styles": "./dist/index.css", + "./raw-styles": "./dist/raw/index.css", "./types": "./dist/types/index.d.ts" }, "scripts": { "build": "bun run ./esbuild.config.js", - "build:css": "bunx tailwindcss -i src/styles/index.css -o ./dist/index.css --minify", + "build:css": "bunx tailwindcss -i src/styles/index.css -o ./dist/index.css --minify && cp -r src/styles dist/raw && rm dist/raw/storybook.css", "build:types": "bunx tsc --project ./tsconfig.declaration.json && tsc-alias --project ./tsconfig.declaration.json && cd dist && ls -d */ | grep -v 'types' | xargs rm -rf", "bump-version": "bunx --bun automatic-versioning --disable-auto-sync --recursive $(if [ \"$TAG\" != \"latest\" ]; then echo --prerelease; fi) --prerelease-branch=development --prerelease-tag=$TAG --name=@mezh-hq/react-seat-toolkit --ignore-prefixes=ci", "format": "bunx prettier --write --cache \"**/*.{js,jsx,ts,tsx,md,css,yml}\"", "lint": "bun run --bun eslint . --ext js,jsx,ts,tsx,mdx --ignore-path .gitignore --fix --cache --report-unused-disable-directives", "storybook": "NODE_ENV=storybook storybook dev -p 6006", "build-storybook": "storybook build", - "postbuild": "bun build:css & bun build:types", + "postbuild": "bun build:types && bun build:css", "postinstall": "patch-package", "prepare": "lefthook install", "release": "bunx github:akalanka47000/bunpublish --tag=${TAG:=latest} --provenance",