From 119e318060ba87333cb151955136cfc1b49b89e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=ED=95=98=EC=9A=B4?= <79410456+henrynoowah@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:06:16 +0900 Subject: [PATCH] chore: tui added --- packages/ui/package.json | 13 ++++++++----- packages/ui/postcss.config.mjs | 5 +++++ turbo.json | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 packages/ui/postcss.config.mjs diff --git a/packages/ui/package.json b/packages/ui/package.json index eb5955e..5fe8302 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -4,11 +4,12 @@ "description": "", "license": "MIT", "scripts": { - "build": "npm run build:tailwind & tsup --clean", + "build": "pnpm build:tailwind & tsup --clean", "lint": "eslint src/**/*.tsx --max-warnings 0", - "dev": "concurrently \"npm run watch:tailwind --watch\" \"tsup --watch\"", - "watch:tailwind": "npx tailwind -i ./src/global.css -o ./dist/index.css --watch", - "build:tailwind": "npx tailwind -i ./src/global.css -o ./dist/index.css", + "dev": "concurrently \"pnpm run watch:tailwind --watch\" \"tsup --watch\"", + "watch:tailwind": "pnpm tailwindcss -i ./src/global.css -o ./dist/index.css --watch", + "build:tailwind": "pnpm tailwindcss -i ./src/global.css -o ./dist/index.css", + "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "type-check": "tsc --noEmit" }, "main": "./dist/index.js", @@ -32,7 +33,9 @@ }, "./styles.css": "./dist/index.css", "./types": { - "import": "./dist/types.d.ts" + "import": "./dist/types.d.ts", + "require": "./dist/types.d.ts", + "default": "./dist/types.d.ts" } }, "files": [ diff --git a/packages/ui/postcss.config.mjs b/packages/ui/postcss.config.mjs new file mode 100644 index 0000000..b776c62 --- /dev/null +++ b/packages/ui/postcss.config.mjs @@ -0,0 +1,5 @@ +export default { + plugins: { + "@tailwindcss/postcss": {}, + } +} \ No newline at end of file diff --git a/turbo.json b/turbo.json index cabd354..0f92e05 100644 --- a/turbo.json +++ b/turbo.json @@ -1,5 +1,6 @@ { "$schema": "https://turbo.build/schema.json", + "ui": "tui", "tasks": { "build": { "inputs": ["$TURBO_DEFAULT$", ".env*"],