The pack of custom ESbuild plugins for packaging Hackolade plugins
npm install @hackolade/hck-esbuild-plugins-packrelease: true flag
npm install @hackolade/hck-esbuild-plugins-pack
`Usage
`javascript
import { build } from 'esbuild';
import { copyFolderFiles, addReleaseFlag } from '@hackolade/hck-esbuild-plugins-pack';(async () => {
const res = await build({
entryPoints: ['./demo.js'],
bundle: true,
outfile: './dist/main.js',
plugins: [
copyFolderFiles({
fromPath: __dirname,
targetFolderPath: './dist',
excludedExtensions: ['.js', '.g4'],
excludedFiles: ['.github', 'package-lock.json'],
}),
addReleaseFlag('./dist/package.json'),
],
});
})();
``