We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9289977 commit c976f4cCopy full SHA for c976f4c
scripts/rollup.config.ts
@@ -227,6 +227,27 @@ export default defineConfig(() => {
227
}))
228
});
229
230
+ // DTS Build Config
231
+ config.push({
232
+ ...commonOptions,
233
+ input: makeDtsEntry('src/index.ts'),
234
+ plugins: [
235
+ Dts({
236
+ tsconfig,
237
+ compilerOptions: {
238
+ composite: false,
239
+ customConditions: ['develop']
240
+ },
241
+ respectExternal: /@whoj\/utils-(?:core|types)/.test(name)
242
+ })
243
+ ],
244
+ output: outputFileConfig({
245
+ input,
246
+ ext: 'd.ts',
247
+ format: 'esm'
248
249
+ });
250
+
251
return config;
252
253
0 commit comments