Skip to content

Commit a12edaa

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Align folder name for assets-registry package (facebook#56891)
Summary: Pull Request resolved: facebook#56891 (Tried this a while back, but now we have Claude to drive the fbsource references to resolution.) No changes to the package name on npm or any APIs — consumers importing `react-native/assets-registry` are unaffected. Changelog: [Internal] Reviewed By: YeBrian Differential Revision: D105686184
1 parent 5a3f37c commit a12edaa

8 files changed

Lines changed: 6 additions & 6 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
files: [
5151
'./packages/react-native/Libraries/**/*.{js,flow}',
5252
'./packages/react-native/src/**/*.{js,flow}',
53-
'./packages/assets/registry.js',
53+
'./packages/assets-registry/registry.js',
5454
],
5555
parser: 'hermes-eslint',
5656
rules: {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ yarn add --dev @react-native/assets-registry
1818
To run the tests in this package, run the following commands from the React Native root folder:
1919

2020
1. `yarn` to install the dependencies. You just need to run this once
21-
2. `yarn jest packages/assets`.
21+
2. `yarn jest packages/assets-registry`.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/facebook/react-native.git",
9-
"directory": "packages/assets"
9+
"directory": "packages/assets-registry"
1010
},
11-
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets#readme",
11+
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets-registry#readme",
1212
"keywords": [
1313
"assets",
1414
"registry",

packages/react-native/Libraries/Image/__tests__/resolveAssetSource-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @format
99
*/
1010

11-
import type {PackagerAsset} from '../../../../assets/registry';
11+
import type {PackagerAsset} from '../../../../assets-registry/registry';
1212
import type {ResolvedAssetSource} from '../AssetSourceResolver';
1313

1414
describe('resolveAssetSource', () => {

private/helloworld/metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929
// Make Metro able to resolve required external dependencies
3030
watchFolders: [
3131
repositoryPath('node_modules'),
32-
repositoryPath('packages/assets'),
32+
repositoryPath('packages/assets-registry'),
3333
repositoryPath('packages/normalize-color'),
3434
repositoryPath('packages/polyfills'),
3535
repositoryPath('packages/react-native'),

0 commit comments

Comments
 (0)