Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b79911c

Browse files
bump
1 parent f3bcffc commit b79911c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/postinstall.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,7 +2808,8 @@ var directories = {
28082808
console.log('NativeScript Firebase Plugin Installation');
28092809

28102810
var appRoot = "../../";
2811-
var pluginConfigPath = path.join(appRoot, "firebase.nativescript.json");
2811+
var pluginConfigFile = "firebase.nativescript.json";
2812+
var pluginConfigPath = path.join(appRoot, pluginConfigFile);
28122813

28132814
var config = {};
28142815
function mergeConfig(result) {
@@ -2823,20 +2824,20 @@ function readConfig() {
28232824
try {
28242825
config = JSON.parse(fs.readFileSync(pluginConfigPath));
28252826
} catch(e) {
2826-
console.log("Failed reading config at " + pluginConfigPath);
2827+
console.log("Failed reading " + pluginConfigFile);
28272828
console.log(e);
28282829
config = {};
28292830
}
28302831
}
28312832

28322833
if (process.argv.indexOf("config") == -1 && fs.existsSync(pluginConfigPath)) {
28332834
readConfig();
2834-
console.log("Config exists at: " + pluginConfigPath);
2835+
console.log("Config file exists (" + pluginConfigFile + ")");
28352836
askiOSPromptResult(config);
28362837
askAndroidPromptResult(config);
28372838
promptQuestionsResult(config);
28382839
} else {
2839-
console.log("No existing config found at: " + pluginConfigPath + ", so let's configure the Firebase plugin!");
2840+
console.log("No existing " + pluginConfigFile + " config file found, so let's configure the Firebase plugin!");
28402841
prompt.start();
28412842
askiOSPrompt();
28422843
}
@@ -2940,7 +2941,7 @@ function promptQuestionsResult(result) {
29402941
function askSaveConfigPrompt() {
29412942
prompt.get({
29422943
name: 'save_config',
2943-
description: 'Do you want to save the selected configuration. Reinstalling the dependency will reuse the setup from: ' + pluginConfigPath + '. CI will be easier. (y/n)',
2944+
description: 'Do you want to save the selected configuration. Reinstalling the dependency will reuse the setup from: ' + pluginConfigFile + '. CI will be easier. (y/n)',
29442945
default: 'y'
29452946
}, function (err, result) {
29462947
if (err) {

0 commit comments

Comments
 (0)