Lines 133-173json
133 "build:map-data": "node scripts/build-map-data.mjs",
134 "gallery": "pnpm build && node scripts/generate-gallery.mjs",
135 "gallery:snapshot": "pnpm build && node scripts/gallery-snapshot.mjs",
136 "gallery:snapshot:update": "pnpm build && node scripts/gallery-snapshot.mjs --update",
138 "lint:fix": "eslint . --fix",
139 "format": "prettier --write src/",
140 "format:check": "prettier --check src/",
141 "check:api": "pnpm build && bash scripts/check-api.sh check",
142 "check:api:update": "pnpm build && bash scripts/check-api.sh update",
143 "check:duplication": "jscpd ./src",
144 "check:deadcode": "knip",
145 "check:spelling": "cspell \"src/**/*.ts\" \"tests/**/*.ts\"",
146 "check:all": "pnpm check:deadcode && pnpm check:spelling && pnpm check:duplication && pnpm check:circular && pnpm check:deps && pnpm check:security && pnpm build && bash scripts/check-api.sh check && pnpm check:publish && pnpm check:types",
147 "check:circular": "madge --circular --extensions ts src/ --json | node -e \"const c=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); const n=c.length; if(n>7){console.error('New circular deps found ('+n+' > 7 known type-only/dynamic cycles)');process.exit(1)}else if(n>0){console.log(n+' known type-only/dynamic cycles (safe)')}else{console.log('No circular dependencies')}\"",
148 "check:deps": "depcheck --ignores='@diagrammo/dgmo,@codemirror/language,@lezer/*,husky,lint-staged,tsup,axe-core,type-coverage'",
149 "check:security": "pnpm audit --prod",
150 "check:publish": "publint",
151 "check:size": "pnpm build && du -sh dist/ && echo '---' && ls -lh dist/*.js dist/*.cjs",
152 "check:types": "attw --pack . --ignore-rules no-resolution false-export-default",
153 "postinstall": "node -e \"console.log('\\n💡 Claude Code user? Run: dgmo install claude-code\\n')\"",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L153 MediumAmbiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg · L153 157 "@dagrejs/dagre": "^3.0.0",
158 "@resvg/resvg-js": "^2.6.2",
159 "d3-array": "^3.2.4",
160 "d3-cloud": "^1.2.9",
162 "d3-hierarchy": "^3.1.2",
163 "d3-scale": "^4.0.2",
164 "d3-selection": "^3.0.0",
165 "d3-shape": "^3.2.0",
167 "lz-string": "^1.5.0",
168 "topojson-client": "^3.1.0"