fix npm scripts
This commit is contained in:
parent
8b1bec1123
commit
8069c7e25a
|
@ -69,11 +69,11 @@
|
|||
"alias:win:apply" : "git apply-win-symlink-aliases",
|
||||
"postalias:win:apply" : "git config --unset alias.apply-win-symlink-aliases",
|
||||
"alias:win:revert" : "git config alias.rm-symlink \"\" && git config alias.rm-symlinks \"\" && git config alias.checkout-symlinks \"\"",
|
||||
"win-fix-symlinks" : "npm run isWin -s && npm run alias:win:apply || echo . ",
|
||||
"win-revert-symlinks" : "npm run isWin -s && npm run alias:win:revert || echo .",
|
||||
"prereact-tests-android": "npm run isWin -s && npm run win-fix-symlinks && git checkout-symlinks && git rm-symlinks || echo . ",
|
||||
"win-fix-symlinks" : "npm run isWin -s && npm run alias:win:apply && git checkout-symlinks && git rm-symlinks || echo . ",
|
||||
"win-revert-symlinks" : "npm run isWin -s && npm run alias:win:apply && git checkout-symlinks && npm run alias:win:revert || echo .",
|
||||
"prereact-tests-android": "npm run isWin -s && npm run win-fix-symlinks || echo . ",
|
||||
"react-tests-android": "node scripts/react-tests-android.js || npm run postreact-tests-android",
|
||||
"postreact-tests-android": "git checkout-symlinks || echo . && npm run win-revert-symlinks"
|
||||
"postreact-tests-android": "npm run win-revert-symlinks"
|
||||
},
|
||||
"dependencies": {
|
||||
"extract-zip": "^1.6.0",
|
||||
|
|
|
@ -30,7 +30,7 @@ if ('REALM_BUILD_ANDROID' in process.env) {
|
|||
const gradlew = process.platform === 'win32' ? 'gradlew.bat' : 'gradlew';
|
||||
const androidPath = path.resolve(__dirname, '../react-native/android');
|
||||
|
||||
exec(`${androidPath}/${gradlew}`, ['publishAndroid', '-PbuildWithSync=true'], { cwd: androidPath, stdio: 'inherit' });
|
||||
exec(`${androidPath}/${gradlew}`, ['publishAndroid'], { cwd: androidPath, stdio: 'inherit' });
|
||||
}
|
||||
|
||||
function ini(string) {
|
||||
|
|
|
@ -14,7 +14,8 @@ if (shell.env["REALM_BUILD_ANDROID"]) {
|
|||
shell.echo("Realm is already installed");
|
||||
} else {
|
||||
shell.env["REALM_BUILD_ANDROID"] = 1;
|
||||
shell.exec("npm install realm realm-tests");
|
||||
shell.exec("npm install realm");
|
||||
shell.exec("npm install realm-tests");
|
||||
}
|
||||
|
||||
shell.cp("../../src/object-store/tests/query.json", "node_modules/realm-tests/query-tests.json");
|
||||
|
|
Loading…
Reference in New Issue