From 46bf236512772cfac41def3217c525c35e7190df Mon Sep 17 00:00:00 2001 From: Daniel Barion Date: Tue, 26 Nov 2024 15:51:50 -0300 Subject: [PATCH 1/3] fix: copy dts files enabled to copy global types file --- tsconfig.json | 11 +++-------- vite.build.ts | 9 +++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 7dff23df..7425d919 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,11 +13,6 @@ "strict": true, "allowSyntheticDefaultImports": true }, - "include": [ - "src/**/*" - ], - "exclude": [ - "node_modules/**/*", - "dist" - ] -} \ No newline at end of file + "include": ["src/**/*", "src/global.d.ts"], + "exclude": ["node_modules/**/*", "dist"] +} diff --git a/vite.build.ts b/vite.build.ts index 979196dd..022e9744 100644 --- a/vite.build.ts +++ b/vite.build.ts @@ -19,14 +19,11 @@ export default defineConfig({ fileName: 'pixi_viewport', }, rollupOptions: { - external: [ - 'pixi.js', - ...Object.keys(globals), - ], + external: ['pixi.js', ...Object.keys(globals)], output: { - globals + globals, }, }, }, - plugins: [dts()] + plugins: [dts({ copyDtsFiles: true })], }); From b5e032110a0cafc01d70d2447bed315683eac98e Mon Sep 17 00:00:00 2001 From: Daniel Barion Date: Tue, 26 Nov 2024 15:53:15 -0300 Subject: [PATCH 2/3] chore: turn husky file into an executable file --- .husky/pre-commit | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 From 308b3478af8826945f2de3b34452900bf75f2a80 Mon Sep 17 00:00:00 2001 From: Daniel Barion Date: Tue, 26 Nov 2024 15:54:04 -0300 Subject: [PATCH 3/3] chore: bump version to 6.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4db67a39..075a56a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixi-viewport", - "version": "6.0.1", + "version": "6.0.2", "description": "A highly configurable viewport/2D camera designed to work with pixi.js. Features include dragging, pinch-to-zoom, mouse wheel zooming, decelerated dragging, follow target, snap to point, snap to zoom, clamping, bouncing on edges, and move on mouse edges.", "main": "./dist/pixi_viewport.umd.cjs", "module": "./dist/pixi_viewport.js",