build: fix tsdown build config

This commit is contained in:
pengzhanbo 2025-08-10 23:40:48 +08:00
parent bc27437730
commit 27e9ab0982
5 changed files with 6 additions and 5 deletions

View File

@ -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$/,

View File

@ -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'] },

View File

@ -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$/,

View File

@ -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$/,

View File

@ -14,7 +14,8 @@
"plugins/**/*",
"theme/**/*",
"docs/.vuepress/**/*",
"cli/**/*"
"cli/**/*",
"scripts/**/*"
],
"exclude": [
"**/node_modules/**",