mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 16:36:25 +00:00
[react-packager] Make sure projectRoots is converted to an array
This commit is contained in:
parent
6d88898404
commit
258a81388e
@ -33,7 +33,11 @@ var options = parseCommandLine([{
|
|||||||
description: 'add another root(s) to be used by the packager in this project',
|
description: 'add another root(s) to be used by the packager in this project',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
if (!options.projectRoots) {
|
if (options.projectRoots) {
|
||||||
|
if (!Array.isArray(options.projectRoots)) {
|
||||||
|
options.projectRoots = options.projectRoots.split(',');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
options.projectRoots = [path.resolve(__dirname, '..')];
|
options.projectRoots = [path.resolve(__dirname, '..')];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user