Skip to content

Commit aed7911

Browse files
author
Beatriz Rizental
authored
Merge pull request #173 from brizental/1700578-only-browser
Bug 1700578 - Drop Node.js support from webext build
2 parents 9ad6c99 + 17337e6 commit aed7911

File tree

5 files changed

+8
-51
lines changed

5 files changed

+8
-51
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.7.0...main)
44

5+
* [#173](https://github.com/mozilla/glean.js/pull/173): Drop Node.js support from webext entry points
56
* [#155](https://github.com/mozilla/glean.js/pull/155): Allow to define custom uploaders in the configuration.
67

78
# v0.7.0 (2021-03-26)

glean/package.json

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,10 @@
55
"type": "module",
66
"exports": {
77
"./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"
2812
},
2913
"typesVersions": {
3014
"*": {
@@ -61,11 +45,9 @@
6145
"lint:circular-deps": "madge --circular src/ --extensions ts",
6246
"fix": "eslint . --ext .ts,.js,.json --fix",
6347
"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",
6749
"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",
6951
"build:qt": "webpack --config webpack.config.qt.js --mode production",
7052
"prepublishOnly": "cp ../README.md ./README.md && npm run build:cli && npm run build:webext",
7153
"postpublish": "rm ./README.md"

glean/tsconfig/webext/cjs.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

glean/tsconfig/webext/esm.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

glean/tsconfig/webext/browser.json renamed to glean/tsconfig/webext/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"compilerOptions": {
99
"target": "ES2018",
1010
"module": "ES6",
11-
"outDir": "../../dist/webext/browser"
11+
"outDir": "../../dist/webext"
1212
}
1313
}

0 commit comments

Comments
 (0)