Skip to content

Commit 7882c41

Browse files
authored
Use lowercase entry points for event modules (#15535)
Matches npm convention
1 parent 43c4e5f commit 7882c41

File tree

13 files changed

+77
-42
lines changed

13 files changed

+77
-42
lines changed

packages/react-events/drag.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
'use strict';
11+
12+
const Drag = require('./src/Drag');
13+
14+
module.exports = Drag.default || Drag;

packages/react-events/focus.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
'use strict';
11+
12+
const Focus = require('./src/Focus');
13+
14+
module.exports = Focus.default || Focus;

packages/react-events/hover.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
'use strict';
11+
12+
const Hover = require('./src/Hover');
13+
14+
module.exports = Hover.default || Hover;

packages/react-events/npm/Drag.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-events/npm/Focus.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-events/npm/Hover.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-events/npm/Press.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-events/npm/Swipe.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/react-events/press.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
'use strict';
11+
12+
const Press = require('./src/Press');
13+
14+
module.exports = Press.default || Press;

packages/react-events/src/__tests__/FocusScope-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('FocusScope event responder', () => {
4242
ReactFeatureFlags.enableEventAPI = true;
4343
React = require('react');
4444
ReactDOM = require('react-dom');
45-
FocusScope = require('react-events/FocusScope');
45+
FocusScope = require('react-events/focus-scope');
4646

4747
container = document.createElement('div');
4848
document.body.appendChild(container);

packages/react-events/swipe.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
8+
*/
9+
10+
'use strict';
11+
12+
const Swipe = require('./src/Swipe');
13+
14+
module.exports = Swipe.default || Swipe;

scripts/rollup/bundles.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const bundles = [
487487
FB_WWW_PROD,
488488
],
489489
moduleType: NON_FIBER_RENDERER,
490-
entry: 'react-events/Press',
490+
entry: 'react-events/press',
491491
global: 'ReactEventsPress',
492492
externals: [],
493493
},
@@ -502,7 +502,7 @@ const bundles = [
502502
FB_WWW_PROD,
503503
],
504504
moduleType: NON_FIBER_RENDERER,
505-
entry: 'react-events/Hover',
505+
entry: 'react-events/hover',
506506
global: 'ReactEventsHover',
507507
externals: [],
508508
},
@@ -517,7 +517,7 @@ const bundles = [
517517
FB_WWW_PROD,
518518
],
519519
moduleType: NON_FIBER_RENDERER,
520-
entry: 'react-events/Focus',
520+
entry: 'react-events/focus',
521521
global: 'ReactEventsFocus',
522522
externals: [],
523523
},
@@ -532,7 +532,7 @@ const bundles = [
532532
FB_WWW_PROD,
533533
],
534534
moduleType: NON_FIBER_RENDERER,
535-
entry: 'react-events/FocusScope',
535+
entry: 'react-events/focus-scope',
536536
global: 'ReactEventsFocusScope',
537537
externals: [],
538538
},
@@ -547,7 +547,7 @@ const bundles = [
547547
FB_WWW_PROD,
548548
],
549549
moduleType: NON_FIBER_RENDERER,
550-
entry: 'react-events/Swipe',
550+
entry: 'react-events/swipe',
551551
global: 'ReactEventsSwipe',
552552
externals: [],
553553
},
@@ -562,7 +562,7 @@ const bundles = [
562562
FB_WWW_PROD,
563563
],
564564
moduleType: NON_FIBER_RENDERER,
565-
entry: 'react-events/Drag',
565+
entry: 'react-events/drag',
566566
global: 'ReactEventsDrag',
567567
externals: [],
568568
},

0 commit comments

Comments
 (0)