/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/tanstack-react-query/tsdown.config.ts
27 строк
725 B
Alex / KATT
chore: fix ci (#6898)
19 авг 2025, 01:12
Не верифицирован
19 авг 2025, 01:12
a653da0
Код
Авторство
О чём код?
import { defineConfig } from 'tsdown'; export const input = ['src/index.ts']; export default defineConfig({ target: ['node18', 'es2017'], entry: input, dts: { sourcemap: true, tsconfig: './tsconfig.build.json', }, // unbundle: true, format: ['cjs', 'esm'], outExtensions: (ctx) => ({ dts: ctx.format === 'cjs' ? '.d.cts' : '.d.mts', js: ctx.format === 'cjs' ? '.cjs' : '.mjs', }), onSuccess: async () => { const start = Date.now(); const { generateEntrypoints } = await import( '../../scripts/entrypoints.js' ); await generateEntrypoints(input); // eslint-disable-next-line no-console console.log(`Generated entrypoints in ${Date.now() - start}ms`); }, });