Skip to content

Commit ef173f6

Browse files
maickifrostney
authored andcommitted
Fix Error: more than one library with package name 'com.reactlibrary' (#53)
1 parent 621b68d commit ef173f6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ module.exports = ({
3737
throw new Error('Please specify at least one platform to generate the library.');
3838
}
3939

40-
if (prefix === 'RN') {
41-
console.warn(`While \`RN\` is the default prefix,
42-
it is recommended to customize the prefix.`);
40+
if (prefix === DEFAULT_PREFIX) {
41+
console.warn(`While \`${DEFAULT_PREFIX}\` is the default prefix,
42+
it is recommended to customize the prefix.`);
43+
}
44+
45+
if (packageIdentifier === DEFAULT_PACKAGE_IDENTIFIER) {
46+
console.warn(`While \`{DEFAULT_PACKAGE_IDENTIFIER}\` is the default package
47+
identifier, it is recommended to customize the package identifier.`);
4348
}
4449

4550
return Promise.all(templates.filter((template) => {

0 commit comments

Comments
 (0)