Skip to content

Commit bc5f5e9

Browse files
committed
chore: clean up unused vars and babel config
1 parent 1a47241 commit bc5f5e9

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"description": "Drag-and-drop sortable component for nested data and hierarchies",
55
"scripts": {
66
"postinstall": "patch-package",
7-
"prebuild": "npm run lint",
8-
"build": "npm run clean && NODE_ENV=rollup rollup -c",
7+
"prebuild": "npm run lint && npm run clean",
8+
"build": "rollup -c",
99
"build:storybook": "npm run clean:storybook && build-storybook -o build",
1010
"clean": "rimraf dist",
1111
"clean:storybook": "rimraf build",
1212
"lint": "eslint src",
1313
"prettier": "prettier --write \"{src,example/src,stories}/**/*.{js,css,md}\"",
1414
"prepublishOnly": "npm run lint && npm run test && npm run build",
1515
"release": "standard-version",
16-
"test": "cross-env NODE_ENV=test jest",
17-
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
16+
"test": "jest",
17+
"test:watch": "jest --watchAll",
1818
"storybook": "start-storybook -p ${PORT:-3001} -h 0.0.0.0",
1919
"deploy": "gh-pages -d build"
2020
},

rollup.config.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,17 @@ export default {
1111
{
1212
file: pkg.main,
1313
format: 'cjs',
14-
exports: 'named'
14+
exports: 'named',
1515
},
1616
{
1717
file: pkg.module,
1818
format: 'esm',
19-
exports: 'named'
19+
exports: 'named',
2020
},
2121
],
2222
external: [
23-
'react',
24-
'react-dom',
25-
'react-dnd',
26-
'react-dnd/lib/DragDropContext',
27-
'prop-types',
28-
'react-dnd-html5-backend',
29-
'react-dnd-scrollzone',
30-
'react-virtualized',
31-
'lodash.isequal',
23+
...Object.keys(pkg.dependencies),
24+
...Object.keys(pkg.peerDependencies),
3225
],
3326
plugins: [
3427
nodeResolve(),

0 commit comments

Comments
 (0)