From 4458f156ad9298a836885ca36d812d643dbddde9 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 23 Mar 2017 20:32:05 +0000 Subject: [PATCH] Move files around --- scripts/rollup/modules.js | 10 +++------- .../facebook-www}/DOMProperty.js | 0 .../facebook-www}/EventPluginHub.js | 0 .../facebook-www}/EventPluginUtils.js | 0 .../facebook-www}/EventPropagators.js | 0 .../facebook-www}/PooledClass.js | 0 .../facebook-www}/ReactBrowserEventEmitter.js | 0 .../facebook-www}/ReactChildren.js | 2 +- .../shims/facebook-www/ReactCurrentOwner.js | 19 +++++++++++++++++++ .../facebook-www}/ReactDOMComponentTree.js | 0 .../facebook-www}/ReactDOMInputSelection.js | 0 .../facebook-www}/ReactDOMSelection.js | 0 .../facebook-www}/ReactElement.js | 2 +- .../facebook-www}/ReactFiberErrorLogger.js | 2 +- .../facebook-www}/ReactInputSelection.js | 0 .../facebook-www}/ReactInstanceMap.js | 0 .../facebook-www}/ReactPerf.js | 2 +- .../facebook-www}/ReactTestUtils.js | 0 .../facebook-www}/SyntheticEvent.js | 0 .../facebook-www}/SyntheticKeyboardEvent.js | 0 .../facebook-www}/SyntheticMouseEvent.js | 0 .../facebook-www}/SyntheticUIEvent.js | 0 .../facebook-www}/ViewportMetrics.js | 0 .../facebook-www}/adler32.js | 0 .../facebook-www}/findDOMNode.js | 0 .../facebook-www}/flattenChildren.js | 2 +- .../facebook-www}/getComponentName.js | 2 +- .../facebook-www}/getEventCharCode.js | 0 .../facebook-www}/getEventKey.js | 0 .../facebook-www}/getEventTarget.js | 0 .../getVendorPrefixedEventName.js | 0 .../facebook-www}/isEventSupported.js | 0 .../facebook-www}/onlyChild.js | 2 +- .../renderSubtreeIntoContainer.js | 0 .../facebook-www}/setInnerHTML.js | 0 .../facebook-www}/setTextContent.js | 0 .../react-native}/NativeMethodsMixin.js | 0 .../react-native}/ReactDebugTool.js | 0 .../react-native}/ReactErrorUtils.js | 0 .../react-native}/ReactNativeComponentTree.js | 0 .../react-native}/ReactNativePropRegistry.js | 0 .../react-native}/ReactPerf.js | 0 .../react-native}/TouchHistoryMath.js | 0 .../createReactNativeComponentClass.js | 0 .../react-native}/findNodeHandle.js | 0 .../ReactCheckPropTypesRollupShim.js | 0 .../ReactComponentTreeHookRollupShim.js | 0 .../ReactCurrentOwnerRollupShim.js | 0 48 files changed, 29 insertions(+), 14 deletions(-) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/DOMProperty.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/EventPluginHub.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/EventPluginUtils.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/EventPropagators.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/PooledClass.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactBrowserEventEmitter.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactChildren.js (96%) create mode 100644 scripts/rollup/shims/facebook-www/ReactCurrentOwner.js rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactDOMComponentTree.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactDOMInputSelection.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactDOMSelection.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactElement.js (95%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactFiberErrorLogger.js (89%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactInputSelection.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactInstanceMap.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactPerf.js (88%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ReactTestUtils.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/SyntheticEvent.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/SyntheticKeyboardEvent.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/SyntheticMouseEvent.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/SyntheticUIEvent.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/ViewportMetrics.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/adler32.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/findDOMNode.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/flattenChildren.js (95%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/getComponentName.js (95%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/getEventCharCode.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/getEventKey.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/getEventTarget.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/getVendorPrefixedEventName.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/isEventSupported.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/onlyChild.js (90%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/renderSubtreeIntoContainer.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/setInnerHTML.js (100%) rename scripts/rollup/{forwarding-dom => shims/facebook-www}/setTextContent.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/NativeMethodsMixin.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/ReactDebugTool.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/ReactErrorUtils.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/ReactNativeComponentTree.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/ReactNativePropRegistry.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/ReactPerf.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/TouchHistoryMath.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/createReactNativeComponentClass.js (100%) rename scripts/rollup/{forwarding-native => shims/react-native}/findNodeHandle.js (100%) rename scripts/rollup/shims/{ => rollup}/ReactCheckPropTypesRollupShim.js (100%) rename scripts/rollup/shims/{ => rollup}/ReactComponentTreeHookRollupShim.js (100%) rename scripts/rollup/shims/{ => rollup}/ReactCurrentOwnerRollupShim.js (100%) diff --git a/scripts/rollup/modules.js b/scripts/rollup/modules.js index 4a028e5e06..0a476bd094 100644 --- a/scripts/rollup/modules.js +++ b/scripts/rollup/modules.js @@ -75,13 +75,9 @@ function getNodeModules(bundleType) { function ignoreFBModules() { return [ - // Shared mutable state. - // We forked an implementation of this into forwarding/. // At FB, we don't know them statically: 'ReactFeatureFlags', 'ReactDOMFeatureFlags', - // At FB, we fork this module for custom reporting flow: - 'ReactErrorUtils', ]; } @@ -201,7 +197,7 @@ function replaceFbjsModuleAliases(bundleType) { // on the React bundle itself rather than require module directly. // For the React bundle, ReactCurrentOwner should be bundled as part of the bundle // itself and exposed on __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED -const shimReactCurrentOwner = resolve('./scripts/rollup/shims/ReactCurrentOwnerRollupShim.js'); +const shimReactCurrentOwner = resolve('./scripts/rollup/shims/rollup/ReactCurrentOwnerRollupShim.js'); const realReactCurrentOwner = resolve('./src/isomorphic/classic/element/ReactCurrentOwner.js') function getReactCurrentOwnerModuleAlias(bundleType, isRenderer) { @@ -219,7 +215,7 @@ function getReactCurrentOwnerModuleAlias(bundleType, isRenderer) { } // this works almost identically to the ReactCurrentOwner shim above -const shimReactCheckPropTypes = resolve('./scripts/rollup/shims/ReactCheckPropTypesRollupShim.js'); +const shimReactCheckPropTypes = resolve('./scripts/rollup/shims/rollup/ReactCheckPropTypesRollupShim.js'); const realCheckPropTypes = resolve('./src/isomorphic/classic/types/checkPropTypes.js') function getReactCheckPropTypesModuleAlias(bundleType, isRenderer) { @@ -237,7 +233,7 @@ function getReactCheckPropTypesModuleAlias(bundleType, isRenderer) { } // this works almost identically to the ReactCurrentOwner shim above -const shimReactComponentTreeHook = resolve('./scripts/rollup/shims/ReactComponentTreeHookRollupShim.js'); +const shimReactComponentTreeHook = resolve('./scripts/rollup/shims/rollup/ReactComponentTreeHookRollupShim.js'); const realReactComponentTreeHook = resolve('./src/isomorphic/hooks/ReactComponentTreeHook.js'); function getReactComponentTreeHookModuleAlias(bundleType, isRenderer) { diff --git a/scripts/rollup/forwarding-dom/DOMProperty.js b/scripts/rollup/shims/facebook-www/DOMProperty.js similarity index 100% rename from scripts/rollup/forwarding-dom/DOMProperty.js rename to scripts/rollup/shims/facebook-www/DOMProperty.js diff --git a/scripts/rollup/forwarding-dom/EventPluginHub.js b/scripts/rollup/shims/facebook-www/EventPluginHub.js similarity index 100% rename from scripts/rollup/forwarding-dom/EventPluginHub.js rename to scripts/rollup/shims/facebook-www/EventPluginHub.js diff --git a/scripts/rollup/forwarding-dom/EventPluginUtils.js b/scripts/rollup/shims/facebook-www/EventPluginUtils.js similarity index 100% rename from scripts/rollup/forwarding-dom/EventPluginUtils.js rename to scripts/rollup/shims/facebook-www/EventPluginUtils.js diff --git a/scripts/rollup/forwarding-dom/EventPropagators.js b/scripts/rollup/shims/facebook-www/EventPropagators.js similarity index 100% rename from scripts/rollup/forwarding-dom/EventPropagators.js rename to scripts/rollup/shims/facebook-www/EventPropagators.js diff --git a/scripts/rollup/forwarding-dom/PooledClass.js b/scripts/rollup/shims/facebook-www/PooledClass.js similarity index 100% rename from scripts/rollup/forwarding-dom/PooledClass.js rename to scripts/rollup/shims/facebook-www/PooledClass.js diff --git a/scripts/rollup/forwarding-dom/ReactBrowserEventEmitter.js b/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactBrowserEventEmitter.js rename to scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js diff --git a/scripts/rollup/forwarding-dom/ReactChildren.js b/scripts/rollup/shims/facebook-www/ReactChildren.js similarity index 96% rename from scripts/rollup/forwarding-dom/ReactChildren.js rename to scripts/rollup/shims/facebook-www/ReactChildren.js index e31708fa72..0cfe8cf6be 100644 --- a/scripts/rollup/forwarding-dom/ReactChildren.js +++ b/scripts/rollup/shims/facebook-www/ReactChildren.js @@ -14,7 +14,7 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('React-fb'); +} = require('React'); // TODO: can't reexport public API because of // mapIntoWithKeyPrefixInternal() dependency in an addon. diff --git a/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js b/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js new file mode 100644 index 0000000000..b7ae3ad863 --- /dev/null +++ b/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js @@ -0,0 +1,19 @@ +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule ReactCurrentOwner + * @flow + */ + +'use strict'; + +const { + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} = require('React'); + +module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner; diff --git a/scripts/rollup/forwarding-dom/ReactDOMComponentTree.js b/scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactDOMComponentTree.js rename to scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js diff --git a/scripts/rollup/forwarding-dom/ReactDOMInputSelection.js b/scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactDOMInputSelection.js rename to scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js diff --git a/scripts/rollup/forwarding-dom/ReactDOMSelection.js b/scripts/rollup/shims/facebook-www/ReactDOMSelection.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactDOMSelection.js rename to scripts/rollup/shims/facebook-www/ReactDOMSelection.js diff --git a/scripts/rollup/forwarding-dom/ReactElement.js b/scripts/rollup/shims/facebook-www/ReactElement.js similarity index 95% rename from scripts/rollup/forwarding-dom/ReactElement.js rename to scripts/rollup/shims/facebook-www/ReactElement.js index ca533ae09c..1b866f9c9e 100644 --- a/scripts/rollup/forwarding-dom/ReactElement.js +++ b/scripts/rollup/shims/facebook-www/ReactElement.js @@ -14,7 +14,7 @@ const { createElement, createFactory, isValidElement, -} = require('React-fb'); +} = require('React'); module.exports = { createElement, diff --git a/scripts/rollup/forwarding-dom/ReactFiberErrorLogger.js b/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js similarity index 89% rename from scripts/rollup/forwarding-dom/ReactFiberErrorLogger.js rename to scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js index d427e3b803..9f051514cc 100644 --- a/scripts/rollup/forwarding-dom/ReactFiberErrorLogger.js +++ b/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js @@ -14,6 +14,6 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOMFiber-fb'); // It doesn't exist in Stack +} = require('ReactDOMFiber-build'); // It doesn't exist in Stack module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactFiberErrorLogger; diff --git a/scripts/rollup/forwarding-dom/ReactInputSelection.js b/scripts/rollup/shims/facebook-www/ReactInputSelection.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactInputSelection.js rename to scripts/rollup/shims/facebook-www/ReactInputSelection.js diff --git a/scripts/rollup/forwarding-dom/ReactInstanceMap.js b/scripts/rollup/shims/facebook-www/ReactInstanceMap.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactInstanceMap.js rename to scripts/rollup/shims/facebook-www/ReactInstanceMap.js diff --git a/scripts/rollup/forwarding-dom/ReactPerf.js b/scripts/rollup/shims/facebook-www/ReactPerf.js similarity index 88% rename from scripts/rollup/forwarding-dom/ReactPerf.js rename to scripts/rollup/shims/facebook-www/ReactPerf.js index 188737496e..1d777ddf14 100644 --- a/scripts/rollup/forwarding-dom/ReactPerf.js +++ b/scripts/rollup/shims/facebook-www/ReactPerf.js @@ -14,6 +14,6 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOMStack-fb'); // It doesn't exist in Fiber +} = require('ReactDOMStack-build'); // It doesn't exist in Fiber module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactPerf; diff --git a/scripts/rollup/forwarding-dom/ReactTestUtils.js b/scripts/rollup/shims/facebook-www/ReactTestUtils.js similarity index 100% rename from scripts/rollup/forwarding-dom/ReactTestUtils.js rename to scripts/rollup/shims/facebook-www/ReactTestUtils.js diff --git a/scripts/rollup/forwarding-dom/SyntheticEvent.js b/scripts/rollup/shims/facebook-www/SyntheticEvent.js similarity index 100% rename from scripts/rollup/forwarding-dom/SyntheticEvent.js rename to scripts/rollup/shims/facebook-www/SyntheticEvent.js diff --git a/scripts/rollup/forwarding-dom/SyntheticKeyboardEvent.js b/scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js similarity index 100% rename from scripts/rollup/forwarding-dom/SyntheticKeyboardEvent.js rename to scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js diff --git a/scripts/rollup/forwarding-dom/SyntheticMouseEvent.js b/scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js similarity index 100% rename from scripts/rollup/forwarding-dom/SyntheticMouseEvent.js rename to scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js diff --git a/scripts/rollup/forwarding-dom/SyntheticUIEvent.js b/scripts/rollup/shims/facebook-www/SyntheticUIEvent.js similarity index 100% rename from scripts/rollup/forwarding-dom/SyntheticUIEvent.js rename to scripts/rollup/shims/facebook-www/SyntheticUIEvent.js diff --git a/scripts/rollup/forwarding-dom/ViewportMetrics.js b/scripts/rollup/shims/facebook-www/ViewportMetrics.js similarity index 100% rename from scripts/rollup/forwarding-dom/ViewportMetrics.js rename to scripts/rollup/shims/facebook-www/ViewportMetrics.js diff --git a/scripts/rollup/forwarding-dom/adler32.js b/scripts/rollup/shims/facebook-www/adler32.js similarity index 100% rename from scripts/rollup/forwarding-dom/adler32.js rename to scripts/rollup/shims/facebook-www/adler32.js diff --git a/scripts/rollup/forwarding-dom/findDOMNode.js b/scripts/rollup/shims/facebook-www/findDOMNode.js similarity index 100% rename from scripts/rollup/forwarding-dom/findDOMNode.js rename to scripts/rollup/shims/facebook-www/findDOMNode.js diff --git a/scripts/rollup/forwarding-dom/flattenChildren.js b/scripts/rollup/shims/facebook-www/flattenChildren.js similarity index 95% rename from scripts/rollup/forwarding-dom/flattenChildren.js rename to scripts/rollup/shims/facebook-www/flattenChildren.js index 5e14769f7b..a728fd79d1 100644 --- a/scripts/rollup/forwarding-dom/flattenChildren.js +++ b/scripts/rollup/shims/facebook-www/flattenChildren.js @@ -14,6 +14,6 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('React-fb'); +} = require('React'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.flattenChildren; diff --git a/scripts/rollup/forwarding-dom/getComponentName.js b/scripts/rollup/shims/facebook-www/getComponentName.js similarity index 95% rename from scripts/rollup/forwarding-dom/getComponentName.js rename to scripts/rollup/shims/facebook-www/getComponentName.js index d14f0644df..fbad677f55 100644 --- a/scripts/rollup/forwarding-dom/getComponentName.js +++ b/scripts/rollup/shims/facebook-www/getComponentName.js @@ -14,6 +14,6 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('React-fb'); +} = require('React'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getComponentName; diff --git a/scripts/rollup/forwarding-dom/getEventCharCode.js b/scripts/rollup/shims/facebook-www/getEventCharCode.js similarity index 100% rename from scripts/rollup/forwarding-dom/getEventCharCode.js rename to scripts/rollup/shims/facebook-www/getEventCharCode.js diff --git a/scripts/rollup/forwarding-dom/getEventKey.js b/scripts/rollup/shims/facebook-www/getEventKey.js similarity index 100% rename from scripts/rollup/forwarding-dom/getEventKey.js rename to scripts/rollup/shims/facebook-www/getEventKey.js diff --git a/scripts/rollup/forwarding-dom/getEventTarget.js b/scripts/rollup/shims/facebook-www/getEventTarget.js similarity index 100% rename from scripts/rollup/forwarding-dom/getEventTarget.js rename to scripts/rollup/shims/facebook-www/getEventTarget.js diff --git a/scripts/rollup/forwarding-dom/getVendorPrefixedEventName.js b/scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js similarity index 100% rename from scripts/rollup/forwarding-dom/getVendorPrefixedEventName.js rename to scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js diff --git a/scripts/rollup/forwarding-dom/isEventSupported.js b/scripts/rollup/shims/facebook-www/isEventSupported.js similarity index 100% rename from scripts/rollup/forwarding-dom/isEventSupported.js rename to scripts/rollup/shims/facebook-www/isEventSupported.js diff --git a/scripts/rollup/forwarding-dom/onlyChild.js b/scripts/rollup/shims/facebook-www/onlyChild.js similarity index 90% rename from scripts/rollup/forwarding-dom/onlyChild.js rename to scripts/rollup/shims/facebook-www/onlyChild.js index 7b8a6f9b2f..b615a22330 100644 --- a/scripts/rollup/forwarding-dom/onlyChild.js +++ b/scripts/rollup/shims/facebook-www/onlyChild.js @@ -10,6 +10,6 @@ */ 'use strict'; -var { Children } = require('React-fb'); +var { Children } = require('React'); module.exports = Children.only; diff --git a/scripts/rollup/forwarding-dom/renderSubtreeIntoContainer.js b/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer.js similarity index 100% rename from scripts/rollup/forwarding-dom/renderSubtreeIntoContainer.js rename to scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer.js diff --git a/scripts/rollup/forwarding-dom/setInnerHTML.js b/scripts/rollup/shims/facebook-www/setInnerHTML.js similarity index 100% rename from scripts/rollup/forwarding-dom/setInnerHTML.js rename to scripts/rollup/shims/facebook-www/setInnerHTML.js diff --git a/scripts/rollup/forwarding-dom/setTextContent.js b/scripts/rollup/shims/facebook-www/setTextContent.js similarity index 100% rename from scripts/rollup/forwarding-dom/setTextContent.js rename to scripts/rollup/shims/facebook-www/setTextContent.js diff --git a/scripts/rollup/forwarding-native/NativeMethodsMixin.js b/scripts/rollup/shims/react-native/NativeMethodsMixin.js similarity index 100% rename from scripts/rollup/forwarding-native/NativeMethodsMixin.js rename to scripts/rollup/shims/react-native/NativeMethodsMixin.js diff --git a/scripts/rollup/forwarding-native/ReactDebugTool.js b/scripts/rollup/shims/react-native/ReactDebugTool.js similarity index 100% rename from scripts/rollup/forwarding-native/ReactDebugTool.js rename to scripts/rollup/shims/react-native/ReactDebugTool.js diff --git a/scripts/rollup/forwarding-native/ReactErrorUtils.js b/scripts/rollup/shims/react-native/ReactErrorUtils.js similarity index 100% rename from scripts/rollup/forwarding-native/ReactErrorUtils.js rename to scripts/rollup/shims/react-native/ReactErrorUtils.js diff --git a/scripts/rollup/forwarding-native/ReactNativeComponentTree.js b/scripts/rollup/shims/react-native/ReactNativeComponentTree.js similarity index 100% rename from scripts/rollup/forwarding-native/ReactNativeComponentTree.js rename to scripts/rollup/shims/react-native/ReactNativeComponentTree.js diff --git a/scripts/rollup/forwarding-native/ReactNativePropRegistry.js b/scripts/rollup/shims/react-native/ReactNativePropRegistry.js similarity index 100% rename from scripts/rollup/forwarding-native/ReactNativePropRegistry.js rename to scripts/rollup/shims/react-native/ReactNativePropRegistry.js diff --git a/scripts/rollup/forwarding-native/ReactPerf.js b/scripts/rollup/shims/react-native/ReactPerf.js similarity index 100% rename from scripts/rollup/forwarding-native/ReactPerf.js rename to scripts/rollup/shims/react-native/ReactPerf.js diff --git a/scripts/rollup/forwarding-native/TouchHistoryMath.js b/scripts/rollup/shims/react-native/TouchHistoryMath.js similarity index 100% rename from scripts/rollup/forwarding-native/TouchHistoryMath.js rename to scripts/rollup/shims/react-native/TouchHistoryMath.js diff --git a/scripts/rollup/forwarding-native/createReactNativeComponentClass.js b/scripts/rollup/shims/react-native/createReactNativeComponentClass.js similarity index 100% rename from scripts/rollup/forwarding-native/createReactNativeComponentClass.js rename to scripts/rollup/shims/react-native/createReactNativeComponentClass.js diff --git a/scripts/rollup/forwarding-native/findNodeHandle.js b/scripts/rollup/shims/react-native/findNodeHandle.js similarity index 100% rename from scripts/rollup/forwarding-native/findNodeHandle.js rename to scripts/rollup/shims/react-native/findNodeHandle.js diff --git a/scripts/rollup/shims/ReactCheckPropTypesRollupShim.js b/scripts/rollup/shims/rollup/ReactCheckPropTypesRollupShim.js similarity index 100% rename from scripts/rollup/shims/ReactCheckPropTypesRollupShim.js rename to scripts/rollup/shims/rollup/ReactCheckPropTypesRollupShim.js diff --git a/scripts/rollup/shims/ReactComponentTreeHookRollupShim.js b/scripts/rollup/shims/rollup/ReactComponentTreeHookRollupShim.js similarity index 100% rename from scripts/rollup/shims/ReactComponentTreeHookRollupShim.js rename to scripts/rollup/shims/rollup/ReactComponentTreeHookRollupShim.js diff --git a/scripts/rollup/shims/ReactCurrentOwnerRollupShim.js b/scripts/rollup/shims/rollup/ReactCurrentOwnerRollupShim.js similarity index 100% rename from scripts/rollup/shims/ReactCurrentOwnerRollupShim.js rename to scripts/rollup/shims/rollup/ReactCurrentOwnerRollupShim.js