UNPKG

2.53 kBJSONView Raw
1{
2 "name": "css-select",
3 "version": "5.1.0",
4 "description": "a CSS selector compiler/engine",
5 "author": "Felix Boehm <me@feedic.com>",
6 "funding": {
7 "url": "https://github.com/sponsors/fb55"
8 },
9 "keywords": [
10 "css",
11 "selector",
12 "sizzle"
13 ],
14 "repository": {
15 "type": "git",
16 "url": "git://github.com/fb55/css-select.git"
17 },
18 "main": "lib/index.js",
19 "types": "lib/index.d.ts",
20 "module": "lib/esm/index.js",
21 "exports": {
22 "require": "./lib/index.js",
23 "import": "./lib/esm/index.js"
24 },
25 "files": [
26 "lib"
27 ],
28 "dependencies": {
29 "boolbase": "^1.0.0",
30 "css-what": "^6.1.0",
31 "domhandler": "^5.0.2",
32 "domutils": "^3.0.1",
33 "nth-check": "^2.0.1"
34 },
35 "devDependencies": {
36 "@types/boolbase": "^1.0.1",
37 "@types/jest": "^27.4.1",
38 "@types/node": "^17.0.29",
39 "@typescript-eslint/eslint-plugin": "^5.21.0",
40 "@typescript-eslint/parser": "^5.21.0",
41 "cheerio-soupselect": "^0.1.1",
42 "eslint": "^8.14.0",
43 "eslint-config-prettier": "^8.5.0",
44 "htmlparser2": "^8.0.0",
45 "jest": "^27.5.1",
46 "prettier": "^2.6.2",
47 "ts-jest": "^27.1.4",
48 "typescript": "^4.6.3"
49 },
50 "scripts": {
51 "test": "npm run test:jest && npm run lint",
52 "test:jest": "jest",
53 "lint": "npm run lint:es && npm run lint:prettier",
54 "lint:es": "eslint src",
55 "lint:prettier": "npm run prettier -- --check",
56 "format": "npm run format:es && npm run format:prettier",
57 "format:es": "npm run lint:es -- --fix",
58 "format:prettier": "npm run prettier -- --write",
59 "prettier": "prettier '**/*.{ts,md,json,yml}'",
60 "build": "npm run build:cjs && npm run build:esm",
61 "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/css-select/$(git rev-parse HEAD)/src/",
62 "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
63 "prepare": "npm run build"
64 },
65 "license": "BSD-2-Clause",
66 "prettier": {
67 "tabWidth": 4,
68 "proseWrap": "always"
69 },
70 "jest": {
71 "preset": "ts-jest",
72 "testEnvironment": "node",
73 "coverageProvider": "v8",
74 "moduleNameMapper": {
75 "^(.*)\\.js$": "$1"
76 },
77 "testMatch": [
78 "<rootDir>/test/*.ts"
79 ]
80 }
81}