Skip to content

Commit

Permalink
Add "chromeapp" field to package.json
Browse files Browse the repository at this point in the history
I'm attempting to make a defacto standard for specifying Chrome App dependency substitutions using the "chromeapp" field in `package.json`.

The "chromeapp" field is just like the "browser" field in `package.json` (see spec here: https://github.com/defunctzombie/package-browser-field-spec) except it's intended for Chrome App targets instead of a generic browser target.

Specifically, since Chrome Apps can use raw sockets, we want to replace 'net' and 'dgram' with 'chrome-net' and 'chrome-dgram', respectively.
  • Loading branch information
feross committed Aug 8, 2019
1 parent 88ab66a commit cddd287
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
},
"main": "http.js",
"license": "MIT",
"chromeapp": {
"net": "chrome-net"
},
"dependencies": {
"chrome-net": "^3.3.2",
"freelist": "^1.0.3",
"http-parser-js": "^0.4.3"
},
Expand Down

0 comments on commit cddd287

Please sign in to comment.