-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
90 lines (90 loc) · 2.32 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
{
"name": "github-url-detection",
"version": "8.0.0",
"description": "Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.",
"keywords": [
"github",
"page",
"routes",
"detect",
"test",
"extension"
],
"repository": "refined-github/github-url-detection",
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Federico Brigante <[email protected]> (https://fregante.com)",
"sideEffects": false,
"type": "module",
"exports": "./distribution/index.js",
"main": "./distribution/index.js",
"types": "./distribution/index.d.ts",
"files": [
"distribution/index.js",
"distribution/index.d.ts"
],
"scripts": {
"ava": "ava --timeout 30s",
"build": "run-p build:*",
"build:vite": "vite build",
"build:typescript": "tsc --declaration --emitDeclarationOnly",
"demo:build": "vite build demo",
"demo:test": "svelte-check",
"demo:watch": "vite preview demo & vite build demo --watch # vite serve isn't real",
"prepack": "npm run build",
"test": "run-p build ava xo",
"watch": "run-p watch:typescript demo:watch # vite watch doesn’t generate the lib, so just use the demo",
"watch:typescript": "tsc --watch --noEmit",
"watch:ava": "run-p 'ava -- --watch' 'watch:typescript -- --watch'",
"xo": "xo"
},
"xo": {
"envs": [
"browser"
],
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"ava/assertion-arguments": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/naming-convention": "off",
"n/prefer-global/process": "off"
}
}
],
"rules": {
"camelcase": "off"
}
},
"ava": {
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=@esbuild-kit/esm-loader"
]
},
"devDependencies": {
"@esbuild-kit/esm-loader": "^2.5.5",
"@sindresorhus/tsconfig": "^3.0.1",
"@sveltejs/vite-plugin-svelte": "^2.4.3",
"ava": "^5.3.1",
"github-reserved-names": "^2.0.4",
"npm-run-all": "^4.1.5",
"strip-indent": "^4.0.0",
"svelte": "^4.1.2",
"svelte-check": "^3.4.6",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"xo": "^0.55.0"
},
"engines": {
"node": ">=18"
}
}