{
  "name": "@fairmint/open-captable-protocol-daml-js",
  "version": "0.3.6",
  "description": "Open CapTable Protocol (OpenCapTable-v35) DAML contracts with generated JavaScript bindings. Other Fairmint DAML packages live in @fairmint/daml-js.",
  "keywords": [
    "daml",
    "opencaptable",
    "blockchain",
    "smart-contracts",
    "fairmint"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/Fairmint/open-captable-protocol-daml"
  },
  "license": "GPL-3.0-only",
  "author": "Fairmint",
  "exports": {
    ".": {
      "types": "./lib/index.d.ts",
      "default": "./lib/index.js"
    },
    "./lib": {
      "types": "./lib/index.d.ts",
      "default": "./lib/index.js"
    },
    "./lib/*": "./lib/*",
    "./ocp-factory-contract-id.json": {
      "types": "./generated/ocp-factory-contract-id.json.d.ts",
      "default": "./generated/ocp-factory-contract-id.json"
    },
    "./opencaptable.dar": "./published-dars/OpenCapTable.dar",
    "./openCapTableDarPath": {
      "types": "./lib/openCapTableDarPath.d.ts",
      "default": "./lib/openCapTableDarPath.js"
    }
  },
  "main": "lib/index.js",
  "types": "lib/index.d.ts",
  "typesVersions": {
    "*": {
      "ocp-factory-contract-id.json": [
        "./generated/ocp-factory-contract-id.json.d.ts"
      ],
      "openCapTableDarPath": [
        "./lib/openCapTableDarPath.d.ts"
      ]
    }
  },
  "files": [
    "lib/**",
    "generated/ocp-factory-contract-id.json",
    "generated/ocp-factory-contract-id.json.d.ts",
    "published-dars/OpenCapTable.dar"
  ],
  "scripts": {
    "backup-dar": "tsx scripts/backup-dar.ts",
    "build": "tsx scripts/codegen/generate-captable.ts && PATH=\"$HOME/.dpm/bin:$PATH\" dpm build --all",
    "build:npm-runtime-lib": "tsc -p tsconfig.npm-runtime.json",
    "build:ts": "tsc",
    "check:schema-gaps": "tsx scripts/schema-gap-checker/check-schema-gaps.ts",
    "check-upgrade-compat": "tsx scripts/check-upgrade-compatibility.ts",
    "clean": "for pkg in OpenCapTable-v35 Test; do (cd $pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm clean); done",
    "codegen": "npm run build && cd OpenCapTable-v35 && PATH=\"$HOME/.dpm/bin:$PATH\" dpm codegen-js && cd .. && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:ts && tsx scripts/stage-npm-opencaptable-dar.ts && npm run build:npm-runtime-lib",
    "create-factory:ocp": "npm run codegen && tsx scripts/create-ocp-factory.ts --network devnet && tsx scripts/create-ocp-factory.ts --network mainnet",
    "fix": "npm run lint:fix && npm run format:fix",
    "format": "prettier --check .",
    "format:fix": "prettier --write .",
    "lint": "eslint .",
    "lint:daml": "EXIT_CODE=0; for pkg in OpenCapTable-v35 Test; do echo \"Linting $pkg...\"; (cd $pkg && PATH=\"$HOME/.dpm/bin:$PATH\" dpm damlc lint) || EXIT_CODE=1; done; exit $EXIT_CODE",
    "lint:fix": "eslint . --fix",
    "package:manifest": "npm run package:prep && npm pack --dry-run --json --ignore-scripts > /tmp/npm-pack.json 2>/dev/null && jq -r '.[0].files[].path' /tmp/npm-pack.json | sort | tsx scripts/collapse-manifest.ts > generated/npm-manifest.txt",
    "package:prep": "npm run codegen && npm run update-version && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts && tsx scripts/create-root-index.ts && tsx scripts/fix-splice-refs.ts && npm run build:npm-runtime-lib",
    "package:publish": "npm run package:manifest && npm publish",
    "prepare-release": "tsx scripts/prepare-release.ts",
    "release:detect-factory-need": "tsx scripts/detect-factory-need.ts",
    "release:parse-tag": "tsx scripts/parse-release-tag.ts",
    "remove-participant-dar": "tsx scripts/remove-participant-dar.ts",
    "test": "cd Test && PATH=\"$HOME/.dpm/bin:$PATH\" dpm test --show-coverage --color --coverage-ignore-choice splice-amulet:.*",
    "test:imports": "tsx scripts/test-imports.ts",
    "update-version": "tsx scripts/update-generated-package.ts",
    "upgrade-package": "tsx scripts/upgrade-package.ts",
    "upload-dar": "tsx scripts/upload-dar.ts",
    "verify-dars": "tsx scripts/verify-dars.ts",
    "verify-merged-lib": "tsx scripts/verify-merged-lib-runtime.ts",
    "verify-package": "tsx scripts/verify-package-imports.ts && npm run verify-merged-lib && npm run test:imports",
    "vet-package-allow-incompatible-upgrade": "tsx scripts/vet-package-allow-incompatible-upgrade.ts"
  },
  "dependencies": {
    "@daml/ledger": "2.10.4",
    "@daml/types": "3.5.1",
    "@fairmint/canton-node-sdk": "0.0.208"
  },
  "devDependencies": {
    "@types/node": "25.5.2",
    "@typescript-eslint/eslint-plugin": "8.58.0",
    "@typescript-eslint/parser": "8.58.0",
    "@typescript-eslint/utils": "8.58.0",
    "eslint": "10.2.0",
    "eslint-config-prettier": "10.1.8",
    "eslint-import-resolver-node": "0.3.10",
    "eslint-import-resolver-typescript": "4.4.4",
    "eslint-plugin-import-x": "4.16.2",
    "eslint-plugin-unused-imports": "4.4.1",
    "handlebars": "4.7.9",
    "prettier": "3.8.1",
    "prettier-plugin-jsdoc": "1.8.0",
    "prettier-plugin-organize-imports": "4.3.0",
    "prettier-plugin-packagejson": "3.0.2",
    "ts-node": "10.9.2",
    "tsx": "4.21.0",
    "typescript": "6.0.2",
    "yaml": "2.8.3"
  },
  "peerDependencies": {
    "@daml/ledger": "2.10.4",
    "@daml/types": "3.5.1"
  },
  "publishConfig": {
    "access": "public"
  }
}
