From e68eb2efee977408a73c19cd13872be43f448928 Mon Sep 17 00:00:00 2001 From: vince Date: Sat, 20 Jun 2026 05:23:04 +0200 Subject: [PATCH] build: add turbo workspace manifests --- package.json | 50 +++++++++++++++++++++++++++++++++++++++++++++ tsconfig.build.json | 18 ++++++++++++++++ tsconfig.json | 8 ++++++++ 3 files changed, 76 insertions(+) create mode 100644 package.json create mode 100644 tsconfig.build.json create mode 100644 tsconfig.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..3afa92e --- /dev/null +++ b/package.json @@ -0,0 +1,50 @@ +{ + "name": "@dimensionlab/ui", + "version": "0.0.1", + "private": true, + "type": "module", + "sideEffects": ["*.css", "**/*.css"], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./styles.css": "./dist/styles.css", + "./tokens.css": "./dist/tokens.css" + }, + "scripts": { + "build": "rm -rf dist && tsc -p tsconfig.build.json && mkdir -p dist/components && cp src/styles.css dist/styles.css && cp src/tokens.css dist/tokens.css && cp src/components/styles.css dist/components/styles.css", + "check": "tsc --noEmit", + "test": "vitest run", + "test:unit": "vitest run", + "storybook": "storybook dev -p 6006 --host 0.0.0.0", + "build-storybook": "storybook build" + }, + "dependencies": { + "@fontsource-variable/geist": "^5.2.9", + "@iconify/react": "^6.0.2", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "lucide-react": "^1.21.0", + "radix-ui": "^1.6.0", + "tailwind-merge": "^3.6.0", + "tw-animate-css": "^1.4.0", + "uplot": "^1.6.32" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + }, + "devDependencies": { + "@storybook/addon-a11y": "^10.4.6", + "@storybook/addon-vitest": "^10.4.6", + "@storybook/react-vite": "^10.4.6", + "@types/bun": "^1.3.14", + "@types/node": "^25.9.3", + "@types/react": "^19.2.17", + "@types/react-dom": "^19.2.3", + "typescript": "^6.0.3", + "vite": "^8.0.16", + "vitest": "^4.1.9" + } +} diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..d942d59 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,18 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": false, + "noEmit": false, + "outDir": "dist", + "rootDir": "src" + }, + "exclude": [ + "dist", + "node_modules", + "storybook-static", + "src/**/*.test.ts", + "src/**/*.test.tsx", + "src/stories/**" + ] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..2ad97bc --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "baseUrl": "." + }, + "include": ["src/**/*.ts", "src/**/*.tsx", ".storybook/**/*.ts"], + "exclude": ["dist", "node_modules", "storybook-static"] +}