mirror of
https://github.com/status-im/metro.git
synced 2025-02-27 18:20:53 +00:00
Updates from Thu 26 Mar
- [React Native] Fix incorrect if-statement in RCTGeolocation | Alex Akers - [ReactNative] s/ReactKit/React/g | Tadeu Zagallo - [React Native] View border support | Nick Lockwood - [Assets] Allow scripts to override assetRoots | Amjad Masad - [ReactNative] Navigator docs | Eric Vicenti - [ReactNative] License headers and renaming | Eric Vicenti - [React Native] Add CocoaPods spec | Tadeu Zagallo - Added explicit types for all view properties | Nick Lockwood - [ReactNative] s/ReactNavigator/Navigator/ | Tadeu Zagallo - [ReactNative] Add copyright header for code copied from the jQuery UI project | Martin Konicek - [ReactNative] PanResponder documentation | Eric Vicenti
This commit is contained in:
parent
4be2d7c737
commit
6166228846
@ -36,6 +36,9 @@ var options = parseCommandLine([{
|
|||||||
}, {
|
}, {
|
||||||
command: 'root',
|
command: 'root',
|
||||||
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',
|
||||||
|
}, {
|
||||||
|
command: 'assetRoots',
|
||||||
|
description: 'specify the root directories of app assets'
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
if (options.projectRoots) {
|
if (options.projectRoots) {
|
||||||
@ -61,7 +64,11 @@ if (options.root) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.assetRoots) {
|
if (options.assetRoots) {
|
||||||
|
if (!Array.isArray(options.assetRoots)) {
|
||||||
|
options.assetRoots = options.assetRoots.split(',');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
options.assetRoots = [path.resolve(__dirname, '..')];
|
options.assetRoots = [path.resolve(__dirname, '..')];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user