- 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>
152 lines
4.2 KiB
JSON
152 lines
4.2 KiB
JSON
{
|
|
"name": "framer-motion",
|
|
"version": "14.3.1",
|
|
"description": "A simple and powerful JavaScript animation library",
|
|
"main": "dist/cjs/index.js",
|
|
"module": "dist/es/index.mjs",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"require": "./dist/cjs/index.js",
|
|
"import": "./dist/es/index.mjs",
|
|
"default": "./dist/cjs/index.js"
|
|
},
|
|
"./debug": {
|
|
"types": "./dist/debug.d.ts",
|
|
"require": "./dist/cjs/debug.js",
|
|
"import": "./dist/es/debug.mjs",
|
|
"default": "./dist/cjs/debug.js"
|
|
},
|
|
"./dom/mini": {
|
|
"types": "./dist/dom-mini.d.ts",
|
|
"require": "./dist/cjs/dom-mini.js",
|
|
"import": "./dist/es/dom-mini.mjs",
|
|
"default": "./dist/cjs/dom-mini.js"
|
|
},
|
|
"./dom": {
|
|
"types": "./dist/dom.d.ts",
|
|
"require": "./dist/cjs/dom.js",
|
|
"import": "./dist/es/dom.mjs",
|
|
"default": "./dist/cjs/dom.js"
|
|
},
|
|
"./client": {
|
|
"types": "./dist/client.d.ts",
|
|
"require": "./dist/cjs/client.js",
|
|
"import": "./dist/es/client.mjs",
|
|
"default": "./dist/cjs/client.js"
|
|
},
|
|
"./m": {
|
|
"types": "./dist/m.d.ts",
|
|
"require": "./dist/cjs/m.js",
|
|
"import": "./dist/es/m.mjs",
|
|
"default": "./dist/cjs/m.js"
|
|
},
|
|
"./mini": {
|
|
"types": "./dist/mini.d.ts",
|
|
"require": "./dist/cjs/mini.js",
|
|
"import": "./dist/es/mini.mjs",
|
|
"default": "./dist/cjs/mini.js"
|
|
},
|
|
"./projection": {
|
|
"types": "./dist/projection.d.ts",
|
|
"import": "./dist/es/projection.mjs",
|
|
"default": "./dist/es/projection.mjs"
|
|
},
|
|
"./animate-view": {
|
|
"types": "./dist/animate-view.d.ts",
|
|
"require": "./dist/cjs/animate-view.js",
|
|
"import": "./dist/es/animate-view.mjs",
|
|
"default": "./dist/cjs/animate-view.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"types": "dist/index.d.ts",
|
|
"author": "Matt Perry",
|
|
"license": "MIT",
|
|
"repository": "https://github.com/motiondivision/motion/",
|
|
"sideEffects": false,
|
|
"keywords": [
|
|
"react animation",
|
|
"react",
|
|
"pose",
|
|
"react pose",
|
|
"animation",
|
|
"gestures",
|
|
"drag",
|
|
"spring",
|
|
"popmotion",
|
|
"framer",
|
|
"waapi"
|
|
],
|
|
"scripts": {
|
|
"build": "yarn clean && tsc --noEmitOnError -p . && rollup -c && node ./scripts/check-bundle.js",
|
|
"dev": "yarn watch",
|
|
"clean": "rm -rf types dist lib",
|
|
"test": "yarn test-server && yarn test-client",
|
|
"test-client": "jest --config jest.config.json --max-workers=2",
|
|
"test-server": "jest --config jest.config.ssr.json",
|
|
"prettier": "prettier ./src/* --write",
|
|
"watch": "concurrently -c blue,red -n tsc --noEmitOnError ,rollup --kill-others \"tsc --noEmitOnError --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\"",
|
|
"prepack": "yarn build && yarn measure && node ../../dev/inc/bundlesize.mjs framer-motion",
|
|
"postpublish": "git push --tags",
|
|
"measure": "rollup -c ./rollup.size.config.mjs"
|
|
},
|
|
"dependencies": {
|
|
"motion-dom": "14.3.1",
|
|
"motion-utils": "14.1.1",
|
|
"tslib": "^2.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@thednp/dommatrix": "^2.0.11",
|
|
"@types/three": "0.137.0",
|
|
"concurrently": "^7.3.0",
|
|
"jest": "^29.7.0",
|
|
"rollup": "4.59.0",
|
|
"three": "0.137.0",
|
|
"typescript": "5.4.3"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0 || ^19.0.0",
|
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"react-dom": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./dist/size-rollup-motion.js",
|
|
"maxSize": "42.2 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-m.js",
|
|
"maxSize": "5 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-m-dom-animation.js",
|
|
"maxSize": "28.6 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-m-dom-max.js",
|
|
"maxSize": "42.3 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-animate.js",
|
|
"maxSize": "22 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-scroll.js",
|
|
"maxSize": "3.7 kB"
|
|
},
|
|
{
|
|
"path": "./dist/size-rollup-waapi-animate.js",
|
|
"maxSize": "3.2 kB"
|
|
}
|
|
],
|
|
"gitHead": "1785a8816da2682ef53bfc1fe8b3f61d86f17924"
|
|
} |