feat: provide usable UMD builds for all packages (#2141)
This commit is contained in:
committed by
Shawn Erquhart
parent
1d935c704d
commit
82cc7941cc
@ -21,18 +21,11 @@
|
||||
"develop": "npm run watch",
|
||||
"build": "cross-env NODE_ENV=production webpack"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cross-env": "^5.2.0",
|
||||
"jest-dom": "^3.1.3",
|
||||
"react-testing-library": "^6.0.0",
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"immutable": "^3.7.6",
|
||||
"netlify-cms-ui-default": "^2.0.0",
|
||||
"prop-types": "^15.5.10",
|
||||
"react": "^16.4.1",
|
||||
"netlify-cms-ui-default": "^2.4.1-beta.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^16.8.4",
|
||||
"react-immutable-proptypes": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -3,7 +3,7 @@ import { fromJS } from 'immutable';
|
||||
import { render, fireEvent } from 'react-testing-library';
|
||||
import 'react-testing-library/cleanup-after-each';
|
||||
import 'jest-dom/extend-expect';
|
||||
import { SelectControl } from '../';
|
||||
import { controlComponent as SelectControl } from '../';
|
||||
|
||||
const options = [
|
||||
{ value: 'foo', label: 'Foo' },
|
||||
|
@ -1,2 +1,4 @@
|
||||
export SelectControl from './SelectControl';
|
||||
export SelectPreview from './SelectPreview';
|
||||
import controlComponent from './SelectControl';
|
||||
import previewComponent from './SelectPreview';
|
||||
export const NetlifyCmsWidgetSelect = { controlComponent, previewComponent };
|
||||
export { controlComponent, previewComponent };
|
||||
|
Reference in New Issue
Block a user