ci: clean up old console build

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7826
GitOrigin-RevId: a70472d5befaef1d0f0d072c86c848e8734fe78a
This commit is contained in:
Nicolas Beaussart 2023-02-08 14:51:09 +01:00 committed by hasura-bot
parent 7e9e7be395
commit 5163759e0e

View File

@ -111,6 +111,10 @@ export default async function runMyExecutor(
validateAllowedAssets(extractedAssets); validateAllowedAssets(extractedAssets);
const loaderFile = generateAssetLoaderFile(extractedAssets); const loaderFile = generateAssetLoaderFile(extractedAssets);
tree.write(`${serverAssetBase}/versioned/assetLoader.js`, loaderFile); tree.write(`${serverAssetBase}/versioned/assetLoader.js`, loaderFile);
tree.write(
`${serverAssetBase}/versioned/main.js`,
generatePolyfillLoaderFile(loaderFile)
);
tree.write( tree.write(
`${serverAssetBase}/loaderPolyfill.js`, `${serverAssetBase}/loaderPolyfill.js`,
generatePolyfillLoaderFile(loaderFile) generatePolyfillLoaderFile(loaderFile)
@ -122,7 +126,7 @@ export default async function runMyExecutor(
{ {
commands: [ commands: [
`gzip -f ${serverAssetBase}/versioned/assetLoader.js`, `gzip -f ${serverAssetBase}/versioned/assetLoader.js`,
`gzip -f ${serverAssetBase}/loaderPolyfill.js`, `gzip -f ${serverAssetBase}/versioned/main.js`,
], ],
parallel: false, parallel: false,
__unparsed__: [], __unparsed__: [],