{ "name": "posthog", "description": "", "version": "0.0.0", "repository": { "type": "git", "url": "https://github.com/posthog/posthog.git" }, "author": "PostHog Inc.", "bugs": { "url": "https://github.com/posthog/posthog/issues" }, "homepage": "https://github.com/posthog/posthog#readme", "license": "MIT", "engines": { "node": ">=16 <19" }, "scripts": { "copy-scripts": "mkdir -p frontend/dist/ && yarn copy-scripts:array && yarn copy-scripts:recorder", "copy-scripts:array": "cp node_modules/posthog-js/dist/array.js* frontend/dist/", "copy-scripts:recorder": "./bin/copy-scripts-recorder", "test": "jest", "start": "concurrently -n ESBUILD,TYPEGEN -c yellow,green \"yarn start-http\" \"yarn run typegen:watch\"", "start-http": "yarn clean && yarn copy-scripts && node frontend/build.mjs --dev", "start-docker": "yarn start-http --host 0.0.0.0", "clean": "rm -rf frontend/dist && mkdir frontend/dist", "build": "yarn copy-scripts && yarn build:esbuild", "build:esbuild": "node frontend/build.mjs", "schema:build": "ts-json-schema-generator -f tsconfig.json --path 'frontend/src/*.ts' --type 'QuerySchema' --no-type-check > frontend/src/queries/schema.json && prettier --write frontend/src/queries/schema.json", "packages:build": "yarn packages:build:apps-common && yarn packages:build:lemon-ui", "packages:build:apps-common": "cd frontend/@posthog/apps-common && yarn && yarn build", "packages:build:lemon-ui": "cd frontend/@posthog/lemon-ui && yarn && yarn build", "editor:update-tsd": "yarn packages:build && node frontend/editor-update-tsd.mjs", "prettier": "prettier --write \"./**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"", "prettier:check": "prettier --check \"./**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"", "typescript:check": "tsc --noEmit && echo \"No errors reported by tsc.\"", "eslint": "eslint frontend/src", "typegen:write": "kea-typegen write", "typegen:check": "kea-typegen check", "typegen:watch": "kea-typegen watch --show-ts-errors", "typegen:clean": "find frontend/src -type f -name '*Type.ts' -delete", "format:python": "black . && isort .", "format:js": "yarn prettier && yarn eslint --fix", "format": "yarn format:python && yarn format:js", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", "dev:migrate:postgres": "export DEBUG=1 && source env/bin/activate && python manage.py migrate", "dev:migrate:clickhouse": "export DEBUG=1 && source env/bin/activate && python manage.py migrate_clickhouse", "prepare": "husky install" }, "dependencies": { "@ant-design/icons": "^4.7.0", "@floating-ui/react-dom-interactions": "^0.6.6", "@lottiefiles/react-lottie-player": "^3.4.7", "@monaco-editor/react": "^4.1.3", "@posthog/plugin-scaffold": "^1.3.2", "@posthog/react-rrweb-player": "^1.1.3", "@posthog/simmerjs": "^0.7.7", "@react-hook/size": "^2.1.2", "@sentry/react": "7.7.0", "antd": "^4.17.1", "antd-dayjs-webpack-plugin": "^1.0.6", "babel-preset-nano-react-app": "^0.1.0", "chart.js": "^3.9.1", "chartjs-adapter-dayjs-3": "^1.2.3", "chartjs-plugin-crosshair": "^1.2.0", "clsx": "^1.1.1", "core-js": "3.15.2", "d3": "^5.15.0", "d3-sankey": "^0.12.3", "dayjs": "^1.10.7", "expr-eval": "^2.0.2", "fast-deep-equal": "^3.1.3", "fuse.js": "^6.4.1", "kea": "^3.0.4", "kea-forms": "^3.0.3", "kea-loaders": "^3.0.0", "kea-localstorage": "^3.0.0", "kea-router": "^3.1.3", "kea-subscriptions": "^3.0.0", "kea-waitfor": "^0.2.1", "kea-window-values": "^3.0.0", "md5": "^2.3.0", "monaco-editor": "^0.23.0", "posthog-js": "1.36.0", "posthog-js-lite": "2.0.0-alpha5", "prop-types": "^15.7.2", "query-selector-shadow-dom": "^1.0.0", "rc-trigger": "^5.2.5", "react": "^16.14.0", "react-dom": "^16.14.0", "react-draggable": "^4.2.0", "react-grid-layout": "^1.3.0", "react-input-autosize": "^3.0.0", "react-json-view": "^1.21.3", "react-markdown": "^5.0.3", "react-modal": "^3.15.1", "react-resizable": "^1.11.1", "react-shadow": "^18.4.2", "react-sortable-hoc": "^1.11.0", "react-syntax-highlighter": "^15.5.0", "react-textarea-autosize": "^8.3.3", "react-textfit": "^1.1.1", "react-toastify": "^8.2.0", "react-transition-group": "^4.4.2", "react-virtualized": "^9.22.3", "require-from-string": "^2.0.2", "resize-observer-polyfill": "^1.5.1", "rrweb": "^1.1.3", "sass": "^1.26.2", "use-debounce": "^6.0.1", "use-resize-observer": "^8.0.0", "wildcard-match": "^5.1.2", "zxcvbn": "^4.4.2" }, "devDependencies": { "@babel/core": "^7.17.10", "@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-proposal-private-property-in-object": "^7.16.7", "@babel/plugin-transform-react-jsx": "^7.17.3", "@babel/plugin-transform-runtime": "^7.17.10", "@babel/preset-env": "^7.17.10", "@babel/preset-react": "^7.17.10", "@babel/preset-typescript": "^7.16.7", "@babel/runtime": "^7.17.9", "@cypress/webpack-preprocessor": "^5.15.4", "@hot-loader/react-dom": "^16.14.0", "@storybook/addon-a11y": "^6.5.10", "@storybook/addon-actions": "^6.5.9", "@storybook/addon-essentials": "^6.5.9", "@storybook/addon-links": "^6.5.9", "@storybook/addon-storysource": "^6.5.9", "@storybook/react": "^6.5.9", "@testing-library/dom": ">=7.21.4", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", "@types/chart.js": "^2.9.34", "@types/chartjs-plugin-crosshair": "^1.1.1", "@types/clone": "^2.1.1", "@types/cypress": "^1.1.3", "@types/d3": "^7.0.0", "@types/d3-sankey": "^0.11.2", "@types/jest": "^29.2.3", "@types/md5": "^2.3.0", "@types/pixelmatch": "^5.2.4", "@types/pngjs": "^6.0.1", "@types/query-selector-shadow-dom": "^1.0.0", "@types/react": "^16.14.2", "@types/react-dom": "^16.9.8", "@types/react-grid-layout": "^1.1.2", "@types/react-input-autosize": "^2.2.1", "@types/react-modal": "^3.13.1", "@types/react-resizable": "^1.7.2", "@types/react-syntax-highlighter": "^11.0.4", "@types/react-textfit": "^1.1.0", "@types/react-transition-group": "^4.4.4", "@types/react-virtualized": "^9.21.14", "@types/zxcvbn": "^4.4.0", "@typescript-eslint/eslint-plugin": "^3.6.0", "@typescript-eslint/parser": "^3.6.0", "autoprefixer": "^10.4.7", "axe-core": "^4.4.3", "babel-eslint": "^10.1.0", "babel-loader": "^8.0.6", "babel-plugin-import": "^1.13.0", "concurrently": "^5.3.0", "cors": "^2.8.5", "css-loader": "^3.4.2", "cssnano": "^4.1.10", "cypress": "^10.11.0", "cypress-axe": "^1.0.0", "cypress-terminal-report": "^4.1.2", "esbuild": "^0.14.54", "esbuild-jest": "^0.5.0", "esbuild-plugin-less": "^1.1.7", "esbuild-sass-plugin": "^1.8.2", "eslint": "^7.8.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-no-only-tests": "^3.0.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.3", "eslint-plugin-storybook": "^0.5.7", "express": "^4.17.1", "file-loader": "^6.1.0", "fs-extra": "^10.0.0", "givens": "^1.3.6", "history": "^5.0.1", "html-webpack-harddisk-plugin": "^1.0.2", "html-webpack-plugin": "^4.5.2", "husky": "^7.0.4", "jest": "^29.3.1", "jest-canvas-mock": "^2.4.0", "jest-environment-jsdom": "^29.3.1", "kea-test-utils": "^0.2.2", "kea-typegen": "^3.1.4", "less": "^3.12.2", "less-loader": "^7.0.2", "lint-staged": "~10.2.13", "msw": "^0.47.3", "path-browserify": "^1.0.1", "pixelmatch": "^5.3.0", "pngjs": "^6.0.0", "postcss": "^8.4.14", "postcss-loader": "^4.3.0", "prettier": "^2.3.1", "raw-loader": "^4.0.2", "sass-loader": "^10.0.1", "storybook-addon-turbo-build": "^1.1.0", "style-loader": "^2.0.0", "timekeeper": "^2.2.0", "ts-json-schema-generator": "^1.1.2", "ts-node": "^9.1.1", "typescript": "^4.6.4", "webpack": "^4.46.0", "webpack-cli": "^4.5.0", "whatwg-fetch": "^3.6.2" }, "optionalDependencies": { "fsevents": "^2.1.2" }, "lint-staged": { "*.{js,jsx,mjs,ts,tsx,json,yaml,yml,css,scss}": "prettier --write", "((frontend|cypress)/**).{js,jsx,mjs,ts,tsx}": "eslint -c .eslintrc.js --fix", "(plugin-server/**).{js,jsx,mjs,ts,tsx}": "eslint -c plugin-server/.eslintrc.js --fix", "*.{py,pyi}": [ "black", "flake8", "isort" ] }, "browserslist": { "development": [ "last 2 chrome versions", "last 2 firefox versions", "last 2 edge versions" ], "production": [ "defaults" ] }, "browser": { "path": "path-browserify" } }