Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
87 lines (87 loc) · 4.23 KB
/
Copy pathpackage.json
File metadata and controls
87 lines (87 loc) · 4.23 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
{
"name": "geospoof-extension",
"version": "2.2.3",
"type": "module",
"description": "Firefox extension for geolocation spoofing and location privacy",
"engines": {
"node": ">=24.15.0"
},
"scripts": {
"build": "npm run build:prod",
"build:dev": "vite build --mode development",
"build:prod": "vite build --mode production",
"build:firefox": "BROWSER=firefox vite build --mode production",
"build:chromium": "BROWSER=chromium vite build --mode production",
"build:safari": "BROWSER=safari vite build --mode production",
"build:safari:dev": "BROWSER=safari vite build --mode development",
"clean": "rm -rf dist coverage web-ext-artifacts geospoof-*.zip geospoof-*.xpi",
"dev": "vite build --watch",
"format": "prettier --write \"**/*.{js,ts,json,md,css,html}\"",
"format:check": "prettier --check \"**/*.{js,ts,json,md,css,html}\"",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:ext": "web-ext lint --source-dir dist --self-hosted",
"start": "npm run start:firefox",
"start:firefox": "web-ext run --source-dir dist",
"start:chromium": "web-ext run --source-dir dist --target=chromium --chromium-binary='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'",
"start:chrome": "npm run build:chromium && web-ext run --source-dir dist --target=chromium --chromium-binary='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'",
"start:brave": "npm run build:chromium && web-ext run --source-dir dist --target=chromium --chromium-binary='/Applications/Brave Browser.app/Contents/MacOS/Brave Browser'",
"start:opera": "npm run build:chromium && web-ext run --source-dir dist --target=chromium --chromium-binary='/Applications/Opera.app/Contents/MacOS/Opera'",
"start:waterfox": "npm run build:firefox && web-ext run --source-dir dist --firefox='/Applications/Waterfox.app/Contents/MacOS/waterfox'",
"start:android": "web-ext run --source-dir dist --target=firefox-android --adb-remove-old-artifacts --android-device=$(adb devices | sed -n '2p' | awk '{print $1}')",
"package": "npm run package:firefox",
"package:firefox": "npm run build:firefox && web-ext build --source-dir dist",
"package:chromium": "npm run build:chromium && mkdir -p web-ext-artifacts && cd dist && zip -r ../web-ext-artifacts/geospoof-chromium-v$(node -p \"require('../package.json').version\").zip .",
"package:xpi": "npm run build:firefox && bash scripts/package-xpi.sh",
"package:source": "zip -r geospoof-source-v$(node -p \"require('./package.json').version\").zip . -x 'node_modules/*' 'dist/*' 'coverage/*' '.git/*' '*.zip' '.DS_Store' '.kiro/*' 'web-ext-artifacts/*'",
"prepare": "husky",
"sign:xpi": "bash scripts/sign-xpi.sh",
"sign:xpi:amo": "bash scripts/sign-xpi.sh --channel listed --source geospoof-source-v$(node -p \"require('./package.json').version\").zip",
"test": "vitest run --silent",
"test:watch": "vitest",
"test:coverage": "vitest run --silent --coverage",
"type-check": "tsc --noEmit",
"validate": "npm run type-check && npm run lint && npm run lint:ext && npm run format:check && npm run test",
"validate:quiet": "npm run type-check && npm run lint && npm run lint:ext && npm run format:check && npm run test -- --reporter=dot 2>/dev/null"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/firefox-webext-browser": "^143.0.1",
"@types/node": "^24.19.1",
"@types/webextension-polyfill": "^0.12.6",
"@vitest/coverage-v8": "5.0.3",
"esbuild": "0.28.2",
"eslint": "^10.12.0",
"eslint-config-prettier": "^10.1.8",
"fast-check": "^4.10.2",
"husky": "^9.1.7",
"jsdom": "30.1.2",
"lint-staged": "^17.6.0",
"prettier": "^3.9.9",
"typescript": "~6.0",
"typescript-eslint": "^8.71.0",
"vite": "8.3.4",
"vitest": "5.0.3",
"web-ext": "^10.7.0"
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,css,html}": [
"prettier --write"
]
},
"overrides": {
"serialize-javascript": "^7.0.3",
"shell-quote": "^1.11.0"
},
"dependencies": {
"browser-geo-tz": "0.2.3",
"tr46": "7.0.0",
"urlpattern-polyfill": "10.1.0",
"webextension-polyfill": "^0.12.0"
},
"license": "Apache-2.0"
}