Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use lowercase entry points for event modules
Matches npm convention
  • Loading branch information
acdlite committed Apr 29, 2019
commit d320bbed28e4fcda4f1f457128a76878b5b58f82
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;
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