UNPKG

@fairmint/canton-node-sdk

Version:
86 lines (85 loc) 3.73 kB
{ "name": "@fairmint/canton-node-sdk", "version": "0.0.60", "description": "Canton Node SDK", "main": "build/src/index.js", "types": "build/src/index.d.ts", "publishConfig": { "access": "public" }, "scripts": { "build": "npm run build:core && npm run build:lint", "build:core": "npm run build:core:generate-client-methods && npm run generate:openapi-types && tsc", "build:core:generate-client-methods": "tsx scripts/generate-client-methods.ts", "generate:openapi-types": "find artifacts/splice -name '*.yaml' -exec sh -c 'relative_path=\"$(echo \"$1\" | sed \"s|^artifacts/splice/||\" | sed \"s|\\.yaml$|.ts|\")\"; output_file=\"src/generated/$relative_path\"; mkdir -p \"$(dirname \"$output_file\")\"; npx openapi-typescript \"$1\" -o \"$output_file\"' _ {} \\;", "build:lint": "tsc -p tsconfig.lint.json", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:integration": "node scripts/test-integration.js", "simulate": "tsx --tsconfig tsconfig.lint.json scripts/run-simulations.ts", "test:all": "npm run test && npm run simulate && npm run test:integration", "lint:eslint": "eslint src/**/*.ts test/**/*.ts scripts/**/*.ts simulations/**/*.ts --fix", "lint:eslint:check": "eslint src/**/*.ts test/**/*.ts scripts/**/*.ts simulations/**/*.ts", "lint:prettier": "prettier --write src/**/*.ts test/**/*.ts scripts/**/*.ts simulations/**/*.ts **/*.md", "lint:prettier:check": "prettier --check src/**/*.ts test/**/*.ts scripts/**/*.ts simulations/**/*.ts **/*.md", "lint:npm:check": "npmPkgJsonLint .", "lint:npm": "npmPkgJsonLint . --fix", "lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:npm", "lint:check": "npm run lint:eslint:check && npm run lint:prettier:check && npm run lint:npm:check", "clean": "rm -rf build", "artifacts:manifest": "mkdir -p artifacts && 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 > artifacts/npm-manifest.txt", "artifacts:clone-splice": "./scripts/clone-splice.sh", "prepack": "npm run clean && npm run build:core", "prepublishOnly": "npm run prepack", "prepare-release": "tsx scripts/prepare-release.ts", "docs": "tsx scripts/update-docs-version.ts && tsx scripts/generate-operation-docs.ts", "docs:dev": "npm run docs && cd docs && bundle exec jekyll serve --livereload --port 4000", "docs:build": "npm run docs && cd docs && bundle exec jekyll build" }, "keywords": [ "canton", "sdk", "typescript", "blockchain", "daml" ], "author": "Fairmint", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/Fairmint/canton-node-sdk.git" }, "bugs": { "url": "https://github.com/Fairmint/canton-node-sdk/issues" }, "homepage": "https://sdk.canton.fairmint.com/", "devDependencies": { "@types/jest": "30.0.0", "@types/node": "24.1.0", "@typescript-eslint/eslint-plugin": "8.38.0", "@typescript-eslint/parser": "8.38.0", "eslint": "9.32.0", "eslint-config-prettier": "10.1.8", "eslint-plugin-import": "2.32.0", "eslint-plugin-markdown": "5.1.0", "eslint-plugin-prettier": "5.5.3", "jest": "30.0.5", "markdownlint-cli": "0.45.0", "npm-package-json-lint": "9.0.0", "prettier": "3.6.2", "ts-jest": "29.4.0", "tsx": "4.20.3", "typescript": "5.8.3" }, "engines": { "node": ">=18.0.0" }, "dependencies": { "axios": "1.11.0", "dotenv": "17.2.1", "openapi-fetch": "^0.14.0", "openapi-typescript": "^7.8.0", "zod": "4.0.14" } }