|
5 | 5 | "type": "module", |
6 | 6 | "exports": { |
7 | 7 | "./package.json": "./package.json", |
8 | | - "./webext": { |
9 | | - "browser": "./dist/webext/browser/index/webext.js", |
10 | | - "import": "./dist/webext/esm/index/webext.js", |
11 | | - "require": "./dist/webext/cjs/index/webext.js" |
12 | | - }, |
13 | | - "./webext/private/metrics/*": { |
14 | | - "browser": "./dist/webext/browser/core/metrics/types/*.js", |
15 | | - "import": "./dist/webext/esm/core/metrics/types/*.js", |
16 | | - "require": "./dist/webext/cjs/core/metrics/types/*.js" |
17 | | - }, |
18 | | - "./webext/private/ping": { |
19 | | - "browser": "./dist/webext/browser/core/pings/index.js", |
20 | | - "import": "./dist/webext/esm/core/pings/index.js", |
21 | | - "require": "./dist/webext/cjs/core/pings/index.js" |
22 | | - }, |
23 | | - "./webext/plugins/*": { |
24 | | - "browser": "./dist/webext/browser/plugins/*.js", |
25 | | - "import": "./dist/webext/esm/plugins/*.js", |
26 | | - "require": "./dist/webext/cjs/plugins/*.js" |
27 | | - } |
| 8 | + "./webext": "./dist/webext/index/webext.js", |
| 9 | + "./webext/private/metrics/*": "./dist/webext/core/metrics/types/*.js", |
| 10 | + "./webext/private/ping": "./dist/webext/core/pings/index.js", |
| 11 | + "./webext/plugins/*": "./dist/webext/plugins/*.js" |
28 | 12 | }, |
29 | 13 | "typesVersions": { |
30 | 14 | "*": { |
|
61 | 45 | "lint:circular-deps": "madge --circular src/ --extensions ts", |
62 | 46 | "fix": "eslint . --ext .ts,.js,.json --fix", |
63 | 47 | "build:cli": "tsc -p ./tsconfig/cli.json", |
64 | | - "build:webext:lib:esm": "tsc -p ./tsconfig/webext/esm.json", |
65 | | - "build:webext:lib:cjs": "tsc -p ./tsconfig/webext/cjs.json && echo '{\"type\": \"commonjs\"}'> dist/webext/cjs/package.json", |
66 | | - "build:webext:lib:browser": "tsc -p ./tsconfig/webext/browser.json", |
| 48 | + "build:webext:lib": "tsc -p ./tsconfig/webext/index.json", |
67 | 49 | "build:webext:types": "tsc -p ./tsconfig/webext/types.json", |
68 | | - "build:webext": "rm -rf dist/webext && npm run build:webext:lib:esm && npm run build:webext:lib:cjs && npm run build:webext:lib:browser && npm run build:webext:types", |
| 50 | + "build:webext": "rm -rf dist/webext && npm run build:webext:lib && npm run build:webext:types", |
69 | 51 | "build:qt": "webpack --config webpack.config.qt.js --mode production", |
70 | 52 | "prepublishOnly": "cp ../README.md ./README.md && npm run build:cli && npm run build:webext", |
71 | 53 | "postpublish": "rm ./README.md" |
|
0 commit comments