@leverege/build-tools 2.21.9-nick.2 → 2.21.9-nick.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,7 +187,7 @@ EXIT_EVENTS.forEach(event => {
|
|
|
187
187
|
});
|
|
188
188
|
await _zx.fs.writeFile(_zx.path.join(process.cwd(), '.env.temp'), envFileContent);
|
|
189
189
|
try {
|
|
190
|
-
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}
|
|
190
|
+
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split(' ') : 'deploy';
|
|
191
191
|
await (0, _zx.$)`npm run clean && DOTENV_CONFIG_PATH=${_zx.path.join(process.cwd(), '.env.temp')} npm run build && firebase use ${TARGET.projectId} && firebase ${deployType} --only hosting:${TARGET.siteId}`;
|
|
192
192
|
} catch (err) {
|
|
193
193
|
console.error(err);
|
|
@@ -187,7 +187,7 @@ EXIT_EVENTS.forEach(event => {
|
|
|
187
187
|
});
|
|
188
188
|
await _zx.fs.writeFile(_zx.path.join(process.cwd(), '.env.temp'), envFileContent);
|
|
189
189
|
try {
|
|
190
|
-
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}
|
|
190
|
+
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split(' ') : 'deploy';
|
|
191
191
|
await (0, _zx.$)`npm run clean && DOTENV_CONFIG_PATH=${_zx.path.join(process.cwd(), '.env.temp')} npm run build && firebase use ${TARGET.projectId} && firebase ${deployType} --only hosting:${TARGET.siteId}`;
|
|
192
192
|
} catch (err) {
|
|
193
193
|
console.error(err);
|
package/package.json
CHANGED
package/src/firebaseDeploy.mjs
CHANGED
|
@@ -205,7 +205,7 @@ EXIT_EVENTS
|
|
|
205
205
|
await fs.writeFile( path.join( process.cwd(), '.env.temp' ), envFileContent )
|
|
206
206
|
|
|
207
207
|
try {
|
|
208
|
-
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}
|
|
208
|
+
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split( ' ' ) : 'deploy'
|
|
209
209
|
await $`npm run clean && DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} npm run build && firebase use ${TARGET.projectId} && firebase ${deployType} --only hosting:${TARGET.siteId}`
|
|
210
210
|
} catch ( err ) {
|
|
211
211
|
console.error( err )
|