From bf3db57c7119b3b125fe453f0adbd63aa3b87079 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 1 Jun 2024 19:05:23 +0000 Subject: [PATCH] fix: revert build script --- _build.js | 25 ------------------------- package.json | 5 ++--- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 _build.js diff --git a/_build.js b/_build.js deleted file mode 100644 index 6fed177..0000000 --- a/_build.js +++ /dev/null @@ -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() diff --git a/package.json b/package.json index 447a4ea..cac59b9 100644 --- a/package.json +++ b/package.json @@ -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",