forked from PostHog/posthog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
127 lines (127 loc) · 7.14 KB
/
Copy pathpackage.json
File metadata and controls
127 lines (127 loc) · 7.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"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",
"taxonomy:build": "pnpm run taxonomy:build:json",
"taxonomy:build:json": "python bin/build-taxonomy-json.py",
"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 'printf \"\\n\\033[31mDo not commit .claude/settings.json — personal permissions belong in .claude/settings.local.json (gitignored).\\nUnstage with: git restore --staged .claude/settings.json\\033[0m\\n\\n\" >&2 && exit 1'",
".claude/hooks/**": "sh -c 'printf \"\\n\\033[33mWarning: hooks in .claude/ are reserved for env bootstrapping (SessionStart only).\\nPrefer skills, AGENTS.md instructions, or lint-staged rules. See Agent automation in AGENTS.md.\\033[0m\\n\\n\"'",
"**/{AGENTS,CLAUDE}.md": "sh -c '.github/scripts/check-agents-md-symlinks.sh'",
"packages/quill/packages/*/src/**/*.{ts,tsx,css}": "sh -c 'git diff --cached --name-only | grep -q \"^packages/quill/.*AGENTS\\\\.md$\" || printf \"\\n\\033[33mWarning: quill component sources changed without an AGENTS.md update.\\nIf variants, composition, or spacing changed, update the consumer guide (packages/quill/packages/<pkg>/AGENTS.md) in the same PR.\\033[0m\\n\\n\"'",
"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",
"nodejs/**/*.{js,jsx,mjs,mts,ts,tsx}": "bin/hogli format:nodejs",
"funnel-udf/**/*.rs": "bin/hogli format:rust",
"!(posthog/hogql/grammar/*|posthog/personhog_client/proto/generated/*|products/*/skills/*/scripts/*)*.{py,pyi}": [
"bin/hogli lint:python:fix",
"bin/hogli format:python",
"uv run --no-sync ty check"
],
"*.{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@10.29.3"
}