chore: types in esbuild.mjs

This commit is contained in:
Guillaume
2021-07-04 23:15:57 +02:00
parent 0d8bebeffc
commit 924b0cbc26
@@ -2,7 +2,16 @@ import esbuild from 'esbuild'
import path from 'path'
import { nodeExternalsPlugin } from 'esbuild-node-externals'
/** @typedef {import('esbuild').BuildOptions} BuildOptions */
/**
* @typedef Build
* @prop {BuildOptions['format']} format
* @prop {string} file
*/
(async () => {
/** @type {Build[]} */
const builds = [
{ format: 'esm', file: 'index.esm.js' },
{ format: 'cjs', file: 'index.js' },