custom-element-flow
Advanced tools
Comparing version 1.0.93 to 1.0.95
#! /usr/bin/env node | ||
import axios from 'axios'; | ||
import chalk from 'chalk'; | ||
import glob from 'glob'; | ||
import { exec } from 'child_process'; | ||
import { readFile, writeFile } from 'fs/promises'; | ||
import { readFile } from 'fs/promises'; | ||
import { updateCustomElementSettings } from '../src/services/app-service.js'; | ||
type Settings = { | ||
[key: string]: any; | ||
}; | ||
export const update = async () => { | ||
@@ -33,5 +29,8 @@ const projectDir = process.cwd(); | ||
const res = await updateCustomElementSettings(appId, compId, settingsObject); | ||
await updateCustomElementSettings(appId, compId, settingsObject); | ||
}), | ||
); | ||
exec('npm run build'); | ||
console.log(chalk.green('Settings Updated Successfully!\n')); | ||
}; |
@@ -11,3 +11,5 @@ #! /usr/bin/env node | ||
}; | ||
import chalk from 'chalk'; | ||
import glob from 'glob'; | ||
import { exec } from 'child_process'; | ||
import { readFile } from 'fs/promises'; | ||
@@ -32,4 +34,6 @@ import { updateCustomElementSettings } from '../src/services/app-service.js'; | ||
}; | ||
const res = yield updateCustomElementSettings(appId, compId, settingsObject); | ||
yield updateCustomElementSettings(appId, compId, settingsObject); | ||
}))); | ||
exec('npm run build'); | ||
console.log(chalk.green('Settings Updated Successfully!\n')); | ||
}); |
@@ -41,8 +41,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
let authData = yield getStoredAuthData(); | ||
// if (!authData) { | ||
console.info(`⌛️ We need to receive your Wix instance. Please sign in if needed.`); | ||
authData = yield waitForAuthData(); | ||
// } | ||
if (!authData) { | ||
console.info(`⌛️ We need to receive your Wix instance. Please sign in if needed.`); | ||
authData = yield waitForAuthData(); | ||
} | ||
return authData; | ||
}); | ||
} |
{ | ||
"name": "custom-element-flow", | ||
"version": "1.0.93", | ||
"version": "1.0.95", | ||
"description": "My New Project description.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -39,3 +39,3 @@ import { createCallbackServer } from './callback-server.js'; | ||
// if (!authData) { | ||
if (!authData) { | ||
console.info( | ||
@@ -45,3 +45,3 @@ `⌛️ We need to receive your Wix instance. Please sign in if needed.`, | ||
authData = await waitForAuthData(); | ||
// } | ||
} | ||
@@ -48,0 +48,0 @@ return authData; |
75042
1939
5