@leverege/build-tools 2.39.0-beta.3 → 2.39.1
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 +1 -1
- package/src/firebaseServe.mjs +1 -1
package/package.json
CHANGED
package/src/firebaseDeploy.mjs
CHANGED
|
@@ -210,7 +210,7 @@ try {
|
|
|
210
210
|
const deployType = CHANNEL ? `hosting:channel:deploy ${CHANNEL.name} ${CHANNEL.expiration ? `--expires ${CHANNEL.expiration}` : ''}`.split( ' ' ) : 'deploy'
|
|
211
211
|
const hostingPrefix = CHANNEL ? '' : 'hosting:'
|
|
212
212
|
|
|
213
|
-
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}`
|
|
213
|
+
await $`npm run clean && DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} DEPLOYMENT_TARGET=${TARGET.siteId} npm run build && firebase use ${TARGET.projectId} && firebase ${deployType} --only ${hostingPrefix}${TARGET.siteId}`
|
|
214
214
|
} catch ( err ) {
|
|
215
215
|
console.error( err )
|
|
216
216
|
}
|
package/src/firebaseServe.mjs
CHANGED
|
@@ -139,7 +139,7 @@ EXIT_EVENTS
|
|
|
139
139
|
await fs.writeFile( path.join( process.cwd(), '.env.temp' ), envFileContent )
|
|
140
140
|
|
|
141
141
|
try {
|
|
142
|
-
await $`DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} npm run serve --colors`
|
|
142
|
+
await $`DOTENV_CONFIG_PATH=${path.join( process.cwd(), '.env.temp' )} DEPLOYMENT_TARGET=${TARGET.siteId} npm run serve --colors`
|
|
143
143
|
} catch ( err ) {
|
|
144
144
|
console.error( err )
|
|
145
145
|
}
|