-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathpackage.json
More file actions
157 lines (157 loc) · 7.15 KB
/
package.json
File metadata and controls
157 lines (157 loc) · 7.15 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"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:python && pnpm 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",
"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",
"mypy-baseline-sync": "TEST=1 mypy . | mypy-baseline sync",
"mypy-check": "TEST=1 mypy . | mypy-baseline filter",
"// DEPRECATED - use hogli format:python instead": "",
"format:backend": "./bin/ruff.sh format .",
"// DEPRECATED - use hogli format:js instead": "",
"format:frontend": "oxfmt --check \"{products,frontend/src,docs}/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
"format:frontend:check": "pnpm run format:frontend -- --check",
"// 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",
"// 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",
"lint": "pnpm lint:js && pnpm lint:css",
"lint:js": "oxlint --quiet",
"lint:css": "stylelint \"(frontend|products)/**/*.{css,scss}\"",
"test:unit": "pnpm --filter=@posthog/frontend test"
},
"dependencies": {
"concurrently": "catalog:",
"fuse.js": "catalog:",
"husky": "catalog:",
"lint-staged": "catalog:",
"uuid": "^10.0.0"
},
"devDependencies": {
"@parcel/packager-ts": "catalog:",
"@parcel/transformer-typescript-types": "catalog:",
"@types/uuid": "^10.0.0",
"markdownlint-cli2": "^0.18.1",
"oxfmt": "catalog:",
"oxlint": "^1.8.0",
"playwright": "1.45.0",
"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",
"turbo": "^2.4.2"
},
"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\"'",
"products/**/manifest.tsx": [
"bin/hogli format:js",
"sh -c 'pnpm build:products && git add frontend/src/products.tsx frontend/src/products.json'"
],
"!(**/.sqlx/**)*.{json,yaml,yml}": "bin/hogli format:yaml",
"*.{css,scss}": "bin/hogli format:css",
"{playwright,frontend,products,common,ee,services,docs}/**/*.{js,jsx,mjs,ts,tsx}": "bin/hogli format:js",
"nodejs/**/*.{js,jsx,mjs,ts,tsx}": "bin/hogli format:nodejs",
"funnel-udf/**/*.rs": "bin/hogli format:rust",
"!(posthog/hogql/grammar/*|posthog/personhog_client/proto/generated/*)*.{py,pyi}": [
"bin/hogli lint:python:fix",
"bin/hogli format:python"
],
"*.{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",
"pnpm": {
"// Fix React version to a fixed known good version across the monorepo": "",
"overrides": {
"@modelcontextprotocol/sdk": "^1.26.0",
"@types/react": "18.3.27",
"@types/react-dom": "18.3.7",
"cipher-base": ">=1.0.5",
"d3-geo": ">=3.1.0",
"d3-selection": ">=3.0.0",
"d3-zoom": ">=3.0.0",
"form-data": ">=4.0.4",
"node-forge": "1.3.2",
"pbkdf2": ">=3.1.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"sha.js": ">=2.4.12",
"typescript": "5.6.3"
},
"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"
},
"// Known dependencies that we need preinstall scripts for, add new ones with caution": "",
"onlyBuiltDependencies": [
"@modelcontextprotocol/ext-apps",
"@parcel/watcher",
"chartjs-plugin-stacked100",
"@swc/core",
"core-js",
"core-js-pure",
"cpu-features",
"esbuild",
"lmdb",
"lz4",
"msgpackr-extract",
"msw",
"node-gyp",
"node-rdkafka",
"protobufjs",
"re2",
"sharp",
"ssh2",
"unrs-resolver",
"workerd"
]
}
}