package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "class-variance-authority",
  3. "version": "0.7.1",
  4. "description": "Class Variance Authority 🧬",
  5. "keywords": [
  6. "Class Variance Authority",
  7. "class-variance-authority",
  8. "classes",
  9. "classname",
  10. "classnames",
  11. "css",
  12. "cva",
  13. "stitches",
  14. "vanilla-extract",
  15. "variants"
  16. ],
  17. "homepage": "https://github.com/joe-bell/cva#readme",
  18. "bugs": "https://github.com/joe-bell/cva/issues",
  19. "repository": "https://github.com/joe-bell/cva.git",
  20. "funding": "https://polar.sh/cva",
  21. "license": "Apache-2.0",
  22. "author": "Joe Bell (https://joebell.co.uk)",
  23. "exports": {
  24. ".": {
  25. "import": "./dist/index.mjs",
  26. "require": "./dist/index.js",
  27. "types": "./dist/index.d.ts"
  28. },
  29. "./types": {
  30. "types": "./dist/types.d.ts"
  31. }
  32. },
  33. "main": "dist/index.js",
  34. "module": "dist/index.mjs",
  35. "types": "dist/index.d.ts",
  36. "files": [
  37. "dist/"
  38. ],
  39. "dependencies": {
  40. "clsx": "^2.1.1"
  41. },
  42. "devDependencies": {
  43. "@swc/cli": "0.3.12",
  44. "@swc/core": "1.4.16",
  45. "@types/node": "20.12.7",
  46. "@types/react": "18.2.79",
  47. "@types/react-dom": "18.2.25",
  48. "bundlesize": "0.18.2",
  49. "npm-run-all": "4.1.5",
  50. "react": "18.2.0",
  51. "react-dom": "18.2.0",
  52. "ts-node": "10.9.2",
  53. "typescript": "5.4.5"
  54. },
  55. "scripts": {
  56. "build": "run-p build:**",
  57. "build:cjs": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs",
  58. "build:esm": "swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 ",
  59. "build:tsc": "tsc --project .config/tsconfig.build.json",
  60. "check": "tsc --project tsconfig.json --noEmit",
  61. "bundlesize": "pnpm build && bundlesize -f 'dist/*.js' -s 1.2KB"
  62. }
  63. }