diff --git a/package.json b/package.json index c8be828bc..93ddf3829 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "lint": "pnpm run prettier:check && pnpm run eslint:check && pnpm run cspell:check && pnpm run typescript:check", "lint:fix": "pnpm run prettier:fix && pnpm run eslint:fix && pnpm run cspell:check && pnpm run typescript:check", "build:types": "rm -rf dist; tsc --declaration --emitDeclarationOnly --noEmit false -p tsconfig.json --outDir dist; rm -rf dist/scripts; mv dist/src/* dist; rm -rf dist/src; cp src/*.d.ts dist; tsx scripts/create-import-wrappers.mts", - "postinstall": "tsx scripts/build-bin.mts; [ ! -e src ] && exit 0 || pnpm run build:types", - "prepublishOnly": "pnpm run build:types", + "postinstall": "tsx scripts/build-bin.mts", + "prepare": "[ ! -e src ] && exit 0 || pnpm run build:types", "postpublish": "rm -rf *.d.ts; rm -rf dist; npm run build", "docs": "typedoc src/renderer/replugged.ts --excludeExternals", "docs:watch": "pnpm run docs --watch"