fix: bun test

This commit is contained in:
MARCROCK22 2024-06-01 18:53:36 +00:00
parent 0fd02117ce
commit 2fe214a01e
2 changed files with 11 additions and 2 deletions

9
_build.js Normal file
View File

@ -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');
}

View File

@ -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"
}
]
}
}