Merge pull request from mzgoddard/dependents-no-boiler

Use src/index as browser entry point
This commit is contained in:
Ray Schamp 2018-05-31 17:09:39 -04:00 committed by GitHub
commit 1a0b35f56a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions

View file

@ -9,7 +9,7 @@
"url": "https://github.com/LLK/scratch-storage.git"
},
"main": "./dist/node/scratch-storage.js",
"browser": "./dist/web/scratch-storage.js",
"browser": "./src/index.js",
"scripts": {
"build": "webpack --progress --colors --bail",
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
@ -23,31 +23,32 @@
"watch": "webpack --progress --colors --watch",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {
"arraybuffer-loader": "^1.0.3",
"base64-js": "1.2.1",
"js-md5": "0.6.1",
"localforage": "1.5.0",
"nets": "3.2.0",
"text-encoding": "0.6.4"
},
"devDependencies": {
"@commitlint/cli": "6.1.0",
"@commitlint/config-conventional": "6.1.0",
"@commitlint/travis-cli": "6.1.0",
"arraybuffer-loader": "^1.0.3",
"babel-core": "6.22.1",
"babel-eslint": "7.1.1",
"babel-loader": "^7.1.4",
"babel-polyfill": "6.22.0",
"babel-preset-env": "^1.6.1",
"base64-js": "1.2.1",
"cz-conventional-changelog": "^2.0.0",
"debug": "2.6.0",
"eslint": "3.14.1",
"eslint-config-scratch": "3.1.0",
"eslint-plugin-react": "6.9.0",
"file-loader": "1.1.11",
"husky": "0.14.3",
"js-md5": "0.6.1",
"json": "^9.0.4",
"localforage": "1.5.0",
"nets": "3.2.0",
"semantic-release": "^6.3.2",
"tap": "8.0.1",
"text-encoding": "0.6.4",
"travis-after-all": "^1.4.4",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.8.0",

View file

@ -56,6 +56,13 @@ module.exports = [
libraryTarget: 'commonjs2',
path: path.resolve('dist', 'node'),
filename: '[name].js'
},
externals: {
'base64-js': true,
'js-md5': true,
'localforage': true,
'nets': true,
'text-encoding': true
}
})
];