@leverege/build-tools 2.21.9-nick.3 → 2.21.9-nick.4
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.
|
@@ -188,7 +188,8 @@ EXIT_EVENTS.forEach(event => {
|
|
|
188
188
|
await _zx.fs.writeFile(_zx.path.join(process.cwd(), '.env.temp'), envFileContent);
|
|
189
189
|
try {
|
|
190
190
|
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split(' ') : 'deploy';
|
|
191
|
-
|
|
191
|
+
const hostingPrefix = CHANNEL ? '' : 'hosting:';
|
|
192
|
+
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 ${hostingPrefix}${TARGET.siteId}`;
|
|
192
193
|
} catch (err) {
|
|
193
194
|
console.error(err);
|
|
194
195
|
}
|
|
@@ -188,7 +188,8 @@ EXIT_EVENTS.forEach(event => {
|
|
|
188
188
|
await _zx.fs.writeFile(_zx.path.join(process.cwd(), '.env.temp'), envFileContent);
|
|
189
189
|
try {
|
|
190
190
|
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split(' ') : 'deploy';
|
|
191
|
-
|
|
191
|
+
const hostingPrefix = CHANNEL ? '' : 'hosting:';
|
|
192
|
+
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 ${hostingPrefix}${TARGET.siteId}`;
|
|
192
193
|
} catch (err) {
|
|
193
194
|
console.error(err);
|
|
194
195
|
}
|
package/package.json
CHANGED
package/src/firebaseDeploy.mjs
CHANGED
|
@@ -206,7 +206,8 @@ await fs.writeFile( path.join( process.cwd(), '.env.temp' ), envFileContent )
|
|
|
206
206
|
|
|
207
207
|
try {
|
|
208
208
|
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split( ' ' ) : 'deploy'
|
|
209
|
-
|
|
209
|
+
const hostingPrefix = CHANNEL ? '' : 'hosting:'
|
|
210
|
+
await $`npm run clean && DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} npm run build && firebase use ${TARGET.projectId} && firebase ${deployType} --only ${hostingPrefix}${TARGET.siteId}`
|
|
210
211
|
} catch ( err ) {
|
|
211
212
|
console.error( err )
|
|
212
213
|
}
|