Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler fails for all declarations if project name contains slash #75

Open
liss-mouse opened this issue Jan 30, 2019 · 1 comment · May be fixed by #85
Open

Bundler fails for all declarations if project name contains slash #75

liss-mouse opened this issue Jan 30, 2019 · 1 comment · May be fixed by #85

Comments

@liss-mouse
Copy link

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'),
}
@markcellus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants