From 2fe214a01e395c8e95b8a38ec329564991c09123 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 1 Jun 2024 18:53:36 +0000 Subject: [PATCH] fix: bun test --- _build.js | 9 +++++++++ package.json | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 _build.js diff --git a/_build.js b/_build.js new file mode 100644 index 0000000..53d67b5 --- /dev/null +++ b/_build.js @@ -0,0 +1,9 @@ +const { execSync } = require("child_process"); + +try { + execSync('tsc'); + console.log('Builded'); +} catch (e) { + console.error(e); + console.log('Builded with errors'); +} diff --git a/package.json b/package.json index 0d52b27..45a7cb8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "build": "tsc --outDir ./lib", "prepublishOnly": "npm run build", - "prepare": "npm run build && husky install", + "prepare": "node ./_build.js && husky install", "lint": "biome lint --apply ./src", "format": "biome format --write ./src", "check-h": "biome check --apply ./src", @@ -71,4 +71,4 @@ "url": "https://github.com/socram03" } ] -} \ No newline at end of file +}