Skip to content

Commit

Permalink
Merge pull request #38 from mzgoddard/dependents-no-boiler
Browse files Browse the repository at this point in the history
Use src/index as browser entry point
  • Loading branch information
rschamp authored May 31, 2018
2 parents 000dad7 + b7e7d6d commit 1a0b35f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
];

0 comments on commit 1a0b35f

Please sign in to comment.