Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
121 lines (121 loc) · 3.97 KB
/
Copy pathpackage.json
File metadata and controls
121 lines (121 loc) · 3.97 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
{
"name": "@addon-core/browser",
"version": "0.13.0",
"description": "Browser extension APIs with typed helpers, promise-based calls, and easy event cleanup.",
"keywords": [
"browser",
"addon",
"extension",
"google",
"chrome",
"opera",
"edge",
"firefox",
"safari",
"api"
],
"repository": {
"type": "git",
"url": "git+https://github.com/addon-stack/browser.git"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"homepage": "https://github.com/addon-stack/browser",
"bugs": {
"url": "https://github.com/addon-stack/browser/issues"
},
"license": "MIT",
"author": "Anjey Tsibylskij (https://github.com/atldays)",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.js",
"require": "./dist/utils.cjs"
},
"./testing": {
"types": "./dist/testing/index.d.ts",
"import": "./dist/testing/index.js",
"require": "./dist/testing/index.cjs"
},
"./testing/node": {
"types": "./dist/testing/node/index.d.ts",
"import": "./dist/testing/node/index.js",
"require": "./dist/testing/node/index.cjs"
}
},
"files": [
"dist"
],
"sideEffects": false,
"dependencies": {
"@types/chrome": "^0.3.5"
},
"scripts": {
"prepare": "husky",
"generate": "node ./codegen/generate.mjs",
"generate:check": "node ./codegen/generate.mjs --check",
"generate:watch": "node --watch --watch-preserve-output ./codegen/generate.mjs",
"build": "npm run generate && node ./scripts/clean-dist.mjs && tsup && node ./scripts/copy-api-types.mjs && node ./scripts/verify-build.mjs && node ./scripts/verify-tree-shaking.mjs",
"prepublishOnly": "npm run build",
"dev": "node ./scripts/clean-dist.mjs && node ./scripts/dev.mjs",
"lint": "eslint . --max-warnings 0",
"lint:staged": "lint-staged",
"fix": "eslint . --fix --max-warnings 0",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:ci": "npm test -- --ci --passWithNoTests --coverage",
"test:browser": "node ./tests/browser/run.mjs",
"test:webkit": "node ./tests/webkit/run.mjs",
"typecheck:browser": "tsc -p tests/browser/tsconfig.json",
"test:browser-match-patterns": "node ./tests/browser-match-patterns/check.mjs",
"test:consumer-types": "npm run build && node ./tests/consumer-types/check.mjs",
"test:relay-consumer": "npm run build && node ./tests/relay-consumer/check.mjs",
"test:related": "npm test -- --bail --passWithNoTests",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.tests.json --noEmit",
"release": "release-it",
"release:preview": "release-it --release-version --no-github --npm.publish=false --git.push=false --git.requireCleanWorkingDir=false",
"release:notes": "release-it --changelog --no-github --npm.publish=false --git.push=false --git.requireCleanWorkingDir=false"
},
"devDependencies": {
"@commitlint/cli": "^20.0.0",
"@commitlint/config-conventional": "^20.0.0",
"@eslint/js": "9.39.5",
"@release-it/conventional-changelog": "^10.0.1",
"@stylistic/eslint-plugin": "4.4.1",
"@types/jest": "^30.0.0",
"eslint": "9.39.5",
"eslint-plugin-jsonc": "2.21.1",
"eslint-plugin-simple-import-sort": "14.0.0",
"globals": "16.5.0",
"husky": "^9.1.7",
"jest": "^30.1.3",
"jest-environment-jsdom": "30.1.2",
"lint-staged": "15.5.2",
"release-it": "^19.0.5",
"ts-jest": "^29.4.6",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
"typescript-eslint": "8.48.1"
},
"lint-staged": {
"*": "eslint --fix --max-warnings 0 --no-warn-ignored --"
},
"overrides": {
"test-exclude": {
"glob": "^9.3.5"
},
"tsup": {
"source-map": "^0.7.4"
}
}
}