{
    "name": "posthog-js",
    "version": "1.396.5",
    "bugs": {
        "url": "https://github.com/PostHog/posthog-js/issues"
    },
    "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.",
    "repository": "https://github.com/PostHog/posthog-js",
    "author": "engineering@posthog.com",
    "license": "(Apache-2.0 AND MIT)",
    "homepage": "https://posthog.com/docs/libraries/js",
    "packageManager": "pnpm@10.12.4",
    "scripts": {
        "clean": "rimraf lib dist react/dist",
        "start": "pnpm build-react && NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm build-rollup -w",
        "dev": "tsc -b && NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -cw",
        "build": "tsc -b && rollup -c",
        "postbuild": "node scripts/strip-lib-package-json.js && node scripts/check-mangled-property-consistency.js && node scripts/copy-rrweb-worker-maps.js",
        "package": "pnpm pack --out $PACKAGE_DEST/%s.tgz",
        "lint": "eslint src && eslint playwright",
        "lint:fix": "eslint src --fix && eslint playwright --fix",
        "prettier": "prettier --write src/ functional_tests/ playwright/",
        "prettier:check": "prettier --check src/ functional_tests/ playwright/",
        "prepublishOnly": "pnpm check-react",
        "check-react": "[ -d 'react/dist' ] || { echo '@posthog/react has not been built'; exit 1; }",
        "test": "pnpm test:unit && pnpm test:functional",
        "test:unit": "jest src",
        "test:unit:surveys": "jest '.*survey.*.test.'",
        "test:unit:tours": "jest '.*tours.*.test.'",
        "test:functional": "jest functional_tests",
        "test-watch": "jest --watch src",
        "test:typecheck": "cd src/__tests__ && tsc --noEmit --project tsconfig.json",
        "typecheck": "tsc --noEmit --project tsconfig.json",
        "playwright": "pnpm exec playwright test --project webkit --project firefox --project chromium",
        "playwright:compat": "pnpm exec playwright test --config playwright.config.compat.ts",
        "playwright:integration": "pnpm exec playwright test --config playwright.config.integration.ts --project webkit --project firefox --project chromium",
        "playwright-ui": "pnpm exec playwright test --ui --project webkit --project firefox --project chromium",
        "playwright-webserver": "npx http-server ./ -p 2345",
        "playwright:surveys": "pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --project webkit --project firefox --project chromium",
        "playwright:surveys:ui": "pnpm exec playwright test packages/browser/playwright/mocked/surveys/* --ui --project webkit --project firefox --project chromium",
        "playwright:tours:ui": "pnpm exec playwright test packages/browser/playwright/mocked/product-tours/* --ui --project webkit --project firefox --project chromium",
        "prepare": "[ -z \"$VERCEL\" ] && husky install || echo \"Skipping husky install on vercel build\"",
        "deprecate-old-versions": "node scripts/deprecate-old-versions.mjs",
        "check-testcafe-results": "ts-node testcafe/check-testcafe-results.js",
        "run-testcafe-localhost": "node scripts/run-testcafe-localhost.mjs",
        "write-mangled-property-names": "WRITE_MANGLED_PROPERTIES=1 pnpm build",
        "generate-references": "pnpm exec api-extractor run --config ./api-extractor.json --local && node scripts/generate-docs.js"
    },
    "main": "dist/main.js",
    "module": "dist/module.js",
    "types": "dist/module.d.ts",
    "files": [
        "lib/*",
        "dist/*",
        "react/dist/**",
        "react/package.json",
        "react/surveys/package.json",
        "react/slim/package.json",
        "rrweb/package.json",
        "rrweb-types/package.json",
        "rrweb-plugin-console-record/package.json"
    ],
    "browserslist": [
        "> 0.5%, last 2 versions, Firefox ESR, not dead"
    ]
}
