Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyan-velichkov committed Jun 20, 2024
1 parent 0eeea95 commit eceb627
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 0 additions & 7 deletions build-linux.sh

This file was deleted.

14 changes: 12 additions & 2 deletions build-mac.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
npm install
rm -rf output
rm -rf dist
rm -rf node_modules

npm install

npm run transpile

npm run lint

# Find all .mjs files in the current directory and its subdirectories,
# and replaces all occurrences of %23 with # in those files.
find . -name '*.mjs' -print0 | xargs -0 sed -i '' 's/%23/#/g'

esbuild run.mjs --tsconfig=./tsconfig.json --bundle --outdir=dist --format=esm --target=es2022 --external:tls --external:net --external:util --external:util/types --external:crypto --external:zlib --external:http --external:https --external:fs --external:path --external:url --external:sdk --inject:./polyfills/buffer.js --inject:./polyfills/process.js --out-extension:.js=.mjs
esbuild run.mjs --tsconfig=./tsconfig.json --bundle --outdir=dist --format=esm --target=es2022 \
--external:tls --external:net --external:util --external:crypto --external:zlib \
--external:http --external:https --external:fs --external:path --external:url --external:sdk \
--inject:./polyfills/buffer.js --inject:./polyfills/process.js --out-extension:.js=.mjs

0 comments on commit eceb627

Please sign in to comment.