Skip to content
Closed
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
Original file line numberDiff line numberDiff line change
Expand Up@@ -96,6 +96,7 @@ const packageJson = JSON.stringify({
jsSrcsDir: '.',
},
libraryPath: rootPath,
name: 'react-native',
});
});

Expand All@@ -112,6 +113,7 @@ const packageJson = JSON.stringify({
jsSrcsDir: '.',
},
libraryPath: myDependencyPath,
name: 'react-native',
});
expect(libraries[1]).toEqual({
config: {
Expand All@@ -120,6 +122,7 @@ const packageJson = JSON.stringify({
jsSrcsDir: 'component/js',
},
libraryPath: myDependencyPath,
name: 'my-component',
});
expect(libraries[2]).toEqual({
config: {
Expand All@@ -128,6 +131,7 @@ const packageJson = JSON.stringify({
jsSrcsDir: 'module/js',
},
libraryPath: myDependencyPath,
name: 'my-module',
});
});
});
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -236,6 +236,7 @@ function extractLibrariesFromJSON(
const config = configFile.codegenConfig;
return [
{
name: configFile.name,
config,
libraryPath: dependencyPath,
},
Expand DownExpand Up@@ -290,6 +291,7 @@ function extractLibrariesFromConfigurationArray(
) {
return configFile.codegenConfig.libraries.map(config => {
return {
name: config.name,
config,
libraryPath: dependencyPath,
};
Expand Down