Skip to content

Commit 32f8267

Browse files
committed
fix: install liveness as bundled dependency
1 parent 57d28be commit 32f8267

File tree

5 files changed

+2209
-1440
lines changed

5 files changed

+2209
-1440
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
"**/serve/serve-handler/path-to-regexp": "3.3.0",
8585
"@aws-amplify/data-schema": "^1.19.0",
8686
"@adobe/css-tools": "^4.3.2",
87+
"@babel/core": "^7.22.0",
88+
"@babel/preset-env": "^7.22.0",
89+
"@babel/register": "^7.22.0",
8790
"@sideway/formula": "^3.0.1",
8891
"@types/react": "^18.3.0",
8992
"@types/react-dom": "^18.3.0",
@@ -120,6 +123,7 @@
120123
"tmp": "^0.2.4",
121124
"**/jest/**/js-yaml": "~3.14.2",
122125
"**/@badeball/cypress-cucumber-preprocessor/**/glob": "~10.5.0",
126+
"**/@badeball/cacache/**/glob": "~10.5.0",
123127
"**/@changesets/cli/**/js-yaml": "~3.14.2",
124128
"@tensorflow-models/face-detection/rimraf": "5.0.0"
125129
},

packages/react-liveness/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"@smithy/protocol-http": "^3.0.3",
5858
"@smithy/signature-v4": "5.1.2",
5959
"@smithy/types": "^4.3.1",
60-
"@mediapipe/face_detection": "~0.4.0",
61-
"@tensorflow-models/face-detection": "1.0.2",
60+
"@mediapipe/face_detection": "^0.4.1646425229",
61+
"@tensorflow-models/face-detection": "./packed/tensorflow-models-face-detection-v1.0.3.tgz",
6262
"@tensorflow/tfjs-backend-cpu": "4.11.0",
6363
"@tensorflow/tfjs-backend-wasm": "4.11.0",
6464
"@tensorflow/tfjs-converter": "4.11.0",

packed/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Packed Dependencies
2+
3+
Usually this is avoided as much as possible, but various environment support
4+
requires us to sometimes provide dependencies prepacked.
5+
6+
### List of packed Dependencies
7+
8+
| name | dependency | reason |
9+
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
10+
| tensorflow-models-face-detection-1.0.3.tgz | [@tensorflow-models/face-detection@1.0.3](https://www.npmjs.com/package/@tensorflow-models/face-detection/v/1.0.3) needed for ui-react-liveness | Turbopack compatibility breaks due to typescript configuration |
136 KB
Binary file not shown.

0 commit comments

Comments
 (0)