From f1961d56cdeed36cce1d31ec7f1237a070fbbec5 Mon Sep 17 00:00:00 2001 From: ahmadshaheer Date: Tue, 1 Oct 2024 22:01:22 +0430 Subject: [PATCH 1/3] feat: setup prettier, eslint, conventional commits, prevent push to main branch --- .lintstagedrc.js | 4 + .prettierignore | 4 + packages/button/package.json | 108 ++++++++++++------------- packages/input/package.json | 110 +++++++++++++------------- packages/tailwind-config/package.json | 3 + packages/theme/package.json | 47 +++++------ turbo.json | 45 ++++++----- 7 files changed, 171 insertions(+), 150 deletions(-) create mode 100644 .lintstagedrc.js diff --git a/.lintstagedrc.js b/.lintstagedrc.js new file mode 100644 index 0000000..d94ea92 --- /dev/null +++ b/.lintstagedrc.js @@ -0,0 +1,4 @@ +export default { + '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'], + '*.{json,md,yml}': ['prettier --write'], +}; diff --git a/.prettierignore b/.prettierignore index 6ecf73f..4066fc5 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,8 @@ node_modules +dist +build +.turbo +node_modules public build dist diff --git a/packages/button/package.json b/packages/button/package.json index aff37a6..3866db5 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -1,56 +1,56 @@ { - "name": "@signozhq/button", - "version": "0.0.0", - "sideEffects": false, - "license": "MIT", - "type": "module", - "exports": { - ".": { - "types": "./dist/button.d.ts", - "import": "./dist/button.js" - } - }, - "main": "./dist/button.js", - "module": "./dist/button.js", - "types": "./dist/button.d.ts", - "files": [ - "dist" - ], - "scripts": { - "build": "vite build", - "dev": "vite build --watch", - "lint": "eslint . --max-warnings 0", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" - }, - "devDependencies": { - "@repo/eslint-config": "workspace:*", - "@repo/typescript-config": "workspace:*", - "@signozhq/tailwind-config": "workspace:*", - "@types/node": "^22.5.5", - "@types/react": "^18.2.61", - "@types/react-dom": "^18.2.19", - "@vitejs/plugin-react": "^4.2.1", - "autoprefixer": "^10.4.20", - "eslint": "^9.11.0", - "postcss": "^8.4.47", - "react-dom": "^18.2.0", - "tailwindcss": "^3.4.12", - "typescript": "^5.3.3", - "vite": "^5.0.0", - "vite-plugin-lib-inject-css": "^2.1.1", - "vite-plugin-dts": "^4.2.1" - }, - "dependencies": { - "@radix-ui/react-icons": "^1.3.0", - "@radix-ui/react-slot": "^1.1.0", - "class-variance-authority": "^0.7.0", - "clsx": "^2.1.1", - "lucide-react": "^0.445.0", - "react": "^18.2.0", - "tailwind-merge": "^2.5.2", - "tailwindcss-animate": "^1.0.7" - }, - "publishConfig": { - "access": "public" - } + "name": "@signozhq/button", + "version": "0.0.0", + "sideEffects": false, + "license": "MIT", + "type": "module", + "exports": { + ".": { + "types": "./dist/button.d.ts", + "import": "./dist/button.js" + } + }, + "main": "./dist/button.js", + "module": "./dist/button.js", + "types": "./dist/button.d.ts", + "files": [ + "dist" + ], + "scripts": { + "build": "vite build", + "dev": "vite build --watch", + "lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix && prettier --write .", + "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + }, + "devDependencies": { + "@repo/eslint-config": "workspace:*", + "@repo/typescript-config": "workspace:*", + "@signozhq/tailwind-config": "workspace:*", + "@types/node": "^22.5.5", + "@types/react": "^18.2.61", + "@types/react-dom": "^18.2.19", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.20", + "eslint": "^9.11.0", + "postcss": "^8.4.47", + "react-dom": "^18.2.0", + "tailwindcss": "^3.4.12", + "typescript": "^5.3.3", + "vite": "^5.0.0", + "vite-plugin-lib-inject-css": "^2.1.1", + "vite-plugin-dts": "^4.2.1" + }, + "dependencies": { + "@radix-ui/react-icons": "^1.3.0", + "@radix-ui/react-slot": "^1.1.0", + "class-variance-authority": "^0.7.0", + "clsx": "^2.1.1", + "lucide-react": "^0.445.0", + "react": "^18.2.0", + "tailwind-merge": "^2.5.2", + "tailwindcss-animate": "^1.0.7" + }, + "publishConfig": { + "access": "public" + } } diff --git a/packages/input/package.json b/packages/input/package.json index 0e1c966..de5c234 100644 --- a/packages/input/package.json +++ b/packages/input/package.json @@ -1,57 +1,57 @@ { - "name": "@signozhq/input", - "version": "0.0.0", - "sideEffects": false, - "license": "MIT", - "type": "module", - "exports": { - ".": { - "types": "./dist/input.d.ts", - "import": "./dist/input.js" - } - }, - "main": "./dist/input.js", - "module": "./dist/input.js", - "types": "./dist/input.d.ts", - "files": [ - "dist" - ], - "scripts": { - "build": "vite build", - "dev": "vite build --watch", - "lint": "eslint . --max-warnings 0", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" - }, - "devDependencies": { - "@repo/eslint-config": "workspace:*", - "@repo/typescript-config": "workspace:*", - "@signozhq/tailwind-config": "workspace:*", - "@types/node": "^22.5.5", - "@types/react": "^18.2.61", - "@types/react-dom": "^18.2.19", - "@vitejs/plugin-react": "^4.2.1", - "autoprefixer": "^10.4.20", - "eslint": "^9.11.0", - "postcss": "^8.4.47", - "react-dom": "^18.2.0", - "tailwindcss": "^3.4.12", - "typescript": "^5.3.3", - "vite": "^5.0.0", - "vite-plugin-lib-inject-css": "^2.1.1", - "vite-plugin-dts": "^4.2.1" - }, - "dependencies": { - "@radix-ui/react-icons": "^1.3.0", - "@radix-ui/react-slot": "^1.1.0", - "class-variance-authority": "^0.7.0", - "clsx": "^2.1.1", - "lucide-react": "^0.441.0", - "react": "^18.2.0", - "tailwind-merge": "^2.5.2", - "tailwindcss-animate": "^1.0.7" - }, - "publishConfig": { - "access": "public" - }, - "description": "test" + "name": "@signozhq/input", + "version": "0.0.0", + "sideEffects": false, + "license": "MIT", + "type": "module", + "exports": { + ".": { + "types": "./dist/input.d.ts", + "import": "./dist/input.js" + } + }, + "main": "./dist/input.js", + "module": "./dist/input.js", + "types": "./dist/input.d.ts", + "files": [ + "dist" + ], + "scripts": { + "build": "vite build", + "dev": "vite build --watch", + "lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix && prettier --write .", + "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + }, + "devDependencies": { + "@repo/eslint-config": "workspace:*", + "@repo/typescript-config": "workspace:*", + "@signozhq/tailwind-config": "workspace:*", + "@types/node": "^22.5.5", + "@types/react": "^18.2.61", + "@types/react-dom": "^18.2.19", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.20", + "eslint": "^9.11.0", + "postcss": "^8.4.47", + "react-dom": "^18.2.0", + "tailwindcss": "^3.4.12", + "typescript": "^5.3.3", + "vite": "^5.0.0", + "vite-plugin-lib-inject-css": "^2.1.1", + "vite-plugin-dts": "^4.2.1" + }, + "dependencies": { + "@radix-ui/react-icons": "^1.3.0", + "@radix-ui/react-slot": "^1.1.0", + "class-variance-authority": "^0.7.0", + "clsx": "^2.1.1", + "lucide-react": "^0.441.0", + "react": "^18.2.0", + "tailwind-merge": "^2.5.2", + "tailwindcss-animate": "^1.0.7" + }, + "publishConfig": { + "access": "public" + }, + "description": "test" } diff --git a/packages/tailwind-config/package.json b/packages/tailwind-config/package.json index 5dfe546..0f611d1 100644 --- a/packages/tailwind-config/package.json +++ b/packages/tailwind-config/package.json @@ -2,6 +2,9 @@ "name": "@signozhq/tailwind-config", "version": "0.0.0", "license": "MIT", + "scripts": { + "lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix && prettier --write ." + }, "dependencies": { "@signozhq/design-tokens": "latest", "tailwindcss": "^3.4.12", diff --git a/packages/theme/package.json b/packages/theme/package.json index 77206a6..0585fc4 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -1,25 +1,26 @@ { - "name": "@signozhq/theme", - "version": "0.0.0", - "type": "module", - "main": "./src/index.tsx", - "types": "./src/index.tsx", - "files": [ - "src" - ], - "scripts": { - "build": "vite build", - "dev": "vite build --watch" - }, - "dependencies": { - "@signozhq/design-tokens": "latest", - "@types/react": "^18.3.8", - "react": "^18.2.0" - }, - "devDependencies": { - "@vitejs/plugin-react": "^4.3.1", - "react-dom": "^18.2.0", - "vite": "^5.4.7", - "vite-plugin-dts": "^4.2.1" - } + "name": "@signozhq/theme", + "version": "0.0.0", + "type": "module", + "main": "./src/index.tsx", + "types": "./src/index.tsx", + "files": [ + "src" + ], + "scripts": { + "build": "vite build", + "lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix && prettier --write .", + "dev": "vite build --watch" + }, + "dependencies": { + "@signozhq/design-tokens": "latest", + "@types/react": "^18.3.8", + "react": "^18.2.0" + }, + "devDependencies": { + "@vitejs/plugin-react": "^4.3.1", + "react-dom": "^18.2.0", + "vite": "^5.4.7", + "vite-plugin-dts": "^4.2.1" + } } diff --git a/turbo.json b/turbo.json index 4ed88bf..bbf03ca 100644 --- a/turbo.json +++ b/turbo.json @@ -1,20 +1,29 @@ { - "$schema": "https://turbo.build/schema.json", - "tasks": { - "build": { - "inputs": ["$TURBO_DEFAULT$", ".env*"], - "outputs": ["dist/**", "storybook-static/**"], - "dependsOn": ["^build"] - }, - "lint": { - "dependsOn": ["^lint"] - }, - "dev": { - "cache": false, - "persistent": true - }, - "clean": { - "cache": false - } - } + "$schema": "https://turbo.build/schema.json", + "tasks": { + "build": { + "inputs": ["$TURBO_DEFAULT$", ".env*"], + "outputs": ["dist/**", "storybook-static/**"], + "dependsOn": ["^build"] + }, + "lint": { + "dependsOn": ["^lint"] + }, + "dev": { + "cache": false, + "persistent": true + }, + "clean": { + "cache": false + }, + "prepare": { + "cache": false + }, + "pre-commit": { + "cache": false + }, + "commitlint": { + "cache": false + } + } } From 830ff5648b3bfff13e06fa984cbd9d6943cdd106 Mon Sep 17 00:00:00 2001 From: ahmadshaheer Date: Thu, 3 Oct 2024 23:03:44 +0430 Subject: [PATCH 2/3] feat: badge component from scratch --- apps/docs/package.json | 1 + apps/docs/stories/badge.stories.tsx | 73 ++++++++++++++++++++++++++ packages/badge/.eslintrc.js | 4 ++ packages/badge/components.json | 19 +++++++ packages/badge/package.json | 57 +++++++++++++++++++++ packages/badge/postcss.config.js | 6 +++ packages/badge/src/badge.tsx | 39 ++++++++++++++ packages/badge/src/index.css | 3 ++ packages/badge/src/lib/utils.ts | 6 +++ packages/badge/tailwind.config.js | 7 +++ packages/badge/tsconfig.app.json | 10 ++++ packages/badge/tsconfig.json | 13 +++++ packages/badge/vite.config.ts | 31 +++++++++++ pnpm-lock.yaml | 79 +++++++++++++++++++++++++++++ 14 files changed, 348 insertions(+) create mode 100644 apps/docs/stories/badge.stories.tsx create mode 100644 packages/badge/.eslintrc.js create mode 100644 packages/badge/components.json create mode 100644 packages/badge/package.json create mode 100644 packages/badge/postcss.config.js create mode 100644 packages/badge/src/badge.tsx create mode 100644 packages/badge/src/index.css create mode 100644 packages/badge/src/lib/utils.ts create mode 100644 packages/badge/tailwind.config.js create mode 100644 packages/badge/tsconfig.app.json create mode 100644 packages/badge/tsconfig.json create mode 100644 packages/badge/vite.config.ts diff --git a/apps/docs/package.json b/apps/docs/package.json index 2610d59..af4eceb 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -11,6 +11,7 @@ "lint": "eslint ./stories/*.stories.tsx --max-warnings 0" }, "dependencies": { + "@signozhq/badge": "workspace:*", "@signozhq/button": "workspace:*", "@signozhq/input": "workspace:*", "@signozhq/tailwind-config": "workspace:*", diff --git a/apps/docs/stories/badge.stories.tsx b/apps/docs/stories/badge.stories.tsx new file mode 100644 index 0000000..6e7ed23 --- /dev/null +++ b/apps/docs/stories/badge.stories.tsx @@ -0,0 +1,73 @@ +import Badge from '@signozhq/badge'; +import type { Meta, StoryObj } from '@storybook/react'; + +const meta: Meta = { + title: 'Components/Badge', + component: Badge, + argTypes: { + variant: { + control: 'select', + options: ['primary', 'secondary', 'danger', 'outline'], + }, + size: { + control: 'select', + options: ['default', 'sm', 'lg', 'icon'], + }, + children: { control: 'text' }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + children: 'Badge', + variant: 'primary', + size: 'default', + }, +}; + +export const Secondary: Story = { + args: { + ...Default.args, + variant: 'secondary', + }, +}; + +export const Danger: Story = { + args: { + ...Default.args, + variant: 'danger', + }, +}; + +export const Outline: Story = { + args: { + ...Default.args, + variant: 'outline', + }, +}; + +export const Small: Story = { + args: { + ...Default.args, + size: 'sm', + }, +}; + +export const Large: Story = { + args: { + ...Default.args, + size: 'lg', + }, +}; + +export const Icon: Story = { + args: { + ...Default.args, + size: 'icon', + children: '🚀', + }, +}; diff --git a/packages/badge/.eslintrc.js b/packages/badge/.eslintrc.js new file mode 100644 index 0000000..003e695 --- /dev/null +++ b/packages/badge/.eslintrc.js @@ -0,0 +1,4 @@ +/** @type {import("eslint").Linter.Config} */ +export default { + extends: ['@repo/eslint-config/react.js'], +}; diff --git a/packages/badge/components.json b/packages/badge/components.json new file mode 100644 index 0000000..dd05342 --- /dev/null +++ b/packages/badge/components.json @@ -0,0 +1,19 @@ +{ + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "@signozhq/tailwind-config/tailwind.config.js", + "css": "src/index.css", + "baseColor": "zinc", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "src", + "lib": "@/lib", + "hooks": "@/hooks" + } +} diff --git a/packages/badge/package.json b/packages/badge/package.json new file mode 100644 index 0000000..ff98dfa --- /dev/null +++ b/packages/badge/package.json @@ -0,0 +1,57 @@ +{ + "name": "@signozhq/badge", + "version": "0.0.0", + "sideEffects": false, + "license": "MIT", + "type": "module", + "exports": { + ".": { + "types": "./dist/badge.d.ts", + "import": "./dist/badge.js" + } + }, + "main": "./dist/badge.js", + "module": "./dist/badge.js", + "types": "./dist/badge.d.ts", + "files": [ + "dist" + ], + "scripts": { + "build": "vite build", + "dev": "vite build --watch", + "lint": "eslint . --ext .ts,.tsx,.js,.jsx --fix && prettier --write .", + "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + }, + "devDependencies": { + "@repo/eslint-config": "workspace:*", + "@repo/typescript-config": "workspace:*", + "@signozhq/tailwind-config": "workspace:*", + "@types/node": "^22.5.5", + "@types/react": "^18.2.61", + "@types/react-dom": "^18.2.19", + "@vitejs/plugin-react": "^4.2.1", + "autoprefixer": "^10.4.20", + "eslint": "^9.11.0", + "postcss": "^8.4.47", + "react-dom": "^18.2.0", + "tailwindcss": "^3.4.12", + "typescript": "^5.3.3", + "vite": "^5.0.0", + "vite-plugin-lib-inject-css": "^2.1.1", + "vite-plugin-dts": "^4.2.1" + }, + "dependencies": { + "@radix-ui/react-icons": "^1.3.0", + "@radix-ui/react-slot": "^1.1.0", + "class-variance-authority": "^0.7.0", + "clsx": "^2.1.1", + "lucide-react": "^0.445.0", + "react": "^18.2.0", + "tailwind-merge": "^2.5.2", + "tailwindcss-animate": "^1.0.7" + }, + "publishConfig": { + "access": "public" + }, + "description": "a badge component from scratch" +} diff --git a/packages/badge/postcss.config.js b/packages/badge/postcss.config.js new file mode 100644 index 0000000..7b75c83 --- /dev/null +++ b/packages/badge/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/packages/badge/src/badge.tsx b/packages/badge/src/badge.tsx new file mode 100644 index 0000000..adac237 --- /dev/null +++ b/packages/badge/src/badge.tsx @@ -0,0 +1,39 @@ +import { cva, type VariantProps } from 'class-variance-authority'; +import React from 'react'; + +const badgeBaseClass = + 'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50'; + +const badgeVariants = cva(badgeBaseClass, { + variants: { + variant: { + primary: 'bg-primary text-primary-foreground hover:bg-blue-600', + secondary: + 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80', + danger: + 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90', + outline: + 'text-gray-700 border border-gray-300 hover:bg-gray-100 hover:text-gray-900', + }, + size: { + default: 'px-3 py-0.5', + sm: 'px-2 py-0.25 text-xs', + lg: 'px-4 py-1', + icon: 'p-0.5', + }, + }, + defaultVariants: { + variant: 'primary', + size: 'default', + }, +}); + +export interface BadgeProps + extends React.HTMLAttributes, + VariantProps {} + +const Badge = ({ className, variant, ...props }: BadgeProps) => { + return
; +}; + +export default Badge; diff --git a/packages/badge/src/index.css b/packages/badge/src/index.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/packages/badge/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/packages/badge/src/lib/utils.ts b/packages/badge/src/lib/utils.ts new file mode 100644 index 0000000..7637fb9 --- /dev/null +++ b/packages/badge/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { clsx, type ClassValue } from 'clsx'; +import { twMerge } from 'tailwind-merge'; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +} diff --git a/packages/badge/tailwind.config.js b/packages/badge/tailwind.config.js new file mode 100644 index 0000000..c869a57 --- /dev/null +++ b/packages/badge/tailwind.config.js @@ -0,0 +1,7 @@ +import sharedConfig from '@signozhq/tailwind-config/tailwind.config.js'; + +/** @type {import('tailwindcss').Config} */ +export default { + ...sharedConfig, + content: [...sharedConfig.content, './src/**/*.{js,ts,jsx,tsx}'], +}; diff --git a/packages/badge/tsconfig.app.json b/packages/badge/tsconfig.app.json new file mode 100644 index 0000000..2a949e7 --- /dev/null +++ b/packages/badge/tsconfig.app.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "forceConsistentCasingInFileNames": true, + "strict": true + } +} diff --git a/packages/badge/tsconfig.json b/packages/badge/tsconfig.json new file mode 100644 index 0000000..62d3a41 --- /dev/null +++ b/packages/badge/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "@repo/typescript-config/react-library.json", + "include": ["src"], + "exclude": ["dist", "build", "node_modules"], + "compilerOptions": { + "jsx": "react", + "outDir": "dist", + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/packages/badge/vite.config.ts b/packages/badge/vite.config.ts new file mode 100644 index 0000000..33d6551 --- /dev/null +++ b/packages/badge/vite.config.ts @@ -0,0 +1,31 @@ +import path from 'path'; +import { defineConfig } from 'vite'; +import dts from 'vite-plugin-dts'; +import react from '@vitejs/plugin-react'; +import { resolve } from 'path'; +import { libInjectCss } from 'vite-plugin-lib-inject-css'; + +export default defineConfig({ + build: { + lib: { + entry: resolve(__dirname, 'src/badge.tsx'), + name: 'Button', + fileName: 'badge', + }, + rollupOptions: { + external: ['react'], + output: { + globals: { + react: 'React', + }, + }, + treeshake: true, + }, + }, + plugins: [dts(), react(), libInjectCss()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + }, + }, +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09a1cc4..e8ed6f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,6 +65,9 @@ importers: apps/docs: dependencies: + '@signozhq/badge': + specifier: workspace:* + version: link:../../packages/badge '@signozhq/button': specifier: workspace:* version: link:../../packages/button @@ -182,6 +185,82 @@ importers: specifier: ^5.4.1 version: 5.4.8(@types/node@22.7.3) + packages/badge: + dependencies: + '@radix-ui/react-icons': + specifier: ^1.3.0 + version: 1.3.0(react@18.3.1) + '@radix-ui/react-slot': + specifier: ^1.1.0 + version: 1.1.0(@types/react@18.3.9)(react@18.3.1) + class-variance-authority: + specifier: ^0.7.0 + version: 0.7.0 + clsx: + specifier: ^2.1.1 + version: 2.1.1 + lucide-react: + specifier: ^0.445.0 + version: 0.445.0(react@18.3.1) + react: + specifier: ^18.2.0 + version: 18.3.1 + tailwind-merge: + specifier: ^2.5.2 + version: 2.5.2 + tailwindcss-animate: + specifier: ^1.0.7 + version: 1.0.7(tailwindcss@3.4.13) + devDependencies: + '@repo/eslint-config': + specifier: workspace:* + version: link:../eslint-config + '@repo/typescript-config': + specifier: workspace:* + version: link:../typescript-config + '@signozhq/tailwind-config': + specifier: workspace:* + version: link:../tailwind-config + '@types/node': + specifier: ^22.5.5 + version: 22.7.3 + '@types/react': + specifier: ^18.2.61 + version: 18.3.9 + '@types/react-dom': + specifier: ^18.2.19 + version: 18.3.0 + '@vitejs/plugin-react': + specifier: ^4.2.1 + version: 4.3.1(vite@5.4.8(@types/node@22.7.3)) + autoprefixer: + specifier: ^10.4.20 + version: 10.4.20(postcss@8.4.47) + eslint: + specifier: ^9.11.0 + version: 9.11.1(jiti@1.21.6) + postcss: + specifier: ^8.4.47 + version: 8.4.47 + react-dom: + specifier: ^18.2.0 + version: 18.3.1(react@18.3.1) + tailwindcss: + specifier: ^3.4.12 + version: 3.4.13 + typescript: + specifier: ^5.3.3 + version: 5.6.2 + vite: + specifier: ^5.0.0 + version: 5.4.8(@types/node@22.7.3) + vite-plugin-dts: + specifier: ^4.2.1 + version: 4.2.2(@types/node@22.7.3)(rollup@4.22.4)(typescript@5.6.2)(vite@5.4.8(@types/node@22.7.3)) + vite-plugin-lib-inject-css: + specifier: ^2.1.1 + version: 2.1.1(vite@5.4.8(@types/node@22.7.3)) + packages/button: dependencies: '@radix-ui/react-icons': From 43dbba8152f00ab34928cf75b88eef63dca95cdd Mon Sep 17 00:00:00 2001 From: ahmadshaheer Date: Thu, 24 Oct 2024 10:56:15 +0430 Subject: [PATCH 3/3] chore: remove unnecessary tsconfig.app.json --- packages/badge/tsconfig.app.json | 10 ---------- pnpm-lock.yaml | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 packages/badge/tsconfig.app.json diff --git a/packages/badge/tsconfig.app.json b/packages/badge/tsconfig.app.json deleted file mode 100644 index 2a949e7..0000000 --- a/packages/badge/tsconfig.app.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - }, - "forceConsistentCasingInFileNames": true, - "strict": true - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e8ed6f5..658d983 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -210,7 +210,7 @@ importers: version: 2.5.2 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.13) + version: 1.0.7(tailwindcss@3.4.13(ts-node@10.9.2(@types/node@22.7.3)(typescript@5.6.2))) devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -247,7 +247,7 @@ importers: version: 18.3.1(react@18.3.1) tailwindcss: specifier: ^3.4.12 - version: 3.4.13 + version: 3.4.13(ts-node@10.9.2(@types/node@22.7.3)(typescript@5.6.2)) typescript: specifier: ^5.3.3 version: 5.6.2