Skip to content

Commit

Permalink
fix test and merge bits
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed Apr 25, 2024
1 parent 9019591 commit ebbf8ef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/spine/src/spineAtlasCacheBuster.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Asset, PluginOptions } from '@play-co/assetpack-core';
import { checkExt, type AssetPipe, findAssetsWithFileName } from '@play-co/assetpack-core';
import type { MipmapOptions } from '@play-co/assetpack-plugin-mipmap-compress';
import { AtlasView } from './AtlasView';
import { removeSync, writeFileSync } from 'fs-extra';
import type { MipmapOptions } from '@play-co/assetpack-plugin-image';

export type SpineCacheBusterOptions = PluginOptions<'fix' | 'nc'> & MipmapOptions;

Expand Down
6 changes: 3 additions & 3 deletions packages/spine/test/spineAtlasAll.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ describe('Spine Atlas All', () =>
output: outputDir,
cache: false,
pipes: [
mipmap({
resolutions: { default: 1, low: 0.5 },
}),
compress({
png: true,
webp: true,
jpg: true,
}),
mipmap({
resolutions: { default: 1, low: 0.5 },
}),
spineAtlasMipmap({
resolutions: { default: 1, low: 0.5 },
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/texture-packer/src/texturePackerCacheBuster.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Asset, PluginOptions } from '@play-co/assetpack-core';
import { checkExt, type AssetPipe, findAssetsWithFileName } from '@play-co/assetpack-core';
import type { MipmapOptions } from '@play-co/assetpack-plugin-mipmap-compress';
import type { MipmapOptions } from '@play-co/assetpack-plugin-image';
import { removeSync, writeFileSync } from 'fs-extra';

export type SpineOptions = PluginOptions<'fix' | 'nc'> & MipmapOptions;
Expand Down
18 changes: 8 additions & 10 deletions packages/texture-packer/test/texturePackerAll.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { cacheBuster } from '@play-co/assetpack-plugin-cache-buster';
import { readJSONSync } from 'fs-extra';
import type { File } from 'shared/test';
import { assetPath, createFolder, getInputDir, getOutputDir } from '../../../shared/test/index';
import { mipmapCompress } from '@play-co/assetpack-plugin-mipmap-compress';
import { texturePackerCompress } from '../src/texturePackerCompress';
import { compress, mipmap } from '@play-co/assetpack-plugin-image';

const pkg = 'texture-packer';

Expand Down Expand Up @@ -56,15 +56,13 @@ describe('Texture Packer All', () =>
resolutions: { default: 1, low: 0.5 },
},
}),
mipmapCompress({
mipmap: {
resolutions: { default: 1, low: 0.5 },
},
compress: {
png: true,
jpg: true,
webp: true,
}
mipmap({
resolutions: { default: 1, low: 0.5 },
}),
compress({
png: true,
jpg: true,
webp: true,
}),
texturePackerCompress({
png: true,
Expand Down

0 comments on commit ebbf8ef

Please sign in to comment.