Lines 1-36json
2 "name": "rivet-design",
4 "description": "Local visual web development tool with AI-powered code modification",
5 "main": "dist/index.js",
13 "rivet": "./bin/rivet.js"
16 "preinstall": "node scripts/verify-node-version.cjs",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L16 17 "build": "npm run clean && tsc && npm run build:assets && npm run build:ui && npm run build:bin",
18 "build:assets": "mkdir -p dist/services/templates/designmd && cp src/services/templates/designmd/*.md dist/services/templates/designmd/",
19 "build:ui": "cd src/ui && vite build",
20 "storybook:ui": "yarn workspace @rivet/ui storybook",
21 "build-storybook:ui": "yarn workspace @rivet/ui build-storybook",
22 "build:bin": "mkdir -p bin && cp src/bin-template.js bin/rivet.js && chmod +x bin/rivet.js",
24 "clean": "rm -rf dist src/ui/dist bin",
25 "pack": "npm run build && npm pack",
26 "pack:verify": "npm run pack && tar -tzf rivet-design-*.tgz | sort && echo '\n✓ Package contents listed above'",
27 "prepublishOnly": "git rev-parse --abbrev-ref HEAD | grep -qx main || (echo 'ERROR: npm publish must be run from the main branch' && exit 1) && cp README.npm.md README.md && npm run build || (git checkout README.md && exit 1)",
28 "postpublish": "git checkout README.md",
29 "lint": "eslint . --ext ts,tsx,js,jsx",
30 "lint:fix": "eslint . --ext ts,tsx,js,jsx --fix",
31 "format": "prettier --write .",
32 "format:check": "prettier --check .",
33 "test": "node --max-old-space-size=4096 ./node_modules/jest/bin/jest.js --config src/jest.config.ts",
34 "test:install": "yarn build && node scripts/test-host-install.mjs",
35 "test:watch": "jest --config src/jest.config.ts --watch",
36 "test:coverage": "jest --config src/jest.config.ts --coverage",