From 93aeb89a47c266beb6456d6402edb23fb3069772 Mon Sep 17 00:00:00 2001 From: mrmao Date: Fri, 9 Jun 2023 11:28:43 +0800 Subject: [PATCH] chore: remove unused global declaration file The global.d.ts file was not being used by the package and had redundant declarations. It was deleted to improve the package size and organization. --- packages/vue3-pixi/global.d.ts | 40 --------------------------------- packages/vue3-pixi/package.json | 10 +++++++++ 2 files changed, 10 insertions(+), 40 deletions(-) delete mode 100644 packages/vue3-pixi/global.d.ts diff --git a/packages/vue3-pixi/global.d.ts b/packages/vue3-pixi/global.d.ts deleted file mode 100644 index 72724fd..0000000 --- a/packages/vue3-pixi/global.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -declare module '@vue/runtime-core' { - interface GlobalComponents { - Filter: import('@vue-pixi/renderer').FilterComponent - PixiFilter: import('@vue-pixi/renderer').FilterComponent - BlurFilter: import('@vue-pixi/renderer').BlurFilterComponent - PixiBlurFilter: import('@vue-pixi/renderer').BlurFilterComponent - AlphaFilter: import('@vue-pixi/renderer').AlphaFilterComponent - PixiAlphaFilter: import('@vue-pixi/renderer').AlphaFilterComponent - DisplacementFilter: import('@vue-pixi/renderer').DisplacementFilterComponent - PixiDisplacementFilter: import('@vue-pixi/renderer').DisplacementFilterComponent - ColorMatrixFilter: import('@vue-pixi/renderer').ColorMatrixFilterComponent - PixiColorMatrixFilter: import('@vue-pixi/renderer').ColorMatrixFilterComponent - FXAAFilter: import('@vue-pixi/renderer').FXAAFilterComponent - PixiFXAAFilter: import('@vue-pixi/renderer').FXAAFilterComponent - Container: import('@vue-pixi/renderer').ContainerComponent - PixiContainer: import('@vue-pixi/renderer').ContainerComponent - Sprite: import('@vue-pixi/renderer').SpriteComponent - PixiSprite: import('@vue-pixi/renderer').SpriteComponent - Graphics: import('@vue-pixi/renderer').GraphicsComponent - PixiGraphics: import('@vue-pixi/renderer').GraphicsComponent - Text: import('@vue-pixi/renderer').TextComponent - PixiText: import('@vue-pixi/renderer').TextComponent - BitmapText: import('@vue-pixi/renderer').BitmapTextComponent - PixiBitmapText: import('@vue-pixi/renderer').BitmapTextComponent - TilingSprite: import('@vue-pixi/renderer').TilingSpriteComponent - PixiTilingSprite: import('@vue-pixi/renderer').TilingSpriteComponent - AnimatedSprite: import('@vue-pixi/renderer').AnimatedSpriteComponent - PixiAnimatedSprite: import('@vue-pixi/renderer').AnimatedSpriteComponent - Mesh: import('@vue-pixi/renderer').MeshComponent - PixiMesh: import('@vue-pixi/renderer').MeshComponent - SimplePlane: import('@vue-pixi/renderer').SimplePlaneComponent - PixiSimplePlane: import('@vue-pixi/renderer').SimplePlaneComponent - NineSlicePlane: import('@vue-pixi/renderer').NineSlicePlaneComponent - PixiNineSlicePlane: import('@vue-pixi/renderer').NineSlicePlaneComponent - SimpleRope: import('@vue-pixi/renderer').SimpleRopeComponent - PixiSimpleRope: import('@vue-pixi/renderer').SimpleRopeComponent - } -} - -export {} \ No newline at end of file diff --git a/packages/vue3-pixi/package.json b/packages/vue3-pixi/package.json index 503fc7a..695792a 100644 --- a/packages/vue3-pixi/package.json +++ b/packages/vue3-pixi/package.json @@ -24,6 +24,16 @@ "require": "./dist/index.cjs", "import": "./dist/index.js" }, + "./compiler": { + "types": "./dist/compiler.d.ts", + "require": "./dist/compiler.cjs", + "import": "./dist/compiler.js" + }, + "./global": { + "types": "./dist/global.d.ts", + "require": "./dist/global.cjs", + "import": "./dist/global.js" + }, "./*": "./*" }, "main": "dist/index.cjs",