From 5ce567f5e8cc281fc8cd691d00e8b17a687ee514 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Thu, 21 Nov 2024 13:18:55 +1300 Subject: [PATCH] fix(server): Bundle the the bin file before publish NPM. BM-1083 (#3375) ### Motivation The [@basemaps/server](https://www.npmjs.com/package/@basemaps/server?activeTab=code) npm package is missing the bin file for excusing the command. We need to bundle it first before publish the package. ### Modifications Add a bundle command before NPM publish ### Verification Locally tested. - delete the `server/bin/basemaps-server.cjs` - run `npx lerna run bundle --stream` -> Got a new `server/bin/basemaps-server.cjs` generated. - run `npm pack --dry-run` -> Got bin file included. ![image](https://github.com/user-attachments/assets/812f27cc-0f0c-47d3-b2fb-c37066f569ea) --------- Co-authored-by: Tawera Manaena --- .github/workflows/push.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 134f45a6e..ae9228ff3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -23,6 +23,10 @@ jobs: steps: - uses: linz/action-typescript@v3 + - name: Bundle + run: | + npx lerna run bundle --stream + # TODO: running a giant copy command to import CSS and SVG files into the docs file in not super ideal - name: Build docs run: |