mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-07-04 18:40:21 -04:00
Merge pull request #38 from mzgoddard/dependents-no-boiler
Use src/index as browser entry point
This commit is contained in:
commit
1a0b35f56a
2 changed files with 16 additions and 8 deletions
17
package.json
17
package.json
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
})
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue