-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
103 lines (103 loc) · 2.42 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
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "content-scripts-register-polyfill",
"version": "4.0.2",
"description": "Chrome/Safari extension polyfill for Firefox's browser.contentScripts.register()",
"keywords": [
"browser",
"content scripts",
"contentScripts",
"programmatic injection",
"executescript",
"RequestContentScript",
"declarative",
"declarativecontent",
"extension",
"firefox",
"css",
"scripts",
"web-ext",
"webext"
],
"repository": "fregante/content-scripts-register-polyfill",
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Federico Brigante <me@fregante.com> (https://fregante.com)",
"type": "module",
"main": "index.js",
"files": [
"index.js",
"index.d.ts",
"ponyfill.js",
"ponyfill.d.ts",
"globals.d.ts"
],
"scripts": {
"build": "tsc",
"demo:build": "parcel build --no-cache",
"demo:watch": "parcel watch --no-cache --no-hmr",
"prejest": "npm run demo:build",
"jest": "NODE_OPTIONS=--experimental-vm-modules JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest",
"prepack": "tsc --sourceMap false",
"test": "xo && tsc --noEmit && npm run jest",
"test:watch": "npm run jest -- --watch",
"watch": "tsc --watch"
},
"xo": {
"envs": [
"browser"
],
"globals": [
"chrome"
],
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"import/extensions": "off",
"import/no-unassigned-import": "off",
"n/file-extension-in-import": "off"
}
},
"jest": {
"injectGlobals": false,
"preset": "jest-puppeteer",
"testMatch": [
"**/test/*.js"
]
},
"dependencies": {
"webext-content-scripts": "^2.5.2",
"webext-patterns": "^1.3.0",
"webext-polyfill-kinda": "^1.0.0"
},
"devDependencies": {
"@parcel/config-webextension": "2.8.3",
"@sindresorhus/tsconfig": "^3.0.1",
"@types/chrome": "^0.0.211",
"@types/firefox-webext-browser": "^109.0.0",
"jest": "^29.4.1",
"jest-puppeteer": "^6.2.0",
"parcel": "2.8.3",
"puppeteer": "^17.1.3",
"typescript": "^4.9.5",
"xo": "^0.53.1"
},
"targets": {
"main": false,
"default": {
"source": "./test/demo-extension/manifest.json",
"distDir": "./test/dist",
"sourceMap": {
"inline": true
},
"optimize": false
}
},
"webExt": {
"sourceDir": "test/dist",
"run": {
"startUrl": [
"https://ephiframe.vercel.app/Parent-page?iframe=./Framed-page",
"https://ephiframe.vercel.app/Parent-page?iframe=https://extra-ephiframe.vercel.app/Cross-domain-iframe"
]
}
}
}