-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
123 lines (123 loc) · 2.88 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "media-query-solver",
"description": "Solve and evaluate media queries",
"version": "0.1.3",
"license": "MIT",
"keywords": [
"media",
"query",
"solver",
"parser",
"compile",
"tester",
"check",
"checker",
"evaluate",
"evaluation",
"compiler",
"typescript"
],
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"bin": {
"media-query-solver": "./dist/cjs/cli.js"
},
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"sideEffects": false,
"homepage": "https://github.com/tbjgolden/media-query-solver",
"repository": {
"type": "git",
"url": "https://github.com/tbjgolden/media-query-solver.git"
},
"author": {
"name": "Tom Golden",
"email": "[email protected]",
"url": "https://tom.bio"
},
"engines": {
"node": ">=16.0.0 || ^14.13.1"
},
"scripts": {
"build": "xnr ./.scripts/build.ts && npm run build-docs",
"check-build": "xnr ./.scripts/checkBuild.ts",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' npx jest",
"prepare": "simple-git-hooks",
"build-docs": "npx typedoc --out docs lib/index.ts"
},
"peerDependencies": {
"media-query-parser": "^3.0.2"
},
"devDependencies": {
"@types/eslint": "^8.56.3",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-security": "^2.1.1",
"eslint-plugin-unicorn": "^51.0.0",
"jest": "^29.7.0",
"lint-time": "^0.1.1",
"msg-time": "^0.1.1",
"prettier": "3.2.5",
"pub-time": "^0.1.0",
"simple-git-hooks": "^2.9.0",
"terser": "^5.28.1",
"typescript": "5.3.3",
"xnr": "^1.1.3"
},
"files": [
"dist"
],
"simple-git-hooks": {
"commit-msg": "npx msg-time",
"pre-commit": "npx lint-time",
"pre-push": "npx jest -o --coverage=false --passWithNoTests"
},
"prettier": {
"printWidth": 100,
"proseWrap": "always"
},
"lint-time": [
[
"*.ts",
"npx eslint -c .eslintrc.cjs --cache --fix --max-warnings=0"
],
[
"*.{ts,js,cjs,mjs,json}",
"npx prettier --write"
]
],
"jest": {
"clearMocks": true,
"collectCoverageFrom": [
"lib/**/*.ts",
"!**/test-helpers.ts",
"!**/node_modules/**",
"!**/vendor/**"
],
"coverageReporters": [
"json-summary",
"text"
],
"errorOnDeprecated": true,
"extensionsToTreatAsEsm": [
".ts",
".mts"
],
"resolver": "<rootDir>/.scripts/jestResolver.cjs",
"testEnvironment": "node",
"testMatch": [
"<rootDir>/lib/**/*.test.[tj]s"
],
"transform": {
"\\.ts$": "<rootDir>/node_modules/xnr/jest.js"
}
}
}