@leverege/build-tools 2.96.0-quinn.5 → 2.96.0
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.
- package/package.json +1 -1
- package/src/firebaseDeploy.mjs +2 -2
package/package.json
CHANGED
package/src/firebaseDeploy.mjs
CHANGED
|
@@ -214,8 +214,8 @@ try {
|
|
|
214
214
|
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split( ' ' ) : 'deploy'
|
|
215
215
|
const hostingPrefix = CHANNEL ? '' : 'hosting:'
|
|
216
216
|
|
|
217
|
-
const cleanCommand = isYarnProject ? 'yarn clean' : 'npm run clean'
|
|
218
|
-
const buildCommand = isYarnProject ? 'yarn build' : 'npm run build'
|
|
217
|
+
const cleanCommand = isYarnProject ? [ 'yarn', 'clean' ] : [ 'npm', 'run', 'clean' ]
|
|
218
|
+
const buildCommand = isYarnProject ? [ 'yarn', 'build' ] : [ 'npm', 'run', 'build' ]
|
|
219
219
|
|
|
220
220
|
await $( { ac } )`${cleanCommand} && DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} DEPLOYMENT_TARGET=${TARGET.siteId} ${buildCommand} && firebase use ${TARGET.projectId} && firebase ${deployType} --only ${hostingPrefix}${TARGET.siteId}`
|
|
221
221
|
} catch ( err ) {
|