/
package.json
82 lines (82 loc) · 2.22 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
{
"name": "github-url-detection",
"version": "8.1.1",
"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": {
"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 test:unit xo",
"test:unit": "bun test",
"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:test:unit": "run-p 'test:unit -- --watch' 'watch:typescript -- --watch'",
"xo": "xo"
},
"xo": {
"envs": [
"browser"
],
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"@typescript-eslint/triple-slash-reference": "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"
}
},
"devDependencies": {
"@sindresorhus/tsconfig": "^4.0.0",
"@sveltejs/vite-plugin-svelte": "^2.4.6",
"bun": "^1.0.3",
"bun-types": "^1.0.3",
"github-reserved-names": "^2.0.5",
"npm-run-all": "^4.1.5",
"strip-indent": "^4.0.0",
"svelte": "^4.2.1",
"svelte-check": "^3.5.2",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"xo": "^0.56.0"
},
"engines": {
"node": ">=18"
}
}