-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
152 lines (152 loc) · 3.85 KB
/
Copy pathpackage.json
File metadata and controls
152 lines (152 loc) · 3.85 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "get-browser",
"version": "2.3.0",
"description": "Lightweight, SSR-safe browser detection — strict TypeScript types, dual ESM + CJS, zero runtime dependencies.",
"keywords": [
"browser",
"browser-detection",
"user-agent",
"ua",
"is-chrome",
"is-safari",
"is-firefox",
"is-edge",
"is-mobile",
"is-android",
"is-ie",
"is-opera",
"detect-browser",
"feature-detection",
"ssr",
"typescript",
"esm",
"cjs"
],
"homepage": "https://yankouskia.github.io/get-browser",
"bugs": {
"url": "https://github.com/yankouskia/get-browser/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yankouskia/get-browser.git"
},
"license": "MIT",
"author": {
"name": "yankouskia",
"email": "aleksandr.yankovskiy@gmail.com",
"url": "https://github.com/yankouskia"
},
"funding": "https://github.com/sponsors/yankouskia",
"type": "module",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"unpkg": "./dist/umd/get-browser.global.js",
"jsdelivr": "./dist/umd/get-browser.global.js",
"sideEffects": false,
"files": [
"dist/**/*.cjs",
"dist/**/*.mjs",
"dist/**/*.js",
"dist/**/*.d.ts",
"dist/**/*.d.cts",
"dist/**/*.d.mts",
"LICENSE",
"README.md",
"CHANGELOG.md",
"BREAKING_CHANGES.md"
],
"scripts": {
"build": "tsup",
"clean": "rimraf dist coverage docs/api",
"dev": "tsup --watch",
"docs": "typedoc",
"format": "biome format --write .",
"format:check": "biome format .",
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"check": "biome check .",
"prepublishOnly": "pnpm run clean && pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build && pnpm run validate",
"size": "size-limit",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"validate": "publint && attw --pack .",
"website:install": "pnpm --dir website install",
"website:dev": "pnpm --dir website start",
"website:build": "pnpm run build && pnpm --dir website run build",
"website:serve": "pnpm --dir website run serve"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.4",
"@biomejs/biome": "^2.4.15",
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@size-limit/preset-small-lib": "^12.1.0",
"@types/node": "^25.9.2",
"@vitest/coverage-v8": "^4.1.7",
"expect-type": "^1.3.0",
"happy-dom": "^20.10.2",
"lefthook": "^2.1.8",
"publint": "^0.3.21",
"rimraf": "^6.0.1",
"size-limit": "^12.1.0",
"tsup": "^8.5.1",
"typedoc": "^0.28.19",
"typescript": "^5.9.0",
"vitest": "^4.1.7"
},
"engines": {
"node": ">=20.0.0"
},
"packageManager": "pnpm@9.15.4",
"publishConfig": {
"access": "public",
"provenance": true
},
"size-limit": [
{
"name": "ESM (full)",
"path": "dist/index.mjs",
"limit": "3 kB"
},
{
"name": "ESM (detect only, tree-shaken)",
"path": "dist/index.mjs",
"import": "{ detect }",
"limit": "2 kB"
},
{
"name": "CJS",
"path": "dist/index.cjs",
"limit": "3 kB"
},
{
"name": "UMD (minified)",
"path": "dist/umd/get-browser.global.js",
"limit": "3 kB"
}
],
"pnpm": {
"overrides": {
"esbuild@<0.28.1": ">=0.28.1"
},
"patchedDependencies": {
"@arethetypeswrong/core@0.17.4": "patches/@arethetypeswrong__core@0.17.4.patch"
}
}
}