Skip to content

Commit

Permalink
fix(dev-mode): always add dist-types (#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitflower authored May 6, 2020
1 parent 28f6cc5 commit f523461
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/compiler/config/outputs/validate-dist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const validateDist = (config: d.Config, userOutputs: d.OutputTarget[]) =>
file: join(lazyDir, `${config.fsNamespace}.css`),
});

outputs.push({
type: DIST_TYPES,
dir: distOutputTarget.dir,
typesDir: distOutputTarget.typesDir,
empty: distOutputTarget.empty,
});

if (config.buildDist) {
if (distOutputTarget.collectionDir) {
outputs.push({
Expand All @@ -60,13 +67,6 @@ export const validateDist = (config: d.Config, userOutputs: d.OutputTarget[]) =>
});
}

outputs.push({
type: DIST_TYPES,
dir: distOutputTarget.dir,
typesDir: distOutputTarget.typesDir,
empty: distOutputTarget.empty,
});

const esmDir = join(distOutputTarget.dir, 'esm');
const esmEs5Dir = config.buildEs5 ? join(distOutputTarget.dir, 'esm-es5') : undefined;
const cjsDir = join(distOutputTarget.dir, 'cjs');
Expand Down

0 comments on commit f523461

Please sign in to comment.