-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
51 lines (51 loc) · 3.02 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
{
"name": "silk-privacy-pass-client",
"version": "4.0.2",
"contributors": [
"Suphanat Chunhapanya <pop@cloudflare.com>",
"Armando Faz <armfazh@cloudflare.com>",
"Thibault Meunier <thibault@cloudflare.com>",
"Cefan Rubin <cefan@cloudflare.com>"
],
"main": "index.js",
"license": "BSD-3-Clause",
"type": "module",
"engines": {
"node": ">=18"
},
"scripts": {
"build:options": "esbuild src/options/index.ts --bundle --minify --format=esm --target=chrome100 --outfile=dist/build/options/index.mjs && cp src/options/index.html src/options/index.css dist/build/options/",
"build:privacypass": "npm run build:options && esbuild platform/$PLATFORM/index.ts --bundle --format=esm --target=chrome100 --outfile=dist/$PLATFORM/background.js && cp -r public/icons dist/$PLATFORM/icons && cp platform/$PLATFORM/manifest.json dist/$PLATFORM && mkdir -p dist/$PLATFORM/options && cp -r dist/build/options/* dist/$PLATFORM/options",
"build:chromium": "export PLATFORM='chromium' && npm run build:privacypass",
"build:firefox": "export PLATFORM='firefox' && npm run build:privacypass",
"build:mv3-chromium": "export PLATFORM='mv3/chromium' && npm run build:privacypass",
"build": "npm run build:chromium && npm run build:firefox && npm run build:mv3-chromium",
"bundle:chromium": "npm run build:chromium && mkdir -p dist/build/bundle/chromium && cp -r dist/chromium/* dist/build/bundle/chromium && sed -i '/\"key\"/d' dist/build/bundle/chromium/manifest.json && web-ext build -s dist/build/bundle/chromium --overwrite-dest -a dist/web-ext-artifacts -n chromium.zip",
"bundle:mv3-chromium": "npm run build:mv3-chromium && mkdir -p dist/build/bundle/mv3/chromium && cp -r dist/mv3/chromium/* dist/build/bundle/mv3/chromium && sed -i '/\"key\"/d' dist/build/bundle/mv3/chromium/manifest.json && web-ext build -s dist/build/bundle/mv3/chromium --overwrite-dest -a dist/web-ext-artifacts -n mv3-chromium.zip",
"bundle:firefox": "npm run build:firefox && web-ext build -s dist/firefox --overwrite-dest -a dist/web-ext-artifacts -n firefox.zip",
"bundle": "npm run bundle:chromium && npm run bundle:firefox && npm run bundle:mv3-chromium",
"test": "tsc -b && node --experimental-vm-modules node_modules/jest/bin/jest.js --ci",
"lint": "eslint .",
"format": "eslint . --fix",
"clean": "rimraf lib coverage dist"
},
"dependencies": {
"@cloudflare/privacypass-ts": "0.4.0"
},
"devDependencies": {
"@types/chrome": "0.0.263",
"@types/jest": "29.5.12",
"@types/node": "20.11.25",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"esbuild": "0.20.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-security": "2.1.1",
"jest": "29.7.0",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"web-ext": "8.2.0"
}
}