build: fix tsdown build config
This commit is contained in:
parent
bc27437730
commit
27e9ab0982
@ -1,6 +1,6 @@
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
|
||||
const clientExternal: (string | RegExp)[] = [
|
||||
/.*\.vue$/,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
|
||||
const config = [
|
||||
{ dir: 'composables', files: ['codeRepl.ts', 'pdf.ts', 'rustRepl.ts', 'size.ts', 'audio.ts', 'demo.ts'] },
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Options, UserConfigFn } from 'tsdown'
|
||||
import { defineConfig } from 'tsdown'
|
||||
import { argv } from '../../scripts/tsup-args'
|
||||
import { argv } from '../../scripts/tsup-args.js'
|
||||
|
||||
const sharedExternal: (string | RegExp)[] = [
|
||||
/.*\/shared\/index\.js$/,
|
||||
|
||||
@ -3,7 +3,7 @@ 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'
|
||||
import { argv } from '../scripts/tsup-args.js'
|
||||
|
||||
const sharedExternal: (string | RegExp)[] = [
|
||||
/.*\/shared\/index\.js$/,
|
||||
|
||||
@ -14,7 +14,8 @@
|
||||
"plugins/**/*",
|
||||
"theme/**/*",
|
||||
"docs/.vuepress/**/*",
|
||||
"cli/**/*"
|
||||
"cli/**/*",
|
||||
"scripts/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user