Skip to content

Commit

Permalink
chore: clean up unused vars and babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
wuweiweiwu committed Dec 10, 2018
1 parent 1a47241 commit bc5f5e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"description": "Drag-and-drop sortable component for nested data and hierarchies",
"scripts": {
"postinstall": "patch-package",
"prebuild": "npm run lint",
"build": "npm run clean && NODE_ENV=rollup rollup -c",
"prebuild": "npm run lint && npm run clean",
"build": "rollup -c",
"build:storybook": "npm run clean:storybook && build-storybook -o build",
"clean": "rimraf dist",
"clean:storybook": "rimraf build",
"lint": "eslint src",
"prettier": "prettier --write \"{src,example/src,stories}/**/*.{js,css,md}\"",
"prepublishOnly": "npm run lint && npm run test && npm run build",
"release": "standard-version",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
"test": "jest",
"test:watch": "jest --watchAll",
"storybook": "start-storybook -p ${PORT:-3001} -h 0.0.0.0",
"deploy": "gh-pages -d build"
},
Expand Down
15 changes: 4 additions & 11 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,17 @@ export default {
{
file: pkg.main,
format: 'cjs',
exports: 'named'
exports: 'named',
},
{
file: pkg.module,
format: 'esm',
exports: 'named'
exports: 'named',
},
],
external: [
'react',
'react-dom',
'react-dnd',
'react-dnd/lib/DragDropContext',
'prop-types',
'react-dnd-html5-backend',
'react-dnd-scrollzone',
'react-virtualized',
'lodash.isequal',
...Object.keys(pkg.dependencies),
...Object.keys(pkg.peerDependencies),
],
plugins: [
nodeResolve(),
Expand Down

0 comments on commit bc5f5e9

Please sign in to comment.