{
  "name": "babelfhir-ts",
  "version": "1.6.12",
  "description": "BabelFHIR-TS: generate TypeScript interfaces, validators, and helper classes from FHIR R4/R4B/R5 StructureDefinitions (profiles) directly inside package archives.",
  "type": "module",
  "main": "out/src/main.js",
  "bin": {
    "babelfhir-ts": "./out/src/bin.js"
  },
  "files": [
    "out/src/generator/",
    "out/src/cli/",
    "out/src/bin.js",
    "out/src/main.js",
    "out/src/logger.js",
    "out/fhir-r4.d.ts",
    "out/fhir-r4b.d.ts",
    "out/fhir-r5.d.ts",
    "parity-matrix.json",
    "README.md"
  ],
  "preferGlobal": true,
  "scripts": {
    "build": "npm run generate:fhir-module && tsc && npm run build:bin && npm run build:copy-fhir-module && npm run build:copy-base-r4",
    "build:bin": "echo 'Binary script is already prepared'",
    "build:copy-fhir-module": "node -e \"const fs=require('fs');fs.copyFileSync('src/fhir-r4.d.ts','out/fhir-r4.d.ts');fs.copyFileSync('src/fhir-r4b.d.ts','out/fhir-r4b.d.ts');fs.copyFileSync('src/fhir-r5.d.ts','out/fhir-r5.d.ts')\"",
    "build:copy-base-r4": "node -e \"const fs=require('fs');const path=require('path');function cpR(s,d){fs.mkdirSync(d,{recursive:true});fs.readdirSync(s).forEach(f=>{const sp=path.join(s,f),dp=path.join(d,f);fs.statSync(sp).isDirectory()?cpR(sp,dp):fs.copyFileSync(sp,dp)})};cpR('src/generator/fhir','out/src/generator/fhir');console.log('Copied fhir/ to out/src/generator/fhir')\"",
    "start": "node dist/main.js",
    "pretest": "rimraf out",
    "test": "tsc --noEmit && npx vitest run --coverage",
    "test:parity": "tsc --noEmit && npx vitest run --config vitest.parity.config.ts",
    "test:inspect": "cross-env INSPECT=1 tsc --noEmit && cross-env INSPECT=1 npx vitest run --coverage",
    "test:ui": "vitest --ui",
    "lint": "eslint src",
    "lint:output": "eslint output",
    "typecheck": "tsc --noEmit",
    "typecheck:output": "tsc -p tsconfig.output.json",
    "generate": "tsx src/bin.ts",
    "generate:clients": "tsx scripts/generate-client-packages.ts",
    "generate:clients:check": "tsx scripts/generate-client-packages.ts --check",
    "generate:parity-matrix": "tsx scripts/generate-parity-matrix.ts",
    "generate:parity-matrix:check": "tsx scripts/generate-parity-matrix.ts --check",
    "check:ig-versions": "tsx scripts/check-ig-versions.ts",
    "generate:check": "npm run generate && npm run typecheck && npm run typecheck:output && npm run lint:output",
    "generate:check:prefab": "npm run generate -- --prefab && npm run typecheck && npm run typecheck:output && npm run lint:output",
    "generate:check:package": "tsx scripts/generate-check-package.ts",
    "generate:check:package:prefab": "tsx scripts/generate-check-package.ts --prefab",
    "generate:check:pas": "tsx scripts/generate-check-package.ts hl7.fhir.us.davinci-pas@2.0.1 --list-errors --keep-output",
    "generate:check:watch": "tsx scripts/generate-check-package.ts hl7.fhir.us.davinci-pas@2.0.1 --watch --list-errors",
    "generate:random:zod": "tsx scripts/generate-random-zod.ts",
    "test:package": "cross-env PIPELINE_PACKAGES=davinci-pas vitest run src/test/pipelineParity.test.ts",
    "test:package:verbose": "cross-env PIPELINE_PACKAGES=davinci-pas VERBOSE_TESTS=1 vitest run src/test/pipelineParity.test.ts",
    "test:typecheck": "cross-env TYPECHECK_ONLY=1 ALLOW_GENERATION_FAILURES=1 vitest run src/test/pipelineParity.test.ts",
    "generate:fhir-module": "node scripts/generate-fhir-r4-module.js && npx tsx scripts/generate-fhir-module-dts.ts r4b",
    "prepare": "git config core.hooksPath .githooks",
    "docs:dev": "vitepress dev docs",
    "docs:build": "vitepress build docs",
    "docs:preview": "vitepress preview docs",
    "prepublishOnly": "npm run build"
  },
  "keywords": [
    "fhir",
    "typescript",
    "code-generation",
    "healthcare",
    "hl7",
    "fhir-profiles",
    "implementation-guide",
    "validation",
    "fhir-r4",
    "fhir-to-typescript"
  ],
  "author": "Maximilian Nussbaumer",
  "license": "ISC",
  "repository": {
    "type": "git",
    "url": "https://github.com/Max-Health-Inc/BabelFHIR-TS.git"
  },
  "bugs": {
    "url": "https://github.com/Max-Health-Inc/BabelFHIR-TS/issues"
  },
  "homepage": "https://github.com/Max-Health-Inc/BabelFHIR-TS#readme",
  "engines": {
    "node": ">=18.0.0",
    "npm": ">=9.0.0"
  },
  "devDependencies": {
    "@eslint/js": "^10.0.1",
    "@max-health-inc/config": "^3.3.0",
    "@maxhealth.tech/prefab": "^0.3.12",
    "@types/node": "^26.4.0",
    "@types/semver": "^7.8.0",
    "@types/unzipper": "^0.10.11",
    "@vitest/coverage-v8": "^4.1.11",
    "@vitest/eslint-plugin": "^1.6.27",
    "@vitest/ui": "^4.1.11",
    "cross-env": "^10.1.0",
    "eslint": "^10.9.1",
    "fhirpath": "^5.2.0",
    "globals": "^17.11.0",
    "rimraf": "^6.1.3",
    "semver": "^7.8.5",
    "typescript": "^6.0.3",
    "typescript-eslint": "^8.68.0",
    "vitepress": "^1.6.4",
    "vitepress-plugin-llms": "^1.13.5",
    "vitest": "^4.1.11",
    "zod": "4.4.3"
  },
  "dependencies": {
    "@types/fhir": "^0.0.44",
    "consola": "^3.4.2",
    "tar": "^7.5.22",
    "tsx": "^4.23.12",
    "unzipper": "^0.12.5"
  },
  "overrides": {
    "brace-expansion": "^5.0.9"
  }
}
