|
2 | 2 | "name": "attr-accept", |
3 | 3 | "version": "0.0.0-development", |
4 | 4 | "description": "JavaScript implementation of the \"accept\" attribute for HTML5 <input type=\"file\">", |
5 | | - "type": "module", |
6 | | - "main": "./dist/index.cjs", |
7 | | - "module": "./dist/index.js", |
8 | | - "types": "./dist/index.d.ts", |
9 | | - "exports": { |
10 | | - ".": { |
11 | | - "types": "./dist/index.d.ts", |
12 | | - "import": "./dist/index.js", |
13 | | - "require": "./dist/index.cjs" |
14 | | - }, |
15 | | - "./package.json": "./package.json" |
16 | | - }, |
17 | | - "sideEffects": false, |
18 | | - "files": ["dist", "src", "!src/**/*.spec.*"], |
19 | | - "keywords": ["html5", "input", "tag", "attribute", "attr", "accept", "file"], |
| 5 | + "keywords": [ |
| 6 | + "accept", |
| 7 | + "attr", |
| 8 | + "attribute", |
| 9 | + "file", |
| 10 | + "html5", |
| 11 | + "input", |
| 12 | + "tag" |
| 13 | + ], |
20 | 14 | "homepage": "https://github.com/react-dropzone/attr-accept#readme", |
21 | 15 | "bugs": { |
22 | 16 | "url": "https://github.com/react-dropzone/attr-accept/issues" |
|
31 | 25 | "type": "git", |
32 | 26 | "url": "https://github.com/react-dropzone/attr-accept.git" |
33 | 27 | }, |
| 28 | + "files": [ |
| 29 | + "dist", |
| 30 | + "src", |
| 31 | + "!src/**/*.spec.*" |
| 32 | + ], |
| 33 | + "type": "module", |
| 34 | + "sideEffects": false, |
| 35 | + "main": "./dist/index.cjs", |
| 36 | + "module": "./dist/index.js", |
| 37 | + "types": "./dist/index.d.ts", |
| 38 | + "exports": { |
| 39 | + ".": { |
| 40 | + "types": "./dist/index.d.ts", |
| 41 | + "import": "./dist/index.js", |
| 42 | + "require": "./dist/index.cjs" |
| 43 | + }, |
| 44 | + "./package.json": "./package.json" |
| 45 | + }, |
34 | 46 | "publishConfig": { |
35 | 47 | "access": "public" |
36 | 48 | }, |
37 | 49 | "scripts": { |
| 50 | + "prepare": "prek install || exit 0", |
| 51 | + "hooks:install": "prek install", |
| 52 | + "hooks:run": "prek run --all-files", |
38 | 53 | "prebuild": "npm run clean", |
39 | 54 | "build": "tsdown", |
40 | 55 | "dev": "tsdown --watch", |
|
63 | 78 | "typescript": "^7.0.2", |
64 | 79 | "vitest": "^4.1.10" |
65 | 80 | }, |
66 | | - "engines": { |
67 | | - "node": ">= 20" |
68 | | - }, |
69 | 81 | "size-limit": [ |
70 | 82 | { |
71 | 83 | "name": "esm", |
|
77 | 89 | "path": "dist/index.cjs", |
78 | 90 | "limit": "2 kB" |
79 | 91 | } |
80 | | - ] |
| 92 | + ], |
| 93 | + "engines": { |
| 94 | + "node": ">= 20" |
| 95 | + } |
81 | 96 | } |
0 commit comments