{
  "name": "playht",
  "version": "0.16.0",
  "description": "NodeJS SDK for PlayHT generative AI text-to-speech APIs",
  "files": [
    "dist/**/*",
    "README.md"
  ],
  "main": "dist/cjs/index.js",
  "module": "dist/esm/index.js",
  "typings": "dist/index.d.ts",
  "repository": "https://github.com/playht/playht-nodejs-sdk",
  "license": "MIT",
  "scripts": {
    "build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --outdir=dist/cjs",
    "build:esm": "esbuild src/index.ts --bundle --platform=node --format=esm --outdir=dist/esm",
    "build:protobufs": "pbjs -t static-module -w commonjs -o src/grpc-client/protos/api.js src/grpc-client/protoFiles/api.proto && pbts -o src/grpc-client/protos/api.d.ts src/grpc-client/protos/api.js",
    "clean": "rm -rf ./dist && rm -f src/grpc-client/protos/*.js src/grpc-client/protos/*.d.ts",
    "build": "yarn clean && yarn build:protobufs && tsc -p tsconfig.json --emitDeclarationOnly --outdir dist && yarn build:cjs && yarn build:esm",
    "test": "node --experimental-vm-modules node_modules/.bin/jest",
    "lint": "prettier --write . && eslint --ext .ts ./src --fix",
    "verify": "yarn check && yarn test",
    "check": "yarn build:protobufs && tsc -p tsconfig.json --noEmit && prettier --check . && eslint --ext .ts ./src",
    "release": "yarn && yarn verify && yarn build && cp ../../README.md . && npm publish || true && rm README.md",
    "release-alpha": "yarn && yarn verify && yarn build && cp ../../README.md . && npm publish --tag=alpha || true && rm README.md",
    "postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
  },
  "devDependencies": {
    "@jest/globals": "^29.7.0",
    "@types/jest": "^29.5.5",
    "@types/node": "^20.5.4",
    "@typescript-eslint/eslint-plugin": "^6.4.1",
    "@typescript-eslint/parser": "^6.4.1",
    "dotenv": "^16.4.5",
    "esbuild": "^0.19.2",
    "eslint": "^8.47.0",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-import": "^2.28.1",
    "jest": "^29.6.3",
    "prettier": "3.0.2",
    "protobufjs-cli": "^1.1.2",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.1",
    "typescript": "^5.1.6"
  },
  "packageManager": "yarn@3.6.2",
  "dependencies": {
    "@grpc/grpc-js": "^1.9.4",
    "axios": "^1.4.0",
    "cross-fetch": "^4.0.0",
    "file-type": "^18.5.0",
    "protobufjs": "^7.2.5",
    "tslib": "^2.1.0"
  }
}
