diff --git a/packages/react-events/npm/drag.js b/packages/react-events/npm/drag.js new file mode 100644 index 0000000000000..4b8838b9658c8 --- /dev/null +++ b/packages/react-events/npm/drag.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-events-drag.production.min.js'); +} else { + module.exports = require('./cjs/react-events-drag.development.js'); +} diff --git a/packages/react-events/npm/FocusScope.js b/packages/react-events/npm/focus-scope.js similarity index 100% rename from packages/react-events/npm/FocusScope.js rename to packages/react-events/npm/focus-scope.js diff --git a/packages/react-events/npm/focus.js b/packages/react-events/npm/focus.js new file mode 100644 index 0000000000000..06b656a761ed3 --- /dev/null +++ b/packages/react-events/npm/focus.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-events-focus.production.min.js'); +} else { + module.exports = require('./cjs/react-events-focus.development.js'); +} diff --git a/packages/react-events/npm/hover.js b/packages/react-events/npm/hover.js new file mode 100644 index 0000000000000..1000d87449067 --- /dev/null +++ b/packages/react-events/npm/hover.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-events-hover.production.min.js'); +} else { + module.exports = require('./cjs/react-events-hover.development.js'); +} diff --git a/packages/react-events/npm/press.js b/packages/react-events/npm/press.js new file mode 100644 index 0000000000000..deaba326bba07 --- /dev/null +++ b/packages/react-events/npm/press.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-events-press.production.min.js'); +} else { + module.exports = require('./cjs/react-events-press.development.js'); +} diff --git a/packages/react-events/npm/swipe.js b/packages/react-events/npm/swipe.js new file mode 100644 index 0000000000000..aa2b1f2fe13f9 --- /dev/null +++ b/packages/react-events/npm/swipe.js @@ -0,0 +1,7 @@ +'use strict'; + +if (process.env.NODE_ENV === 'production') { + module.exports = require('./cjs/react-events-swipe.production.min.js'); +} else { + module.exports = require('./cjs/react-events-swipe.development.js'); +} diff --git a/packages/react-events/package.json b/packages/react-events/package.json index a5be8d74fdf44..cb367a2f8c1d3 100644 --- a/packages/react-events/package.json +++ b/packages/react-events/package.json @@ -12,12 +12,12 @@ "files": [ "LICENSE", "README.md", - "Press.js", - "Hover.js", - "Focus.js", - "Swipe.js", - "Drag.js", - "FocusScope.js", + "press.js", + "hover.js", + "focus.js", + "swipe.js", + "drag.js", + "focus-scope.js", "index.js", "build-info.json", "cjs/",