Skip to content

Commit

Permalink
Use lowercase entry points for event modules (#15535)
Browse files Browse the repository at this point in the history
Matches npm convention
  • Loading branch information
acdlite authored Apr 29, 2019
1 parent 43c4e5f commit 7882c41
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 42 deletions.
14 changes: 14 additions & 0 deletions packages/react-events/drag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const Drag = require('./src/Drag');

module.exports = Drag.default || Drag;
File renamed without changes.
14 changes: 14 additions & 0 deletions packages/react-events/focus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const Focus = require('./src/Focus');

module.exports = Focus.default || Focus;
14 changes: 14 additions & 0 deletions packages/react-events/hover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const Hover = require('./src/Hover');

module.exports = Hover.default || Hover;
7 changes: 0 additions & 7 deletions packages/react-events/npm/Drag.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-events/npm/Focus.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-events/npm/Hover.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-events/npm/Press.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-events/npm/Swipe.js

This file was deleted.

14 changes: 14 additions & 0 deletions packages/react-events/press.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const Press = require('./src/Press');

module.exports = Press.default || Press;
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('FocusScope event responder', () => {
ReactFeatureFlags.enableEventAPI = true;
React = require('react');
ReactDOM = require('react-dom');
FocusScope = require('react-events/FocusScope');
FocusScope = require('react-events/focus-scope');

container = document.createElement('div');
document.body.appendChild(container);
Expand Down
14 changes: 14 additions & 0 deletions packages/react-events/swipe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

'use strict';

const Swipe = require('./src/Swipe');

module.exports = Swipe.default || Swipe;
12 changes: 6 additions & 6 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/Press',
entry: 'react-events/press',
global: 'ReactEventsPress',
externals: [],
},
Expand All @@ -502,7 +502,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/Hover',
entry: 'react-events/hover',
global: 'ReactEventsHover',
externals: [],
},
Expand All @@ -517,7 +517,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/Focus',
entry: 'react-events/focus',
global: 'ReactEventsFocus',
externals: [],
},
Expand All @@ -532,7 +532,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/FocusScope',
entry: 'react-events/focus-scope',
global: 'ReactEventsFocusScope',
externals: [],
},
Expand All @@ -547,7 +547,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/Swipe',
entry: 'react-events/swipe',
global: 'ReactEventsSwipe',
externals: [],
},
Expand All @@ -562,7 +562,7 @@ const bundles = [
FB_WWW_PROD,
],
moduleType: NON_FIBER_RENDERER,
entry: 'react-events/Drag',
entry: 'react-events/drag',
global: 'ReactEventsDrag',
externals: [],
},
Expand Down

0 comments on commit 7882c41

Please sign in to comment.