Skip to content

Commit e82a98c

Browse files
authored
Merge pull request #509 from pixi-viewport/fix/global-type-missing
fix: copy dts files enabled to copy global types file
2 parents 2d28421 + 308b347 commit e82a98c

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.husky/pre-commit

100644100755
File mode changed.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pixi-viewport",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"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.",
55
"main": "./dist/pixi_viewport.umd.cjs",
66
"module": "./dist/pixi_viewport.js",

tsconfig.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
"strict": true,
1414
"allowSyntheticDefaultImports": true
1515
},
16-
"include": [
17-
"src/**/*"
18-
],
19-
"exclude": [
20-
"node_modules/**/*",
21-
"dist"
22-
]
23-
}
16+
"include": ["src/**/*", "src/global.d.ts"],
17+
"exclude": ["node_modules/**/*", "dist"]
18+
}

vite.build.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ export default defineConfig({
1919
fileName: 'pixi_viewport',
2020
},
2121
rollupOptions: {
22-
external: [
23-
'pixi.js',
24-
...Object.keys(globals),
25-
],
22+
external: ['pixi.js', ...Object.keys(globals)],
2623
output: {
27-
globals
24+
globals,
2825
},
2926
},
3027
},
31-
plugins: [dts()]
28+
plugins: [dts({ copyDtsFiles: true })],
3229
});

0 commit comments

Comments
 (0)