Skip to content

Commit

Permalink
fix(ses): Make dist directory before bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed May 30, 2021
1 parent 6abbcdc commit 51afb2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ses/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const write = async (target, content) => {
console.log(`Bundle size: ${bundle.length} bytes`);
console.log(`Minified bundle size: ${terse.length} bytes`);

await fs.promises.mkdir('dist', { recursive: true });

await write('dist/ses.cjs', bundle);
await write('dist/ses.mjs', bundle);
await write('dist/ses.umd.js', bundle);
Expand Down

0 comments on commit 51afb2f

Please sign in to comment.