{
  "name": "@sanity/pkg-utils",
  "version": "7.9.20",
  "description": "Simple utilities for modern npm packages.",
  "keywords": [
    "sanity-io",
    "sanity",
    "npm",
    "package",
    "utilities",
    "build",
    "bundling"
  ],
  "homepage": "https://github.com/sanity-io/pkg-utils#readme",
  "bugs": {
    "url": "https://github.com/sanity-io/pkg-utils/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/sanity-io/pkg-utils.git"
  },
  "license": "MIT",
  "author": "Sanity.io <hello@sanity.io>",
  "sideEffects": false,
  "type": "module",
  "exports": {
    ".": {
      "source": "./src/node/index.ts",
      "import": "./dist/index.js",
      "require": "./dist/index.cjs",
      "default": "./dist/index.js"
    },
    "./tsconfig/recommended.json": "./tsconfig/recommended.json",
    "./tsconfig/recommended": "./tsconfig/recommended.json",
    "./tsconfig/strict.json": "./tsconfig/strict.json",
    "./tsconfig/strict": "./tsconfig/strict.json",
    "./tsconfig/strictest.json": "./tsconfig/strictest.json",
    "./tsconfig/isolated-declarations.json": "./tsconfig/isolated-declarations.json",
    "./tsconfig": "./tsconfig/strictest.json",
    "./package.json": "./package.json"
  },
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "bin": {
    "pkg": "./bin/pkg-utils.js",
    "pkg-utils": "./bin/pkg-utils.js"
  },
  "files": [
    "bin",
    "dist",
    "tsconfig",
    "!dist/stats.html"
  ],
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ]
  },
  "lint-staged": {
    "*.{js,jsx,ts,tsx,mjs,cjs}": [
      "prettier --cache --write",
      "oxlint --fix --quiet"
    ],
    "*": [
      "prettier --write --cache --ignore-unknown"
    ]
  },
  "browserslist": "extends @sanity/browserslist-config",
  "dependencies": {
    "@babel/core": "^7.28.0",
    "@babel/preset-typescript": "^7.27.1",
    "@babel/types": "^7.28.2",
    "@microsoft/api-extractor": "7.52.10",
    "@microsoft/tsdoc-config": "0.17.1",
    "@optimize-lodash/rollup-plugin": "5.0.2",
    "@rollup/plugin-alias": "^5.1.1",
    "@rollup/plugin-babel": "^6.0.4",
    "@rollup/plugin-commonjs": "^28.0.6",
    "@rollup/plugin-json": "^6.1.0",
    "@rollup/plugin-node-resolve": "^16.0.1",
    "@rollup/plugin-replace": "^6.0.2",
    "@rollup/plugin-terser": "^0.4.4",
    "@sanity/browserslist-config": "^1.0.5",
    "browserslist": "^4.25.1",
    "cac": "^6.7.14",
    "chalk": "^4.1.2",
    "chokidar": "^4.0.3",
    "esbuild": "^0.25.8",
    "esbuild-register": "^3.6.0",
    "find-config": "^1.0.0",
    "get-latest-version": "^5.1.0",
    "git-url-parse": "^16.1.0",
    "globby": "^11.1.0",
    "jsonc-parser": "^3.3.1",
    "mkdirp": "^3.0.1",
    "outdent": "^0.8.0",
    "pkg-up": "^3.1.0",
    "prettier": "^3.6.2",
    "pretty-bytes": "^5.6.0",
    "prompts": "^2.4.2",
    "recast": "0.23.11",
    "rimraf": "^4.4.1",
    "rolldown": "1.0.0-beta.30",
    "rolldown-plugin-dts": "0.14.3",
    "rollup": "^4.46.2",
    "rollup-plugin-esbuild": "^6.2.1",
    "rxjs": "^7.8.2",
    "treeify": "^1.1.0",
    "uuid": "^11.1.0",
    "zod": "3.25.76",
    "zod-validation-error": "3.5.3"
  },
  "devDependencies": {
    "@commitlint/cli": "^19.8.1",
    "@commitlint/config-conventional": "^19.8.1",
    "@ianvs/prettier-plugin-sort-imports": "^4.5.1",
    "@sanity/prettier-config": "^1.0.6",
    "@types/babel__core": "^7.20.5",
    "@types/find-config": "^1.0.4",
    "@types/fs-extra": "^11.0.4",
    "@types/node": "^24.0.3",
    "@types/prompts": "^2.4.9",
    "@types/semver": "^7.7.0",
    "@types/treeify": "^1.0.3",
    "@types/uuid": "^10.0.0",
    "@typescript/native-preview": "7.0.0-dev.20250731.1",
    "browserslist-to-esbuild": "2.1.1",
    "commitizen": "^4.3.1",
    "cz-conventional-changelog": "^3.3.0",
    "fs-extra": "^11.3.0",
    "husky": "^8.0.3",
    "lint-staged": "^15.5.2",
    "npm-run-all2": "^8.0.4",
    "outdent": "^0.8.0",
    "oxlint": "^1.9.0",
    "rollup-plugin-visualizer": "^6.0.3",
    "semver": "^7.7.2",
    "ts-node": "^10.9.2",
    "tsx": "^4.20.3",
    "typescript": "5.9.2",
    "vitest": "^3.2.4",
    "@sanity/pkg-utils": "7.9.20"
  },
  "peerDependencies": {
    "babel-plugin-react-compiler": "*",
    "typescript": "5.8.x || 5.9.x"
  },
  "peerDependenciesMeta": {
    "babel-plugin-react-compiler": {
      "optional": true
    }
  },
  "engines": {
    "node": ">=18.17.0"
  },
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "build": "run-s clean build:pkg check:pkg",
    "build:pkg": "tsx scripts/build",
    "check:pkg": "tsx scripts/check",
    "clean": "rimraf dist test/env/__tmp__",
    "commit": "cz",
    "extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
    "format": "prettier --write --cache --ignore-unknown . && oxlint --fix --quiet",
    "lint": "oxlint",
    "playground:build": "pnpm --filter './playground/**' build",
    "playground:clean": "pnpm --filter './playground/**' --silent clean",
    "playground:typecheck": "pnpm --filter './playground/**' typecheck",
    "pretest": "run-s playground:clean",
    "test": "vitest run",
    "test:update-snapshots": "pnpm test run -- --update",
    "typecheck": "tsc --build",
    "watch": "tsx scripts/watch"
  }
}