crypto.js/build.js

27 lines
450 B
JavaScript
Raw Permalink Normal View History

/**
* {build}
* @author yutent<yutent.io@gmail.com>
* @date 2021/08/09 11:59:41
*/
2024-12-12 16:05:44 +08:00
import Es from 'esbuild'
import fs from 'iofs'
Es.build({
2023-12-26 15:53:43 +08:00
entryPoints: ['src/index.js'],
outfile: 'dist/index.mjs',
platform: 'node',
bundle: true,
minify: true,
format: 'esm'
})
Es.build({
2023-12-26 15:53:43 +08:00
entryPoints: ['src/index.js'],
outfile: 'dist/index.js',
platform: 'node',
bundle: true,
2022-01-08 16:00:36 +08:00
minify: true
})
2024-12-12 16:05:44 +08:00
fs.cp('src/index.d.ts', 'dist/index.d.ts')