build: ship pre-built API bundle; images copy output instead of installing
- 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>
This commit is contained in:
co-authored by
Claude Haiku 5.5
parent
ee8258556d
commit
10e453e4be
+126
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"name": "nostics",
|
||||
"type": "module",
|
||||
"version": "1.3.0",
|
||||
"description": "Structured diagnostic code library",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||
"contributors": [
|
||||
"Eduardo San Martin Morote <posva13@gmail.com>",
|
||||
"Daniel Roe <daniel@roe.dev>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/vercel-labs/nostics#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vercel-labs/nostics.git"
|
||||
},
|
||||
"bugs": "https://github.com/vercel-labs/nostics/issues",
|
||||
"keywords": [],
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": "./dist/index.mjs",
|
||||
"./formatters/ansi": "./dist/formatters/ansi.mjs",
|
||||
"./formatters/json": "./dist/formatters/json.mjs",
|
||||
"./reporters/dev": "./dist/reporters/dev.mjs",
|
||||
"./reporters/fetch": "./dist/reporters/fetch.mjs",
|
||||
"./reporters/node": "./dist/reporters/node.mjs",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./dist/index.d.mts",
|
||||
"files": [
|
||||
"dist",
|
||||
"skills"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@posva/prompts": "^2.4.4",
|
||||
"@size-limit/esbuild-why": "^14.0.0",
|
||||
"@size-limit/preset-small-lib": "^14.0.0",
|
||||
"@types/node": "^26.6.2",
|
||||
"@types/semver": "^7.8.0",
|
||||
"@vitest/coverage-v8": "5.0.1",
|
||||
"conventional-changelog": "^8.1.3",
|
||||
"conventional-changelog-angular": "^9.4.0",
|
||||
"lint-staged": "^17.5.1",
|
||||
"oxfmt": "^0.68.0",
|
||||
"oxlint": "^1.80.0",
|
||||
"oxlint-plugin-posva": "^0.0.2",
|
||||
"publint": "^0.3.24",
|
||||
"semver": "^7.8.5",
|
||||
"simple-git-hooks": "^2.14.0",
|
||||
"size-limit": "^14.0.0",
|
||||
"tsdown": "^0.23.0",
|
||||
"tsnapi": "^1.5.0",
|
||||
"typescript": "^6.0.0",
|
||||
"vite": "^8.3.0",
|
||||
"vitest": "^5.0.1"
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && pnpm lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": [
|
||||
"oxfmt --no-error-on-unmatched-pattern",
|
||||
"oxlint --no-error-on-unmatched-pattern --fix"
|
||||
]
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"name": "defineDiagnostics from source",
|
||||
"path": "src/index.ts",
|
||||
"import": "{ defineDiagnostics }"
|
||||
},
|
||||
{
|
||||
"name": "defineDiagnostics",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "{ defineDiagnostics }"
|
||||
},
|
||||
{
|
||||
"name": "defineProdDiagnostics",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "{ defineProdDiagnostics }"
|
||||
},
|
||||
{
|
||||
"name": "defineDiagnostics + createConsoleReporter",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "{ defineDiagnostics, createConsoleReporter }"
|
||||
},
|
||||
{
|
||||
"name": "defineProdDiagnostics + createConsoleReporter",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "{ defineProdDiagnostics, createConsoleReporter }"
|
||||
},
|
||||
{
|
||||
"name": "formatDiagnostic",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "{ formatDiagnostic }"
|
||||
},
|
||||
{
|
||||
"name": "full root",
|
||||
"path": "dist/index.mjs",
|
||||
"import": "*"
|
||||
},
|
||||
{
|
||||
"name": "ansi formatter",
|
||||
"path": "dist/formatters/ansi.mjs",
|
||||
"import": "*"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsdown && pnpm --filter \"./packages/*\" run build",
|
||||
"dev": "vitest",
|
||||
"docs": "pnpm -C docs run dev",
|
||||
"docs:build": "pnpm -C docs run build",
|
||||
"play": "pnpm -C playground run dev",
|
||||
"lint": "oxlint ${CI:+--deny-warnings} . && oxfmt --check .",
|
||||
"lint:fix": "oxfmt && oxlint --fix .",
|
||||
"fmt": "oxfmt",
|
||||
"release": "node scripts/release.ts",
|
||||
"size": "size-limit",
|
||||
"test": "pnpm run build && pnpm run \"/^test:/\"",
|
||||
"test:unit": "vitest run --coverage",
|
||||
"test:types": "pnpm run typecheck",
|
||||
"test:lint": "pnpm run lint",
|
||||
"test:demo": "pnpm -C demo-lib run build && pnpm -C demo-lib run test && pnpm -C playground run build",
|
||||
"typecheck": "tsc && pnpm --filter \"./packages/*\" run typecheck"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user