- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with Linux musl native packages for sharp and argon2 kept alongside - docker/api.Dockerfile copies that output; no pnpm install on the server - add dist/migrate.js (prisma migrate deploy equivalent, same _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime - pnpm-workspace: supportedArchitectures for linux/x64/musl - admin: apps/admin/.env.production sets VITE_SITE_URL for the production build - drop NPM_REGISTRY / SITE_URL build args from compose and .env.example - gitignore: anchor node_modules rules so pre-built node_modules are committed - README: describe the pre-built deploy flow Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"name": "hookable",
|
|
"version": "6.1.2",
|
|
"description": "Awaitable hook system",
|
|
"keywords": [
|
|
"hook",
|
|
"hookable",
|
|
"plugin",
|
|
"tapable",
|
|
"tappable"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "unjs/hookable"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"exports": {
|
|
".": "./dist/index.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.9.6",
|
|
"@vitest/coverage-v8": "^5",
|
|
"changelogen": "^0.6.2",
|
|
"esbuild": "^0.28.2",
|
|
"eslint-config-unjs": "^0.6.2",
|
|
"expect-type": "^1.4.0",
|
|
"hookable-prev": "npm:hookable@^6.1.1",
|
|
"mitata": "^1.0.34",
|
|
"obuild": "^0.4.40",
|
|
"oxfmt": ">=0.67.0",
|
|
"oxlint": "^1.82.0",
|
|
"typescript": "^6",
|
|
"vite": "^8.3.0",
|
|
"vitest": "^5"
|
|
},
|
|
"scripts": {
|
|
"bench": "node --expose-gc --allow-natives-syntax test/bench.ts",
|
|
"build": "obuild src/index.ts",
|
|
"dev": "vitest",
|
|
"lint": "oxlint . && oxfmt --check src test",
|
|
"lint:fix": "oxlint . --fix && oxfmt src test",
|
|
"prepublish": "pnpm build",
|
|
"release": "pnpm test && pnpm build && changelogen --release --publish --push",
|
|
"test": "pnpm lint && vitest run --coverage",
|
|
"test:types": "tsc --noEmit"
|
|
}
|
|
} |