|
1 | 1 | { |
2 | 2 | "name": "@egoist/tailwindcss-icons", |
| 3 | + "type": "module", |
3 | 4 | "version": "1.9.2", |
| 5 | + "packageManager": "[email protected]", |
4 | 6 | "description": "Icons utility for TailwindCSS", |
5 | 7 | "publishConfig": { |
6 | 8 | "access": "public" |
7 | 9 | }, |
8 | | - "type": "module", |
| 10 | + "license": "MIT", |
9 | 11 | "repository": { |
10 | 12 | "type": "git", |
11 | 13 | "url": "git+https://github.com/hyoban/tailwindcss-icons.git" |
12 | 14 | }, |
13 | | - "files": [ |
14 | | - "dist" |
15 | | - ], |
16 | 15 | "exports": { |
17 | 16 | ".": { |
| 17 | + "types": "./dist/index.d.ts", |
18 | 18 | "import": { |
19 | 19 | "types": "./dist/index.d.ts", |
20 | 20 | "default": "./dist/index.js" |
|
23 | 23 | "types": "./dist/index.d.cts", |
24 | 24 | "default": "./dist/index.cjs" |
25 | 25 | }, |
26 | | - "types": "./dist/index.d.ts", |
27 | 26 | "default": "./dist/index.js" |
28 | 27 | } |
29 | 28 | }, |
30 | 29 | "main": "./dist/index.cjs", |
31 | 30 | "module": "./dist/index.js", |
32 | 31 | "types": "./dist/index.d.ts", |
| 32 | + "files": [ |
| 33 | + "dist" |
| 34 | + ], |
33 | 35 | "scripts": { |
34 | | - "prepare": "pnpm run gen-types", |
35 | | - "gen-types": "node ./gen-types.mjs", |
| 36 | + "prepare": "simple-git-hooks", |
| 37 | + "gen-types": "node ./gen-types.mjs && eslint --fix ./types.ts", |
36 | 38 | "build-fast": "pnpm gen-types && tsup src/index.ts --format cjs,esm", |
37 | 39 | "build": "pnpm run build-fast --dts-resolve", |
38 | 40 | "prepublishOnly": "pnpm run build", |
39 | 41 | "test": "vitest run", |
40 | | - "format": "prettier --write .", |
41 | | - "format:check": "prettier --check .", |
42 | | - "lint": "eslint --max-warnings 0 .", |
| 42 | + "lint": "eslint --max-warnings 0", |
| 43 | + "lint:fix": "eslint --max-warnings 0 --fix", |
43 | 44 | "typecheck": "tsc --noEmit" |
44 | 45 | }, |
45 | | - "license": "MIT", |
46 | | - "packageManager": "[email protected]", |
| 46 | + "peerDependencies": { |
| 47 | + "tailwindcss": "*" |
| 48 | + }, |
| 49 | + "dependencies": { |
| 50 | + "@iconify/utils": "^3.1.0" |
| 51 | + }, |
47 | 52 | "devDependencies": { |
48 | | - "@eslint/js": "^9.39.2", |
49 | 53 | "@ianvs/prettier-plugin-sort-imports": "^4.7.0", |
50 | 54 | "@iconify-json/heroicons": "^1.2.3", |
51 | 55 | "@iconify/json": "^2.2.433", |
52 | 56 | "@iconify/types": "^2.0.0", |
53 | 57 | "@types/node": "^25.1.0", |
54 | 58 | "eslint": "^9.39.2", |
| 59 | + "eslint-config-hyoban": "6.0.0-beta.3", |
| 60 | + "lint-staged": "^16.2.7", |
55 | 61 | "postcss": "^8.5.6", |
56 | 62 | "prettier": "^3.8.1", |
57 | 63 | "prettier-plugin-tailwindcss": "^0.7.2", |
| 64 | + "simple-git-hooks": "^2.13.1", |
58 | 65 | "tailwindcss": "^3.4.19", |
59 | 66 | "tsup": "^8.5.1", |
60 | 67 | "typescript": "^5.9.3", |
61 | | - "typescript-eslint": "^8.54.0", |
62 | 68 | "vitest": "^4.0.18" |
63 | 69 | }, |
64 | | - "dependencies": { |
65 | | - "@iconify/utils": "^3.1.0" |
| 70 | + "simple-git-hooks": { |
| 71 | + "pre-commit": "pnpm lint-staged" |
66 | 72 | }, |
67 | | - "peerDependencies": { |
68 | | - "tailwindcss": "*" |
| 73 | + "lint-staged": { |
| 74 | + "*": "eslint --fix" |
69 | 75 | } |
70 | 76 | } |
0 commit comments