Skip to content

Commit

Permalink
Merge pull request #173 from brizental/1700578-only-browser
Browse files Browse the repository at this point in the history
Bug 1700578 - Drop Node.js support from webext build
  • Loading branch information
Beatriz Rizental authored Apr 7, 2021
2 parents 9ad6c99 + 17337e6 commit aed7911
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 51 deletions.
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"
}
}

0 comments on commit aed7911

Please sign in to comment.