Skip to content

Commit c514105

Browse files
committed
chore: fix type check
1 parent fb0c4db commit c514105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/webext/scripts/build-app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function prepareTypes() {
2020
await writeTypes(nuxt)
2121
}
2222

23-
export async function buildDevToolsApp(buildDir: string) {
23+
export async function buildDevToolsApp(buildDir: string): Promise<void> {
2424
fs.rmSync(distDir, { recursive: true, force: true })
2525
await prepareTypes()
2626

@@ -67,13 +67,15 @@ export async function buildDevToolsApp(buildDir: string) {
6767

6868
return new Promise<void>((resolve, reject) => {
6969
nuxt.hooks.hook('vite:extendConfig', (config) => {
70+
// @ts-expect-error skip type check
7071
config.build = {
7172
...config.build,
7273
lib: {
7374
// @ts-expect-error skip type check
7475
entry: config.build.rollupOptions.input.entry,
7576
name: 'devtools-app',
7677
fileName: () => `devtools-app.js`,
78+
cssFileName: `devtools-app.css`,
7779
formats: ['es'],
7880
},
7981
rollupOptions: {

0 commit comments

Comments
 (0)