-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
138 lines (138 loc) · 8.06 KB
/
Copy pathpackage.json
File metadata and controls
138 lines (138 loc) · 8.06 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
{
"name": "supervision-js-workspace",
"version": "0.0.0",
"description": "Workspace for the supervision-js core and browser packages.",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/roboflow/supervision-js.git"
},
"homepage": "https://github.com/roboflow/supervision-js#readme",
"bugs": {
"url": "https://github.com/roboflow/supervision-js/issues"
},
"keywords": [
"computer-vision",
"annotations",
"video",
"rendering",
"pixijs",
"mediabunny",
"typescript"
],
"workspaces": [
"packages/trackers",
"packages/core",
"packages/react-native",
"packages/web",
"benchmark/initial",
"benchmark/media-upload",
"demo",
"examples/react-native",
"examples/vanilla"
],
"type": "module",
"license": "MIT",
"engines": {
"node": ">=20.19"
},
"overrides": {
"expo": "57.0.11",
"expo-asset": "57.0.9",
"expo-build-properties": "57.0.9",
"expo-file-system": "57.0.2",
"react": "19.2.8",
"react-dom": "19.2.8",
"react-native": "0.86.2",
"react-native-nitro-image": "0.15.1",
"react-native-nitro-modules": "0.36.5",
"react-native-worklets": "0.10.1",
"uuid": "^11.1.1"
},
"scripts": {
"build": "npm run build -w supervision-js-core && npm run build -w supervision-js-react-native && npm run build -w supervision",
"build:js": "npm run build:js -w supervision-js-core && npm run build:js -w supervision-js-react-native && npm run build:js -w supervision",
"build:types": "npm run build:types -w supervision-js-core && npm run build:types -w supervision-js-react-native && npm run build:types -w supervision",
"clean": "npm run clean -w supervision-js-trackers && npm run clean -w supervision-js-core && npm run clean -w supervision-js-react-native && npm run clean -w supervision",
"dev": "npm run build && concurrently -k -n lib,demo -c cyan,magenta \"npm run dev:lib\" \"npm run dev:demo\"",
"dev:lib": "npm run build -w supervision-js-trackers && concurrently -k -n trackers,core,rn,web -c yellow,blue,green,cyan \"npm run dev -w supervision-js-trackers\" \"npm run dev:local -w supervision-js-core\" \"npm run dev -w supervision-js-react-native\" \"npm run dev -w supervision\"",
"dev:demo": "npm run dev -w demo",
"dev:demo-docs": "npm run build && concurrently -k -n demo,docs -c magenta,blue \"npm run dev:demo\" \"npm run docs:dev:server\"",
"demo:dev": "npm run build && npm run dev:demo",
"demo:build": "npm run build && npm run build -w demo && npm run example:vanilla:build:app && npm run docs:build:typedoc",
"pages:build": "node tools/build-pages.mjs",
"pages:serve": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${RENDER_EXTERNAL_HOSTNAME:-supervision-js-demo.onrender.com} vite preview --outDir dist/pages --host 0.0.0.0 --port ${PORT:-4173}",
"docs:build": "npm run build && npm run docs:build:typedoc",
"docs:build:typedoc": "typedoc && node tools/copy-doc-assets.mjs",
"docs:check": "node --test tools/docs-contract.test.mjs",
"docs:dev": "npm run dev:demo-docs",
"docs:dev:server": "npm run docs:build:typedoc && vite docs/site --host 127.0.0.1 --port 5175",
"docs:serve": "npm run docs:build && vite docs/site --host 127.0.0.1 --port 5175",
"example:vanilla:dev": "npm run build && npm run dev -w examples/vanilla",
"example:vanilla:build": "npm run build && npm run example:vanilla:build:app",
"example:vanilla:build:app": "npm run build -w examples/vanilla",
"example:react-native:dev": "npm run build && npm run dev -w examples/react-native",
"example:react-native:dev-client": "npm run build && npm run dev:client -w examples/react-native",
"example:react-native:dev-client:ios": "npm run build && npm run dev:client:ios -w examples/react-native",
"example:react-native:dev-client:android": "npm run build && npm run dev:client:android -w examples/react-native",
"example:react-native:dev-client:tunnel": "npm run build && npm run dev:client:tunnel -w examples/react-native",
"example:react-native:ios": "npm run build && npm run ios:build -w examples/react-native --",
"example:react-native:android": "npm run build && npm run android:build -w examples/react-native --",
"example:react-native:typecheck": "npm run typecheck -w examples/react-native",
"benchmark:initial:dev": "npm run dev -w benchmark/initial",
"benchmark:initial:build": "npm run build -w benchmark/initial",
"benchmark:media-upload:dev": "vite --config benchmark/media-upload/vite.config.ts --host 127.0.0.1 --port 5178",
"benchmark:media-upload:build": "tsc --noEmit -p benchmark/media-upload/tsconfig.json && vite build --config benchmark/media-upload/vite.config.ts",
"benchmark:masks": "npm run build && node benchmark/masks/run.mjs",
"benchmark:masks:gpu": "npm run benchmark:masks:gpu:build && node benchmark/masks/run-gpu.mjs",
"benchmark:masks:gpu:dev": "vite --config benchmark/masks/gpu/vite.config.ts --host 127.0.0.1 --port 5176",
"benchmark:masks:gpu:build": "tsc --noEmit -p benchmark/masks/gpu/tsconfig.json && vite build --config benchmark/masks/gpu/vite.config.ts",
"fixture:sam3:dev": "npm run build && vite --config tools/sam3-fixture/vite.config.ts",
"fixture:sam3:build": "npm run build && tsc --noEmit -p tools/sam3-fixture/tsconfig.json && vite build --config tools/sam3-fixture/vite.config.ts",
"fixture:sam3:chunk": "node tools/sam3-fixture/chunk-detections.mjs",
"fixture:sam3:create": "node tools/sam3-fixture/create-fixture.mjs",
"fixture:sam3:extract": "node tools/sam3-fixture/extract-frames.mjs",
"fixture:sam3:run": "npm run build -w supervision-js-core && node tools/sam3-fixture/run-sam3.mjs",
"fixture:geometry:create": "npm run build -w supervision-js-core && node tools/geometry-fixture/create-geometry-fixture.mjs",
"typecheck": "npm run typecheck -w supervision-js-trackers && npm run typecheck -w supervision-js-core && npm run build -w supervision-js-core && npm run typecheck -w supervision-js-react-native && npm run build -w supervision-js-react-native && npm run typecheck -w supervision && npm run build -w supervision && tsc --noEmit -p demo/tsconfig.json && tsc --noEmit -p examples/vanilla/tsconfig.json && npm run example:react-native:typecheck",
"boundary:check": "node --test tools/package-boundary.test.mjs",
"test": "vitest run && npm run boundary:check && npm run docs:check && node --test tools/react-runtime-contract.test.mjs tools/release-workflow-contract.test.mjs tools/sam3-fixture/*.test.mjs tools/geometry-fixture/*.test.mjs",
"package:smoke": "node --test tools/package-smoke.test.mjs",
"package:tarball": "node tools/pack-web-tarball.mjs",
"package:tarball:smoke": "node --test tools/tarball-smoke.test.mjs",
"package:publish:dry-run": "npm run package:tarball && npm publish ./artifacts/supervision-*.tgz --access public --tag latest --dry-run",
"test:watch": "vitest",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"verify": "npm run format:check && npm run lint && npm run typecheck && npm run test && npm run build && npm run package:smoke && npm run demo:build && npm run benchmark:initial:build && npm run benchmark:media-upload:build && npm run benchmark:masks:gpu:build",
"postinstall": "patch-package --error-on-fail --error-on-warn",
"prepare": "node -e \"process.exit(process.env.CI || process.env.NODE_ENV === 'production' ? 0 : 1)\" || husky"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml,html,css}": "prettier --write"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^26.1.2",
"concurrently": "^10.0.4",
"eslint": "^10.8.0",
"husky": "^9.1.7",
"lint-staged": "^17.3.0",
"patch-package": "8.0.1",
"prettier": "^3.9.6",
"rollup": "^4.62.4",
"tslib": "^2.8.1",
"typedoc": "^0.28.20",
"typedoc-rhineai-theme": "^1.2.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.66.0",
"vite": "^8.2.1",
"vitest": "^4.1.10"
}
}