mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 11:11:24 +01:00
115 lines
4.9 KiB
JSON
115 lines
4.9 KiB
JSON
{
|
|
"name": "@posthog/root",
|
|
"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": ">=22 <23"
|
|
},
|
|
"packageManager": "pnpm@9.15.5+sha256.8472168c3e1fd0bff287e694b053fccbbf20579a3ff9526b6333beab8df65a8d",
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"schema:build": "pnpm --filter=@posthog/frontend run schema:build:json && pnpm run schema:build:python && python bin/build-schema-latest-versions.py",
|
|
"schema:build:python": "bash bin/build-schema-python.sh",
|
|
"taxonomy:build": "pnpm run taxonomy:build:json",
|
|
"taxonomy:build:json": "python bin/build-taxonomy-json.py",
|
|
"grammar:build": "npm run grammar:build:python && npm run grammar:build:cpp",
|
|
"grammar:build:python": "cd posthog/hogql/grammar && cat HogQLLexer.python.g4 > HogQLLexer.g4 && tail -n +2 HogQLLexer.common.g4 |sed s/isOpeningTag/self.isOpeningTag/ >> HogQLLexer.g4 && antlr -Dlanguage=Python3 HogQLLexer.g4 && rm HogQLLexer.g4 && antlr -visitor -no-listener -Dlanguage=Python3 HogQLParser.g4",
|
|
"grammar:build:cpp": "cd posthog/hogql/grammar && cat HogQLLexer.cpp.g4 > HogQLLexer.g4 && tail -n +2 HogQLLexer.common.g4 >> HogQLLexer.g4 && antlr -o ../../../common/hogql_parser -Dlanguage=Cpp HogQLLexer.g4 && rm HogQLLexer.g4 && antlr -o ../../../common/hogql_parser -visitor -no-listener -Dlanguage=Cpp HogQLParser.g4",
|
|
"generate:source-configs": "DEBUG=1 python manage.py generate_source_configs",
|
|
"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",
|
|
"mypy-baseline-sync": "TEST=1 mypy . | mypy-baseline sync",
|
|
"mypy-check": "TEST=1 mypy . | mypy-baseline filter",
|
|
"format:backend": "./bin/ruff.sh format .",
|
|
"format:frontend": "pnpm --filter=@posthog/frontend run format",
|
|
"format": "pnpm format:backend && pnpm format:frontend",
|
|
"cleandep": "rm -rf node_modules && pnpm -r exec rm -rf node_modules",
|
|
"storybook": "pnpm turbo --filter=@posthog/storybook start",
|
|
"start": "./bin/start",
|
|
"postinstall": "git config --get blame.ignoreRevsFile > /dev/null 2>&1 || git config blame.ignoreRevsFile .git-blame-ignore-revs > /dev/null 2>&1 || true"
|
|
},
|
|
"dependencies": {
|
|
"concurrently": "^5.3.0",
|
|
"husky": "^7.0.4",
|
|
"lint-staged": "~15.4.3",
|
|
"turbo": "^2.4.2",
|
|
"uuid": "^10.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@parcel/packager-ts": "2.13.3",
|
|
"@parcel/transformer-typescript-types": "2.13.3",
|
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
"@types/uuid": "^10.0.0",
|
|
"markdownlint-cli2": "^0.18.1",
|
|
"oxlint": "^1.8.0",
|
|
"prettier": "^3.6.2",
|
|
"stylelint": "^15.11.0",
|
|
"stylelint-config-recess-order": "^4.6.0",
|
|
"stylelint-config-standard-scss": "^11.1.0",
|
|
"stylelint-order": "^6.0.4",
|
|
"syncpack": "^13.0.4"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "^2.3.3"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"playwright": "1.45.0",
|
|
"typescript": "5.2.2",
|
|
"@posthog/icons": "0.33.0"
|
|
},
|
|
"patchedDependencies": {
|
|
"heatmap.js@2.0.5": "patches/heatmap.js@2.0.5.patch",
|
|
"dayjs@1.11.11": "patches/dayjs@1.11.11.patch",
|
|
"chartjs-plugin-crosshair@2.0.0": "patches/chartjs-plugin-crosshair@2.0.0.patch"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{json,yaml,yml}": "prettier --write",
|
|
"*.{css,scss}": [
|
|
"stylelint --fix --allow-empty-input",
|
|
"prettier --write"
|
|
],
|
|
"{playwright,frontend,products,common,ee}/**/*.{js,jsx,mjs,ts,tsx}": [
|
|
"oxlint --fix --fix-suggestions --quiet",
|
|
"prettier --write"
|
|
],
|
|
"plugin-server/**/*.{js,jsx,mjs,ts,tsx}": [
|
|
"pnpm --dir plugin-server exec eslint --fix",
|
|
"pnpm --dir plugin-server exec prettier --write"
|
|
],
|
|
"funnel-udf/**/*.rs": "rustfmt",
|
|
"!(posthog/hogql/grammar/*)*.{py,pyi}": [
|
|
"./bin/ruff.sh check --fix",
|
|
"./bin/ruff.sh format"
|
|
],
|
|
"*.{md,mdx}": [
|
|
"prettier --write",
|
|
"pnpm exec markdownlint-cli2 --fix --config .config/.markdownlint-cli2.jsonc"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"development": [
|
|
"last 2 chrome versions",
|
|
"last 2 firefox versions",
|
|
"last 2 edge versions"
|
|
],
|
|
"production": [
|
|
"defaults and not op_mini all"
|
|
]
|
|
},
|
|
"browser": {
|
|
"path": "path-browserify"
|
|
}
|
|
}
|