From a5e5e280cd1fa498664661a076a83ba65630da06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:34:53 +0100 Subject: [PATCH] build --- .github/workflows/pr.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- README.md | 2 ++ package.json | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d9fdb9f..acb2181 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,7 +22,10 @@ jobs: with: tag: v2.1.5-procursus6 - name: Build - run: yarn install + run: | + yarn install + yarn build + yarn binary - name: Rename run: | mv astgen-linux-x64 astgen-linux diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 471c2f1..15142fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,10 @@ jobs: run: | echo "The current tag is: ${{ steps.taggerDryRun.outputs.tag }}" - name: Build - run: yarn install + run: | + yarn install + yarn build + yarn binary - name: Rename run: | mv astgen-linux-x64 astgen-linux diff --git a/README.md b/README.md index 4787599..efc5121 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Type maps are generated using the Typescript compiler / type checker API. ```bash yarn install +yarn build +yarn binary ``` This will invoke `pgk` after `yarn install` and generates a native binary for Windows, MacOS, and Linux. diff --git a/package.json b/package.json index 9380546..2f3dac0 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "scripts": { "build": "tsc --build", - "postinstall": "pkg . --options max-old-space-size=8192 --no-bytecode --no-native-build --public --compress GZip --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64" + "binary": "pkg . --options max-old-space-size=8192 --no-bytecode --no-native-build --public --compress GZip --targets node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64,node18-macos-arm64" }, "engines": { "node": ">=16.0.0"