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
140 lines (140 loc) · 5.95 KB
/
package.json
File metadata and controls
140 lines (140 loc) · 5.95 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
{
"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": ">=24 <25"
},
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
"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": "pnpm --filter=@posthog/frontend run format",
"// 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}\""
},
"dependencies": {
"concurrently": "^5.3.0",
"fuse.js": "^6.6.2",
"husky": "^7.0.4",
"lint-staged": "~15.4.3",
"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",
"orval": "8.0.0-rc.5",
"oxlint": "^1.8.0",
"playwright": "1.45.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",
"turbo": "^2.4.2"
},
"optionalDependencies": {
"fsevents": "^2.3.3"
},
"pnpm": {
"overrides": {
"typescript": "5.2.2",
"node-forge": "1.3.2",
"pbkdf2": ">=3.1.3",
"cipher-base": ">=1.0.5",
"sha.js": ">=2.4.12",
"form-data": ">=4.0.4"
},
"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": [
"re2",
"node-gyp",
"node-rdkafka",
"@parcel/watcher",
"msgpackr-extract",
"@swc/core",
"esbuild",
"core-js-pure",
"core-js",
"msw",
"unrs-resolver",
"protobufjs",
"cpu-features",
"lz4",
"workerd",
"sharp",
"ssh2",
"lmdb"
]
},
"lint-staged": {
"*.{json,yaml,yml}": "bin/hogli format:yaml",
"*.{css,scss}": "bin/hogli format:css",
"{playwright,frontend,products,common,ee}/**/*.{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/*)*.{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"
]
},
"browser": {
"path": "path-browserify"
}
}