[READ-ONLY] Mirror of https://github.com/danielroe/siroc. Zero-config build tooling for Node
bundle node package rollup typescript
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: switch main dts generation location

Daniel Roe (Apr 6, 2021, 4:38 PM +0100) 2c220d70 9892210b

+17 -16
+17 -16
src/core/build/rollup.ts
··· 159 159 const typeEntrypoint = 160 160 (pkgConfig.types || pkgConfig.typings) && 161 161 pkg.resolveEntrypoint(pkgConfig.types || pkgConfig.typings) 162 - const entries = exports.map(ex => pkg.resolveEntrypoint(ex)) 163 162 164 163 return [ 165 164 ...binaries.map(([binary, input]) => ··· 183 182 plugins: getPlugins(), 184 183 }) 185 184 ), 186 - ...includeIf( 187 - !entries.includes(typeEntrypoint) && typeEntrypoint, 188 - input => ({ 189 - input, 190 - output: { 191 - // eslint-disable-next-line 192 - file: resolvePath(pkgConfig.types || pkgConfig.typings!), 193 - format: 'es', 194 - exports: 'auto', 195 - } as OutputOptions, 196 - external, 197 - plugins: getDeclarationPlugins(), 198 - }) 199 - ), 185 + ...includeIf(typeEntrypoint, input => ({ 186 + input, 187 + output: { 188 + // eslint-disable-next-line 189 + file: resolvePath(pkgConfig.types || pkgConfig.typings!), 190 + format: 'es', 191 + exports: 'auto', 192 + } as OutputOptions, 193 + external, 194 + plugins: getDeclarationPlugins(), 195 + })), 200 196 ...exports 201 197 .filter(outfile => outfile && !outfile.match(/\.json$/)) 202 198 .map(outfile => ··· 212 208 }) 213 209 ), 214 210 ...exports 215 - .filter(outfile => outfile && !outfile.match(/\.json$/)) 211 + .filter( 212 + outfile => 213 + outfile && 214 + !outfile.match(/\.json$/) && 215 + pkg.resolveEntrypoint(outfile) !== typeEntrypoint 216 + ) 216 217 .map(outfile => 217 218 defu({}, options as RollupOptions, { 218 219 input: pkg.resolveEntrypoint(outfile),