Skip to content

Commit 46bf236

Browse files
committed
fix: copy dts files enabled to copy global types file
1 parent 2d28421 commit 46bf236

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

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)