summaryrefslogtreecommitdiffstats
path: root/comm/third_party/asn1js/make_bundle.sh
blob: 57d87138cef3aa3caf46848d8a76c41039a58de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

yarn install
npm install --no-save esbuild

echo 'export * as asn1js from "./src/index.ts";' | \
  ./node_modules/.bin/esbuild --bundle \
  --sourcefile=entry.js \
  --loader=ts \
  --format=esm \
  --target=es2019 \
  --log-level=verbose \
  --outfile=asn1js.mjs

rm -rf node_modules