UNPKG

2.83 kBJSONView Raw
1{
2 "name": "css-selector-parser",
3 "version": "3.0.5",
4 "description": "Powerful and compliant CSS selector parser.",
5 "keywords": [
6 "css",
7 "css selector",
8 "css selector parser",
9 "pseudo-classes",
10 "pseudo-elements",
11 "css attributes",
12 "css tags",
13 "css classes"
14 ],
15 "author": {
16 "name": "Marat Dulin",
17 "email": "mdevils@yandex.ru"
18 },
19 "funding": [
20 {
21 "type": "github",
22 "url": "https://github.com/sponsors/mdevils"
23 },
24 {
25 "type": "patreon",
26 "url": "https://patreon.com/mdevils"
27 }
28 ],
29 "devDependencies": {
30 "@commitlint/cli": "^17.6.6",
31 "@commitlint/config-conventional": "^17.6.6",
32 "@types/jest": "^29.5.2",
33 "@typescript-eslint/eslint-plugin": "^7.1.0",
34 "@typescript-eslint/parser": "^7.1.0",
35 "eslint": "^8.43.0",
36 "eslint-config-prettier": "^8.8.0",
37 "eslint-plugin-import": "^2.27.5",
38 "eslint-plugin-prettier": "^5.1.3",
39 "husky": "^4.3.8",
40 "jest": "^29.5.0",
41 "jest-ts-webcompat-resolver": "^1.0.0",
42 "prettier": "^3.2.5",
43 "standard-version": "^9.5.0",
44 "ts-jest": "^29.1.0",
45 "ts-node": "^10.9.1",
46 "typedoc": "^0.24.8",
47 "typedoc-plugin-markdown": "^3.15.3",
48 "typescript": "^4.9.0"
49 },
50 "repository": {
51 "type": "git",
52 "url": "https://github.com/mdevils/css-selector-parser.git"
53 },
54 "main": "./dist/cjs/index.js",
55 "module": "./dist/mjs/index.js",
56 "exports": {
57 ".": {
58 "import": "./dist/mjs/index.js",
59 "require": "./dist/cjs/index.js"
60 }
61 },
62 "typings": "./dist/cjs/index",
63 "types": "./dist/cjs/index",
64 "license": "MIT",
65 "scripts": {
66 "build": "rm -Rf dist && tsc -p tsconfig.json && tsc -p tsconfig.mjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && echo '{\"type\": \"module\"}' > dist/mjs/package.json",
67 "build:docs": "rm -Rf docs && typedoc --excludeInternal --excludeExternals --disableSources --plugin typedoc-plugin-markdown --entryDocument ../README.md --out docs src/index.ts && ts-node tools/cleanup-docs.ts",
68 "test": "jest test",
69 "test:watch": "jest --watch test",
70 "test:dist": "TEST_DIST=cjs npm run test",
71 "lint": "eslint {src,test,benchmark}/**.ts",
72 "lint:fix": "eslint --fix {src,test,benchmark}/**.ts",
73 "benchmark": "ts-node benchmark/benchmark.ts",
74 "release": "standard-version",
75 "prepublishOnly": "npm run build"
76 },
77 "files": [
78 "dist",
79 "README.md",
80 "LICENSE"
81 ],
82 "husky": {
83 "hooks": {
84 "pre-commit": "npm run lint && npm run test",
85 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
86 }
87 },
88 "commitlint": {
89 "extends": [
90 "@commitlint/config-conventional"
91 ],
92 "rules": {
93 "subject-case": [
94 2,
95 "never",
96 [
97 "start-case",
98 "pascal-case"
99 ]
100 ]
101 }
102 }
103}