Skip to content

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

Description

@liss-mouse

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'),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions