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
+47
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "motion-dom",
|
||||
"version": "14.3.1",
|
||||
"author": "Matt Perry",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/motiondivision/motion",
|
||||
"main": "./dist/cjs/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/es/index.mjs",
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"require": "./dist/cjs/index.js",
|
||||
"import": "./dist/es/index.mjs",
|
||||
"default": "./dist/cjs/index.js"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"motion-utils": "14.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf types dist lib",
|
||||
"build": "yarn clean && tsc -p . && rollup -c && node ./scripts/check-bundle.js",
|
||||
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\"",
|
||||
"test": "jest --config jest.config.json --max-workers=2",
|
||||
"measure": "rollup -c ./rollup.size.config.mjs",
|
||||
"prepack": "yarn build && yarn measure && node ../../dev/inc/bundlesize.mjs motion-dom"
|
||||
},
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./dist/size-rollup-style-effect.js",
|
||||
"maxSize": "4.2 kB"
|
||||
},
|
||||
{
|
||||
"path": "./dist/size-rollup-motion-value.js",
|
||||
"maxSize": "1.9 kB"
|
||||
}
|
||||
],
|
||||
"gitHead": "1785a8816da2682ef53bfc1fe8b3f61d86f17924",
|
||||
"devDependencies": {
|
||||
"concurrently": "^7.3.0",
|
||||
"jest": "^29.7.0",
|
||||
"rollup": "4.59.0",
|
||||
"typescript": "5.4.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user