diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 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", 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 })], });