#TSUp generating weird files

4 messages · Page 1 of 1 (latest)

idle canyon
#

For some reason I'm getting these two odd files generated after running tsup. AnnotationData.ts is a file I have, but it's not there (dist) and it certainly isn't named that way. The "original" one is where it belongs, but I'm not sure what is going on with these two.

I'm running: rimraf ./dist && tsup ./src
My tsup config:

import { defineConfig } from 'tsup';

export default defineConfig({
  target: 'es2020',
  format: ['cjs', 'esm'],
  splitting: false,
  sourcemap: true,
  clean: true,
  dts: true
})

my index.ts is basically a barrel file, it only has a bunch of export * from './someFile';

#

they're also showing in the log

#

removing the rimraf step doesn't fix it either

idle canyon