|
1 | 1 | { |
2 | 2 | "name": "browserslist-useragent-regexp", |
| 3 | + "type": "module", |
3 | 4 | "version": "3.0.2", |
4 | 5 | "description": "A utility to compile browserslist query to a RegExp to test browser useragent.", |
5 | 6 | "author": "dangreen", |
|
11 | 12 | "bugs": { |
12 | 13 | "url": "https://github.com/browserslist/browserslist-useragent-regexp/issues" |
13 | 14 | }, |
| 15 | + "keywords": [ |
| 16 | + "browserslist", |
| 17 | + "useragent", |
| 18 | + "regexp" |
| 19 | + ], |
| 20 | + "engines": { |
| 21 | + "node": ">=14.0.0" |
| 22 | + }, |
14 | 23 | "bin": { |
15 | | - "browserslist-useragent-regexp": "dist/cli.js" |
| 24 | + "browserslist-useragent-regexp": "./dist/cli.js" |
16 | 25 | }, |
17 | | - "main": "dist/index.js", |
18 | | - "types": "dist/index.d.ts", |
19 | | - "engines": { |
20 | | - "node": ">=12.0.0" |
| 26 | + "exports": "./src/index.ts", |
| 27 | + "publishConfig": { |
| 28 | + "types": "./dist/index.d.ts", |
| 29 | + "exports": { |
| 30 | + "import": "./dist/index.js", |
| 31 | + "types": "./dist/index.d.ts" |
| 32 | + }, |
| 33 | + "directory": "package" |
21 | 34 | }, |
| 35 | + "files": [ |
| 36 | + "dist" |
| 37 | + ], |
22 | 38 | "scripts": { |
23 | 39 | "clear:package": "del ./package", |
24 | 40 | "clear": "del ./package ./dist ./coverage", |
|
27 | 43 | "emitDeclarations": "tsc --emitDeclarationOnly", |
28 | 44 | "build": "run -p [ rollup -c ] emitDeclarations", |
29 | 45 | "lint": "eslint './*{js,ts}' './src/**/*.{js,ts}' './examples/**/*.{js,ts}'", |
30 | | - "jest": "jest -c jest.config.json", |
| 46 | + "test:unit": "vitest run --coverage", |
31 | 47 | "test:size": "size-limit", |
32 | | - "test": "run -p lint jest", |
| 48 | + "test": "run -p lint test:unit", |
33 | 49 | "build:demo": "node examples/buildDemo > ./docs/demo.html && cp -R examples/demojs/ docs/demojs/", |
34 | 50 | "build:docs": "typedoc ./src --out ./docs --excludeExternals && touch docs/.nojekyll", |
35 | 51 | "commit": "cz", |
|
38 | 54 | "release": "run bumpVersion [ git push origin master --tags ] createGithubRelease", |
39 | 55 | "updateGitHooks": "simple-git-hooks" |
40 | 56 | }, |
41 | | - "keywords": [ |
42 | | - "browserslist", |
43 | | - "regexp" |
44 | | - ], |
45 | 57 | "dependencies": { |
46 | | - "@types/node": "^16.9.6", |
47 | 58 | "argue-cli": "^1.2.0", |
48 | 59 | "browserslist": "^4.21.4", |
49 | 60 | "chalk": "^4.0.0", |
50 | 61 | "easy-table": "^1.1.1", |
51 | 62 | "useragent": "^2.3.0" |
52 | 63 | }, |
53 | 64 | "devDependencies": { |
54 | | - "@babel/core": "^7.12.10", |
55 | 65 | "@commitlint/cli": "^17.1.2", |
56 | 66 | "@commitlint/config-conventional": "^17.1.0", |
57 | 67 | "@commitlint/cz-commitlint": "^17.1.2", |
58 | 68 | "@rollup/plugin-node-resolve": "^15.0.0", |
59 | 69 | "@size-limit/file": "^8.1.0", |
60 | 70 | "@swc/core": "^1.3.6", |
61 | 71 | "@swc/helpers": "^0.4.12", |
62 | | - "@swc/jest": "^0.2.23", |
63 | 72 | "@trigen/browserslist-config": "^8.0.0-alpha.5", |
64 | | - "@trigen/eslint-config": "^8.0.0-alpha.14", |
65 | | - "@trigen/scripts": "^8.0.0-alpha.9", |
66 | | - "@types/jest": "^29.1.2", |
| 73 | + "@trigen/eslint-config": "8.0.0-alpha.19", |
| 74 | + "@trigen/scripts": "8.0.0-alpha.18", |
| 75 | + "@types/node": "^18.8.4", |
| 76 | + "@vitest/coverage-c8": "^0.24.1", |
67 | 77 | "browserslist-useragent": "^3.0.0", |
68 | 78 | "clean-publish": "^4.0.1", |
69 | 79 | "commitizen": "^4.2.5", |
70 | 80 | "del-cli": "^4.0.1", |
71 | 81 | "eslint": "^8.25.0", |
72 | | - "jest": "^29.1.2", |
73 | 82 | "nano-staged": "^0.8.0", |
74 | 83 | "rollup": "^2.79.1", |
75 | 84 | "rollup-plugin-add-shebang": "^0.3.0", |
|
78 | 87 | "simple-github-release": "^1.0.0", |
79 | 88 | "size-limit": "^8.1.0", |
80 | 89 | "standard-version": "^9.5.0", |
81 | | - "typescript": "^4.1.3", |
82 | | - "user-agents": "^1.0.213" |
83 | | - }, |
84 | | - "files": [ |
85 | | - "dist" |
86 | | - ] |
| 90 | + "typescript": "^4.8.4", |
| 91 | + "user-agents": "^1.0.213", |
| 92 | + "vite": "^3.1.7", |
| 93 | + "vitest": "^0.24.1" |
| 94 | + } |
87 | 95 | } |
0 commit comments