fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 27 lines 611 B view raw
1import path from 'node:path'; 2 3import { defineConfig } from 'rollup'; 4import dts from 'rollup-plugin-dts'; 5 6const files = ['index.d.mts', 'index.d.cts', 'plugin.d.mts', 'plugin.d.cts']; 7 8export default files.map((file) => 9 defineConfig({ 10 external: (id) => { 11 const normalizedId = id.split(path.sep).join('/'); 12 return ( 13 !normalizedId.startsWith('/') && !/^[a-zA-Z]:\//.test(normalizedId) 14 ); 15 }, 16 input: `./dist/${file}`, 17 output: { 18 file: `./dist/${file}`, 19 format: 'es', 20 }, 21 plugins: [ 22 dts({ 23 respectExternal: true, 24 }), 25 ], 26 }), 27);