Reproduction link or steps
Create a tsdown config containing the following:
import { defineConfig } from 'tsdown';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm'],
copy: (resolvedConfig) => {
console.log(resolvedConfig.pkg?.name);
return [];
},
});
What is expected?
No type errors.
What is actually happening?
resolvedConfig.pkg?.name has an any type. pkg is of type PackageJsonWithPath. This type comes from from pkg-types, but this is declared as a dev dep so is not installed by consumers.
Any additional comments?
No response
Reproduction link or steps
Create a tsdown config containing the following:
What is expected?
No type errors.
What is actually happening?
resolvedConfig.pkg?.namehas ananytype.pkgis of typePackageJsonWithPath. This type comes from frompkg-types, but this is declared as a dev dep so is not installed by consumers.Any additional comments?
No response