monte-carlo-simulator
Version:
Business decision framework with Monte Carlo risk analysis - instant via npx
87 lines (86 loc) • 3.07 kB
JSON
{
"name": "monte-carlo-simulator",
"version": "1.0.0",
"description": "Business decision framework with Monte Carlo risk analysis - instant via npx",
"keywords": [
"monte-carlo",
"business-analysis",
"roi",
"risk-assessment",
"decision-making",
"simulation",
"business-intelligence",
"npx"
],
"bin": {
"monte-carlo-simulator": "./dist/cli/index.js",
"mcs": "./dist/cli/index.js"
},
"files": [
"dist/",
"templates/",
"examples/",
"docs/",
"README.md"
],
"scripts": {
"dev": "tsx watch src/cli/index.ts",
"build": "tsc",
"test": "vitest --run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"lint": "eslint . --ext ts --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --ext ts --fix",
"format": "prettier --write .",
"typecheck": "tsc --noEmit",
"cli": "tsx src/cli/index.ts",
"sim": "tsx src/cli/index.ts interactive",
"run": "tsx src/cli/index.ts run",
"test:docs": "tsx scripts/test-docs.ts",
"validate:yaml": "find examples/ simulations/ -name '*.yaml' -exec npm run cli validate {} \\; 2>/dev/null || true",
"validate:json": "find . -name '*.json' -not -path './node_modules/*' -not -path './coverage/*' -exec node -e 'JSON.parse(require(\"fs\").readFileSync(\"{}\", \"utf8\"))' \\;",
"test:agent-apis": "npm run cli list >/dev/null && npm run cli -- run examples/simulations/simple-roi-analysis.yaml --iterations 5 >/dev/null && npm run cli -- run examples/simulations/simple-roi-analysis.yaml --list-params >/dev/null",
"check:formatting": "npm run lint",
"check:file-sizes": "git diff --cached --name-only | head -20 | while read file; do [ -f \"$file\" ] && [ $(wc -c < \"$file\") -gt 1048576 ] && echo \"Large file: $file\"; done || true",
"check:secrets": "./scripts/check-secrets.sh",
"push": "npm run build && git add dist/ && git push",
"push-force": "npm run build && git add dist/ && git commit -m 'build: update dist/ for NPX compatibility' && git push",
"prepare": "husky"
},
"lint-staged": {
"*.ts": [
"eslint --fix"
],
"{examples,simulations}/**/*.{yaml,yml}": [
"bash -c 'for file in \"$@\"; do npm run cli validate \"$file\"; done' _"
],
"*.json": [
"node -e \"JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8'))\""
]
},
"dependencies": {
"ajv": "^8.17.1",
"chalk": "^5.5.0",
"commander": "^14.0.0",
"inquirer": "^12.9.0",
"js-yaml": "^4.1.0",
"yaml": "^2.8.1"
},
"devDependencies": {
"@types/inquirer": "^9.0.8",
"@types/js-yaml": "^4.0.9",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/ui": "^1.1.0",
"eslint": "^8.55.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.4",
"prettier": "^3.1.1",
"tsx": "^4.20.3",
"typescript": "^5.2.2",
"vitest": "^1.1.0"
}
}