Skip to content

Commit

Permalink
Merge pull request #509 from pixi-viewport/fix/global-type-missing
Browse files Browse the repository at this point in the history
fix: copy dts files enabled to copy global types file
  • Loading branch information
davidfig authored Nov 27, 2024
2 parents 2d28421 + 308b347 commit e82a98c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 3 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"strict": true,
"allowSyntheticDefaultImports": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules/**/*",
"dist"
]
}
"include": ["src/**/*", "src/global.d.ts"],
"exclude": ["node_modules/**/*", "dist"]
}
9 changes: 3 additions & 6 deletions vite.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })],
});

0 comments on commit e82a98c

Please sign in to comment.