-
Notifications
You must be signed in to change notification settings - Fork 156
/
package.json
104 lines (104 loc) · 2.65 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
{
"name": "preact-router",
"amdName": "preactRouter",
"version": "4.1.2",
"description": "Connect your components up to that address bar.",
"main": "dist/preact-router.js",
"module": "dist/preact-router.module.js",
"jsnext:main": "dist/preact-router.module.js",
"umd:main": "dist/preact-router.umd.js",
"unpkg": "dist/preact-router.umd.js",
"exports": {
".": {
"types": "./index.d.ts",
"module": "./dist/preact-router.mjs",
"import": "./dist/preact-router.mjs",
"require": "./dist/preact-router.js"
},
"./package.json": "./package.json",
"./match": {
"types": "./match/index.d.ts",
"module": "./match/index.mjs",
"import": "./match/index.mjs",
"require": "./match/index.js"
},
"./match/package.json": "./match/package.json"
},
"scripts": {
"build": "microbundle -f es --no-generateTypes && microbundle src/cjs.js -f cjs,umd --no-generateTypes && (cd match && npm run build)",
"postbuild": "cp dist/preact-router.module.js dist/preact-router.mjs && cp match/index.module.js match/index.mjs",
"test": "npm-run-all lint build test:unit test:ts",
"lint": "eslint src test",
"fix": "npm run lint -- --fix",
"test:unit": "karmatic",
"test:ts": "tsc -p ./test",
"prepublishOnly": "npm-run-all build test",
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish",
"format": "prettier --write ."
},
"files": [
"dist",
"match",
"index.d.ts"
],
"typings": "./index.d.ts",
"keywords": [
"preact",
"router"
],
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"repository": "preactjs/preact-router",
"homepage": "https://github.com/preactjs/preact-router",
"eslintConfig": {
"extends": "preact",
"rules": {
"jest/no-jasmine-globals": 0
},
"globals": {
"spyOn": "readonly"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,jsx,tsx}": [
"prettier --write"
],
"*.json": [
"prettier --write"
]
},
"prettier": {
"singleQuote": true,
"useTabs": true,
"trailingComma": "none",
"arrowParens": "avoid"
},
"peerDependencies": {
"preact": ">=10"
},
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.9.1",
"@types/jasmine": "^3.10.3",
"chai": "^4.3.7",
"eslint": "^6.8.0",
"eslint-config-preact": "^1.1.1",
"history": "^5.2.0",
"husky": "^7.0.2",
"karmatic": "^2.1.0",
"lint-staged": "^11.1.2",
"microbundle": "^0.14.2",
"mocha": "^5.2.0",
"npm-run-all": "^3.0.0",
"preact": "^10.16.0",
"prettier": "^2.3.2",
"sinon": "^7.1.0",
"sinon-chai": "^3.7.0",
"typescript": "^4.9.5",
"webpack": "^4.42.0"
}
}