fix: revert build script

This commit is contained in:
MARCROCK22 2024-06-01 19:05:23 +00:00
parent c523ded8e9
commit bf3db57c71
2 changed files with 2 additions and 28 deletions

View File

@ -1,25 +0,0 @@
const { execSync } = require("child_process");
const commands = [
'tsc',
'bunx tsc',
'npx tsc',
'pnpx tsc'
]
function executeCommands() {
for (const cmd of commands) {
try {
console.log('[Seyfert]:', 'trying to build with `', cmd, '`')
execSync(cmd)
} catch (e) {
if (cmd === commands.at(-1)) {
return console.log('[Seyfert]:', e)
}
}
}
console.log('[Seyfert]:', 'builded')
}
executeCommands()

View File

@ -6,13 +6,12 @@
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**",
"./_build.js"
"lib/**"
],
"scripts": {
"build": "tsc --outDir ./lib",
"prepublishOnly": "npm run build",
"prepare": "node ./_build.js && husky install",
"prepare": "npm run build && husky install",
"lint": "biome lint --apply ./src",
"format": "biome format --write ./src",
"check-h": "biome check --apply ./src",