mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Align folder name for assets-registry package (#56891)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 fbshipit-source-id: 700481d0937cb36490f5c3d8afc9924c0a804575
This commit is contained in:
1 parent
f1cd0070ce
commit
13ab72a600
10 files changed
+8
-8
No files matched your search
+1
-1
@@ -50,7 +50,7 @@ module.exports = {
|
||||
files: [
|
||||
'./packages/react-native/Libraries/**/*.{js,flow}',
|
||||
'./packages/react-native/src/**/*.{js,flow}',
|
||||
'./packages/assets/registry.js',
|
||||
'./packages/assets-registry/registry.js',
|
||||
],
|
||||
parser: 'hermes-eslint',
|
||||
rules: {
|
||||
|
||||
@@ -18,4 +18,4 @@ yarn add --dev @react-native/assets-registry
|
||||
To run the tests in this package, run the following commands from the React Native root folder:
|
||||
|
||||
1. `yarn` to install the dependencies. You just need to run this once
|
||||
2. `yarn jest packages/assets`.
|
||||
2. `yarn jest packages/assets-registry`.
|
||||
File renamed without changes.
@@ -6,9 +6,9 @@
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"directory": "packages/assets"
|
||||
"directory": "packages/assets-registry"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets#readme",
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets-registry#readme",
|
||||
"keywords": [
|
||||
"assets",
|
||||
"registry",
|
||||
File renamed without changes.
File renamed without changes.
@@ -8,7 +8,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import type {PackagerAsset} from '../../../../assets/registry';
|
||||
import type {PackagerAsset} from '../../../../assets-registry/registry';
|
||||
import type {ResolvedAssetSource} from '../AssetSourceResolver';
|
||||
|
||||
describe('resolveAssetSource', () => {
|
||||
|
||||
@@ -26,7 +26,7 @@ const config = {
|
||||
// Make Metro able to resolve required packages that might be imported from /packages/react-native
|
||||
watchFolders: [
|
||||
path.resolve(__dirname, '../../node_modules'),
|
||||
path.resolve(__dirname, '../assets'),
|
||||
path.resolve(__dirname, '../assets-registry'),
|
||||
path.resolve(__dirname, '../normalize-color'),
|
||||
path.resolve(__dirname, '../polyfills'),
|
||||
path.resolve(__dirname, '../virtualized-lists'),
|
||||
|
||||
@@ -24,7 +24,7 @@ const config = {
|
||||
// Make Metro able to resolve required external dependencies
|
||||
watchFolders: [
|
||||
path.resolve(__dirname, '../../node_modules'),
|
||||
path.resolve(__dirname, '../assets'),
|
||||
path.resolve(__dirname, '../assets-registry'),
|
||||
path.resolve(__dirname, '../community-cli-plugin'),
|
||||
path.resolve(__dirname, '../dev-middleware'),
|
||||
path.resolve(__dirname, '../new-app-screen'),
|
||||
|
||||
@@ -29,7 +29,7 @@ const config = {
|
||||
// Make Metro able to resolve required external dependencies
|
||||
watchFolders: [
|
||||
repositoryPath('node_modules'),
|
||||
repositoryPath('packages/assets'),
|
||||
repositoryPath('packages/assets-registry'),
|
||||
repositoryPath('packages/normalize-color'),
|
||||
repositoryPath('packages/polyfills'),
|
||||
repositoryPath('packages/react-native'),
|
||||
|
||||
Reference in new issue
Block a user