build: fix tsdown build config
This commit is contained in:
parent
21045599d0
commit
bc27437730
@ -1,6 +1,6 @@
|
||||
import type { Options } from 'tsdown'
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
|
||||
const clientExternal: (string | RegExp)[] = [
|
||||
/.*\.vue$/,
|
||||
@ -37,4 +37,4 @@ export default defineConfig(() => {
|
||||
])
|
||||
}
|
||||
return options
|
||||
}) as Options[]
|
||||
}) as UserConfigFn
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Options } from 'tsdown'
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
|
||||
const config = [
|
||||
{ dir: 'composables', files: ['codeRepl.ts', 'pdf.ts', 'rustRepl.ts', 'size.ts', 'audio.ts', 'demo.ts'] },
|
||||
@ -51,4 +51,4 @@ export default defineConfig((cli) => {
|
||||
}) as Options))
|
||||
}
|
||||
return options
|
||||
}) as Options[]
|
||||
}) as UserConfigFn
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Options } from 'tsdown'
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
|
||||
const sharedExternal: (string | RegExp)[] = [
|
||||
/.*\/shared\/index\.js$/,
|
||||
@ -77,4 +77,4 @@ export default defineConfig(() => {
|
||||
}
|
||||
|
||||
return options
|
||||
}) as Options[]
|
||||
}) as UserConfigFn
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import type { Options } from 'tsdown'
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import process from 'node:process'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../scripts/tsup-args.js'
|
||||
import { argv } from '../scripts/tsup-args'
|
||||
|
||||
const sharedExternal: (string | RegExp)[] = [
|
||||
/.*\/shared\/index\.js$/,
|
||||
@ -113,4 +113,4 @@ export default defineConfig((cli) => {
|
||||
] as Options[])
|
||||
}
|
||||
return options
|
||||
}) as Options[]
|
||||
}) as UserConfigFn
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user