mirror of
https://github.com/PostHog/posthog.git
synced 2026-10-26 09:51:43 +08:00
126 lines
6.5 KiB
JSON
126 lines
6.5 KiB
JSON
{
|
|
"name": "@posthog/root",
|
|
"version": "0.0.0",
|
|
"description": "",
|
|
"homepage": "https://github.com/posthog/posthog#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/posthog/posthog/issues"
|
|
},
|
|
"license": "MIT",
|
|
"author": "PostHog Inc.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/posthog/posthog.git"
|
|
},
|
|
"browser": {
|
|
"path": "path-browserify"
|
|
},
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"schema:build": "bin/hogli build:schema",
|
|
"openapi:build": "bin/hogli build:openapi",
|
|
"schema:build:python": "bash bin/build-schema-python.sh",
|
|
"grammar:build": "pnpm grammar:build:cpp",
|
|
"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",
|
|
"build:products": "pnpm --filter=@posthog/frontend run build:products",
|
|
"generate:source-configs": "DEBUG=1 python manage.py generate_source_configs",
|
|
"// DEPRECATED - use hogli migrations:run instead": "",
|
|
"dev:migrate:postgres": "export DEBUG=1 && source env/bin/activate && python manage.py migrate",
|
|
"// DEPRECATED - use hogli migrations:run instead ": "",
|
|
"dev:migrate:clickhouse": "export DEBUG=1 && source env/bin/activate && python manage.py migrate_clickhouse",
|
|
"// DEPRECATED - use hogli format:python instead": "",
|
|
"format:backend": "./bin/ruff.sh format .",
|
|
"// DEPRECATED - use hogli format:js instead": "",
|
|
"format:frontend": "oxfmt \"{products,frontend/src,docs}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
|
|
"format:frontend:check": "oxfmt --check \"{products,frontend/src,docs}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
|
|
"// DEPRECATED - use hogli format instead": "",
|
|
"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",
|
|
"quill:dev": "pnpm --filter=@posthog/quill-workspace dev",
|
|
"quill:build": "pnpm --filter='@posthog/quill...' --filter='@posthog/quill-charts...' build",
|
|
"quill:storybook": "pnpm --filter=@posthog/quill-workspace storybook",
|
|
"quill:publish": "pnpm quill:build && pnpm --filter @posthog/quill-tokens publish --tag alpha --no-git-checks && pnpm --filter @posthog/quill publish --tag alpha --no-git-checks && pnpm --filter @posthog/quill-charts publish --tag alpha --no-git-checks",
|
|
"// DEPRECATED - use hogli start instead": "",
|
|
"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; [ ! -f bin/fix-rdkafka-paths ] || bin/fix-rdkafka-paths",
|
|
"lint": "pnpm lint:js && pnpm lint:css",
|
|
"lint:js": "oxlint --quiet",
|
|
"lint:css": "stylelint \"(frontend|products)/**/*.{css,scss}\" --ignore-pattern \"products/desktop/**\"",
|
|
"test:unit": "pnpm --filter=@posthog/frontend test"
|
|
},
|
|
"dependencies": {
|
|
"concurrently": "catalog:",
|
|
"fuse.js": "catalog:",
|
|
"husky": "catalog:",
|
|
"lint-staged": "catalog:",
|
|
"uuid": "^11.1.1",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@parcel/packager-ts": "catalog:",
|
|
"@parcel/transformer-typescript-types": "catalog:",
|
|
"@playwright/test": "catalog:",
|
|
"@tailwindcss/postcss": "4.3.0",
|
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
"autoprefixer": "^10.4.13",
|
|
"cssnano": "^7.0.6",
|
|
"markdownlint-cli2": "^0.18.1",
|
|
"oxfmt": "catalog:",
|
|
"oxlint": "^1.72.0",
|
|
"playwright": "1.60.0",
|
|
"postcss": "^8.5.15",
|
|
"postcss-preset-env": "^10.1.4",
|
|
"stylelint": "^15.11.0",
|
|
"stylelint-config-recess-order": "^4.6.0",
|
|
"stylelint-config-standard-scss": "^11.1.0",
|
|
"stylelint-order": "^6.0.4",
|
|
"syncpack": "^15.3.1",
|
|
"turbo": "^2.9.14"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "^2.3.3"
|
|
},
|
|
"lint-staged": {
|
|
".claude/settings.json": "sh -c '.github/scripts/check-claude-settings.sh'",
|
|
"**/{AGENTS,CLAUDE}.md": "sh -c '.github/scripts/check-agents-md-symlinks.sh'",
|
|
"frontend/public/services/*.{png,jpg,jpeg,gif}": "node frontend/bin/check-service-icon-size.mjs",
|
|
"products/**/manifest.tsx": [
|
|
"bin/hogli format:js",
|
|
"sh -c 'pnpm build:products && git add frontend/src/products.tsx frontend/src/productScenes.tsx frontend/src/products.json'"
|
|
],
|
|
"!(**/.sqlx/**|products/review_hog/backend/reviewer/prompts/*/schema.json|**/chart/*/templates/**|products/metrics/agent/tests/**/golden/**)*.{json,yaml,yml}": "bin/hogli format:yaml",
|
|
"*.{css,scss}": "bin/hogli format:css",
|
|
"frontend/src/lib/constants.tsx": [
|
|
"bin/hogli lint:feature-flags:fix",
|
|
"bin/hogli format:js"
|
|
],
|
|
"{playwright,frontend,products,common,ee,services,docs}/**/*.{js,jsx,mjs,mts,ts,tsx}": "bin/hogli format:js",
|
|
"products/desktop/**/*.{js,mjs,ts,tsx,json,jsonc,css}": "pnpm --dir products/desktop exec biome check --write --no-errors-on-unmatched --files-ignore-unknown=true",
|
|
"packages/agent/**/*.{js,mjs,mts,ts,tsx,json,jsonc}": "pnpm --dir packages/agent exec biome check --write --no-errors-on-unmatched --files-ignore-unknown=true",
|
|
"nodejs/**/*.{js,jsx,mjs,mts,ts,tsx}": "bin/hogli format:nodejs",
|
|
"funnel-udf/**/*.rs": "bin/hogli format:rust",
|
|
"!(posthog/hogql/grammar/*|products/*/skills/*/scripts/*|products/stamphog/packages/*/*)*.{py,pyi}": [
|
|
"bin/hogli lint:python:fix",
|
|
"bin/hogli format:python",
|
|
"uv run --no-sync ty check"
|
|
],
|
|
"{posthog/templates,products/*/backend/templates}/**/*.html": "bin/hogli format:html",
|
|
"*.{md,mdx}": "bin/hogli format:markdown"
|
|
},
|
|
"browserslist": {
|
|
"development": [
|
|
"last 2 chrome versions",
|
|
"last 2 firefox versions",
|
|
"last 2 edge versions"
|
|
],
|
|
"production": [
|
|
"defaults and not op_mini all"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">=24 <25"
|
|
},
|
|
"packageManager": "pnpm@11.28.5"
|
|
}
|