dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

Bundler fails for all declarations if project name contains slash

Open liss-mouse opened this issue 5 years ago • 1 comments

My library has a name with slash (@preply/navigation), and it fails to process when I want to bundle all .d.ts files (works well for single declaration file):

Error: ENOENT: no such file or directory, open '/Users/lissm/Work/Dev/Git/apollo/client/@preply/navigation/build/dts-bundle.tmp.@preply/navigation.d.ts'
    at Object.openSync (fs.js:434:3)
    at Object.writeFileSync (fs.js:1154:35)
    at Object.bundle (/Users/lissm/Work/Dev/Git/apollo/client/@preply/navigation/node_modules/dts-bundle/lib/index.js:113:12)

My config:

{
  name: '@preply/navigation',
  main: 'build/**/*.d.ts',
  out: path.join(__dirname, 'dist/index.d.ts'),
}

liss-mouse avatar Jan 30 '19 14:01 liss-mouse

I'm having this problem too. Is there a workaround?

markcellus avatar Nov 24 '19 01:11 markcellus