Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1700578 - Drop Node.js support from webext build #173

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

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

# v0.7.0 (2021-03-26)
Expand Down
30 changes: 6 additions & 24 deletions glean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,10 @@
"type": "module",
"exports": {
"./package.json": "./package.json",
"./webext": {
"browser": "./dist/webext/browser/index/webext.js",
"import": "./dist/webext/esm/index/webext.js",
"require": "./dist/webext/cjs/index/webext.js"
},
"./webext/private/metrics/*": {
"browser": "./dist/webext/browser/core/metrics/types/*.js",
"import": "./dist/webext/esm/core/metrics/types/*.js",
"require": "./dist/webext/cjs/core/metrics/types/*.js"
},
"./webext/private/ping": {
"browser": "./dist/webext/browser/core/pings/index.js",
"import": "./dist/webext/esm/core/pings/index.js",
"require": "./dist/webext/cjs/core/pings/index.js"
},
"./webext/plugins/*": {
"browser": "./dist/webext/browser/plugins/*.js",
"import": "./dist/webext/esm/plugins/*.js",
"require": "./dist/webext/cjs/plugins/*.js"
}
"./webext": "./dist/webext/index/webext.js",
"./webext/private/metrics/*": "./dist/webext/core/metrics/types/*.js",
"./webext/private/ping": "./dist/webext/core/pings/index.js",
"./webext/plugins/*": "./dist/webext/plugins/*.js"
},
"typesVersions": {
"*": {
Expand Down Expand Up @@ -61,11 +45,9 @@
"lint:circular-deps": "madge --circular src/ --extensions ts",
"fix": "eslint . --ext .ts,.js,.json --fix",
"build:cli": "tsc -p ./tsconfig/cli.json",
"build:webext:lib:esm": "tsc -p ./tsconfig/webext/esm.json",
"build:webext:lib:cjs": "tsc -p ./tsconfig/webext/cjs.json && echo '{\"type\": \"commonjs\"}'> dist/webext/cjs/package.json",
"build:webext:lib:browser": "tsc -p ./tsconfig/webext/browser.json",
"build:webext:lib": "tsc -p ./tsconfig/webext/index.json",
"build:webext:types": "tsc -p ./tsconfig/webext/types.json",
"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",
"build:webext": "rm -rf dist/webext && npm run build:webext:lib && npm run build:webext:types",
"build:qt": "webpack --config webpack.config.qt.js --mode production",
"prepublishOnly": "cp ../README.md ./README.md && npm run build:cli && npm run build:webext",
"postpublish": "rm ./README.md"
Expand Down
13 changes: 0 additions & 13 deletions glean/tsconfig/webext/cjs.json

This file was deleted.

13 changes: 0 additions & 13 deletions glean/tsconfig/webext/esm.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"compilerOptions": {
"target": "ES2018",
"module": "ES6",
"outDir": "../../dist/webext/browser"
"outDir": "../../dist/webext"
}
}