- 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>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "ufo",
|
|
"version": "1.6.4",
|
|
"description": "URL utils for humans",
|
|
"repository": "unjs/ufo",
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.mjs",
|
|
"require": "./dist/index.cjs",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./*": "./*"
|
|
},
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "automd && unbuild",
|
|
"automd": "automd",
|
|
"dev": "vitest",
|
|
"lint": "eslint . && prettier -c src test",
|
|
"lint:fix": "eslint --fix . && prettier -w src test",
|
|
"prepack": "pnpm build",
|
|
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
|
|
"test": "pnpm lint && vitest run --typecheck"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.6.0",
|
|
"@vitest/coverage-v8": "^4.1.5",
|
|
"automd": "^0.4.3",
|
|
"changelogen": "^0.6.2",
|
|
"eslint": "^10.2.1",
|
|
"eslint-config-unjs": "^0.6.2",
|
|
"jiti": "^2.6.1",
|
|
"prettier": "^3.8.3",
|
|
"typescript": "^6.0.3",
|
|
"unbuild": "^3.6.1",
|
|
"untyped": "^2.0.0",
|
|
"vitest": "^4.1.5"
|
|
},
|
|
"packageManager": "pnpm@10.33.2"
|
|
} |