mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 21:46:08 +00:00
fix: revert build script
This commit is contained in:
parent
c523ded8e9
commit
bf3db57c71
25
_build.js
25
_build.js
@ -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()
|
|
@ -6,13 +6,12 @@
|
|||||||
"module": "./lib/index.js",
|
"module": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"lib/**",
|
"lib/**"
|
||||||
"./_build.js"
|
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --outDir ./lib",
|
"build": "tsc --outDir ./lib",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"prepare": "node ./_build.js && husky install",
|
"prepare": "npm run build && husky install",
|
||||||
"lint": "biome lint --apply ./src",
|
"lint": "biome lint --apply ./src",
|
||||||
"format": "biome format --write ./src",
|
"format": "biome format --write ./src",
|
||||||
"check-h": "biome check --apply ./src",
|
"check-h": "biome check --apply ./src",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user