chore(package): expose src/index as browser entry point

Downstream webpack will need any dependencies src/ depends on so it can
successfully build. Also if multiple packages being built into a larger
script share a common dependency version range, they can share the
dependency instead of duplicating it. This will save built file size,
execution time, and memory.
This commit is contained in:
Michael "Z" Goddard 2018-04-30 17:48:58 -04:00
parent f9e40e7956
commit 1ea67b3e70
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -3,6 +3,7 @@
"version": "2.0.0",
"description": "Localization for the Scratch 3.0 components",
"main": "./dist/l10n.js",
"browser": "./src/index.js",
"bin": {
"build-i18n-src": "./scripts/build-i18n-src.js"
},
@ -28,7 +29,8 @@
"dependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-intl": "^0.1.1",
"babel-plugin-react-intl": "^2.3.1"
"babel-plugin-react-intl": "^2.3.1",
"react-intl": "2.4.0"
},
"devDependencies": {
"babel-core": "^6.26.0",
@ -44,7 +46,6 @@
"jsonlint": "1.6.3",
"lodash.defaultsdeep": "4.6.0",
"mkdirp": "^0.5.1",
"react-intl": "2.4.0",
"rimraf": "^2.6.2",
"webpack": "^4.6.0",
"webpack-cli": "^2.0.15"