Lines 35-75json
36 "types": "./dist/next-index.d.ts",
37 "default": "./dist/next.js"
40 "types": "./dist/next-index.d.ts",
41 "default": "./dist/next.cjs"
47 "scripts/postinstall.mjs"
50 "components-mcp": "dist/mcp/index.js",
51 "rfdui": "dist/mcp/cli.js"
54 "prepare": "npm run generate:tokens",
55 "postinstall": "node scripts/postinstall.mjs",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L55 MediumAmbiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg · L55 56 "generate:tokens": "node scripts/generate-theme-tokens.mjs",
57 "build": "npm run generate:tokens && BUILD_TARGET=default npx vite build && BUILD_TARGET=next npx vite build && mv dist/next-index.css dist/next.css && node -e \"var fs=require('fs');['dist/next.js','dist/next.cjs'].forEach(f=>fs.writeFileSync(f,fs.readFileSync(f,'utf8').replace('./next-index.css','./next.css')))\" && tsc -p tsconfig.build.json && cp src/next.d.ts dist/next.d.ts && (cd mcp && npx tsc -p tsconfig.json) && node mcp/scripts/prepare-dist.mjs",
58 "build:mcp": "(cd mcp && npx tsc -p tsconfig.json) && node mcp/scripts/prepare-dist.mjs",
59 "dev": "vite-react-ssg dev -c vite.demo.config.ts",
60 "demo": "vite-react-ssg build -c vite.demo.config.ts",
62 "test:watch": "vitest",
63 "test:types": "vitest --typecheck run",
65 "lint:css": "stylelint 'src/**/*.css' --max-warnings 0",
66 "lint:css:fix": "stylelint 'src/**/*.css' --fix",
67 "typecheck": "tsc --noEmit",
68 "prepublishOnly": "npm run generate:tokens && npm run lint:css && npm run lint && npm run typecheck && npm run test && npm run test:types && npm run build"
71 "@hookform/resolvers": ">=3.0.0",
72 "@radix-ui/react-alert-dialog": "^1.1.0",
73 "@radix-ui/react-checkbox": "^1.3.0",
74 "@radix-ui/react-dialog": "^1.1.0",
75 "@radix-ui/react-popover": "^1.1.0",