From dbfdac0e980263e421d3b1e210d80ccb3c2cfb21 Mon Sep 17 00:00:00 2001 From: Zyie <24736175+Zyie@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:14:59 +0100 Subject: [PATCH] chore: follow up (#39) --- packages/assetpack/src/core/pipes/PipeSystem.ts | 2 +- packages/assetpack/src/manifest/pixiManifest.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/assetpack/src/core/pipes/PipeSystem.ts b/packages/assetpack/src/core/pipes/PipeSystem.ts index 3939317..39b528c 100644 --- a/packages/assetpack/src/core/pipes/PipeSystem.ts +++ b/packages/assetpack/src/core/pipes/PipeSystem.ts @@ -77,7 +77,7 @@ export class PipeSystem // this is to ensure that the asset is copied to the output directory without any other processing if (asset.allMetaData.copy && pipe !== finalCopyPipe) { - await this._transform(asset, pipeIndex); + await this._transform(asset, this.pipes.length - 1); return; } diff --git a/packages/assetpack/src/manifest/pixiManifest.ts b/packages/assetpack/src/manifest/pixiManifest.ts index 93298de..127525f 100644 --- a/packages/assetpack/src/manifest/pixiManifest.ts +++ b/packages/assetpack/src/manifest/pixiManifest.ts @@ -131,15 +131,15 @@ function collectAssets( const bundleAssets = localBundle.assets; const finalAssets = asset.getFinalTransformedChildren(); - if (asset.transformChildren.length > 0 && !asset.inheritedMetaData[tags!.mIgnore!]) + if (asset.transformChildren.length > 0) { - const nonIgnored = finalAssets.filter((finalAsset) => !finalAsset.inheritedMetaData[tags!.mIgnore!]); + const finalManifestAssets = finalAssets.filter((finalAsset) => !finalAsset.inheritedMetaData[tags!.mIgnore!]); - if (nonIgnored.length === 0) return; + if (finalManifestAssets.length === 0) return; bundleAssets.push({ alias: getShortNames(stripTags(path.relative(entryPath, asset.path)), options), - src: nonIgnored + src: finalManifestAssets .map((finalAsset) => path.relative(outputPath, finalAsset.path)) .sort((a, b) => b.localeCompare(a)), data: options.includeMetaData ? {