question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Value in `outputDir` is not respected

See original GitHub issue

Hello,

since 1.0.0 the value in outputDir is not respected, in my case I have there ./dist but all .d.ts files are spread across source files.

dts({
  include: ['./index.ts', './src'],
  outputDir: './dist/'
})

The dts files after build:

/index.dts
/src/whatever.dts
/src/....

// Edit: Adding vite.config.ts

export default defineConfig({
  test: {
    globals: true
  },
  build: {
    lib: {
      entry: './index.ts',
      name: 'shared',
      formats: ['es'],
      fileName: () => 'index.js'
    },
    rollupOptions: {
      external: ['debug']
    }
  },
  plugins: [
    dts({
      include: ['./index.ts', './src'],
      outputDir: './dist/'
    })
  ]
})

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JaLe29commented, Jun 28, 2022

Same problem on windows 11…

0reactions
qmhccommented, Mar 24, 2022

I testing it is work well in linux and max systems, but not sure is the same in windows 11.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[4.8] compileGroovy.destinationDir does not respect ... - GitHub
groovy.outputDir is set to a value. Context. My build fails since the compileGroovy output is placed in the wrong folder. Steps to Reproduce ......
Read more >
Makefile project does not respect OutDir parameter
Under Incorrect project's property configuration file(as below:),echo $(OutDir) firstly, it invokes default value, it works as expected, you must define the $( ...
Read more >
$(OutDir) / $(IntDir) not obeying project settings - MSDN
The directory where OBJ files are generated is $(IntDir), its default value is $(Configuration)\, which is "Debug" or "Release" depending on the ...
Read more >
$(OutDir) is not set to project Output directory - Stack Overflow
I believe $(OutDir) is typically set in file: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.
Read more >
rna_fq2bam — Clara Parabricks v4.0 documentation
This tool is the equivalent of fq2bam for RNA-Seq samples, receiving inputs in FASTQ format, performing alignment with the splice-aware STAR algorithm, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found