refactor dependencies

pull/115/head
Vladimir Mandic 2022-07-25 08:20:59 -04:00
parent 8e7061a9aa
commit f946780bab
3 changed files with 35 additions and 31 deletions

5
.npmrc
View File

@ -1 +1,4 @@
force = true force=true
production=true
legacy-peer-deps=true
strict-peer-dependencies=false

View File

@ -314,6 +314,8 @@ Pretrained models and their weights are includes in `./model`.
## Test & Dev Web Server ## Test & Dev Web Server
To install development dependencies, use `npm install --production=false`
Built-in test&dev web server can be started using Built-in test&dev web server can be started using
```shell ```shell
@ -389,7 +391,7 @@ cd face-api
Then install all dependencies and run rebuild: Then install all dependencies and run rebuild:
```shell ```shell
npm install npm install --production=false
npm run build npm run build
``` ```

View File

@ -1,6 +1,6 @@
{ {
"name": "@vladmandic/face-api", "name": "@vladmandic/face-api",
"version": "1.6.11", "version": "1.7.0",
"description": "FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS", "description": "FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS",
"sideEffects": false, "sideEffects": false,
"main": "dist/face-api.node.js", "main": "dist/face-api.node.js",
@ -41,43 +41,42 @@
"tensorflowjs", "tensorflowjs",
"tfjs" "tfjs"
], ],
"devDependencies": { "optionalDependencies": {
"@canvas/image": "^1.0.1", "@canvas/image": "^1.0.1",
"@microsoft/api-extractor": "^7.24.1", "canvas": "^2.9.3",
"@tensorflow/tfjs": "^3.18.0", "node-fetch": "^3.2.9"
"@tensorflow/tfjs-backend-cpu": "^3.18.0", },
"@tensorflow/tfjs-backend-wasm": "^3.18.0", "devDependencies": {
"@tensorflow/tfjs-backend-webgl": "^3.18.0", "@microsoft/api-extractor": "^7.28.6",
"@tensorflow/tfjs-backend-webgpu": "0.0.1-alpha.11", "@tensorflow/tfjs": "^3.19.0",
"@tensorflow/tfjs-converter": "^3.18.0", "@tensorflow/tfjs-backend-cpu": "^3.19.0",
"@tensorflow/tfjs-core": "^3.18.0", "@tensorflow/tfjs-backend-wasm": "^3.19.0",
"@tensorflow/tfjs-data": "^3.18.0", "@tensorflow/tfjs-backend-webgl": "^3.19.0",
"@tensorflow/tfjs-layers": "^3.18.0", "@tensorflow/tfjs-backend-webgpu": "0.0.1-alpha.12",
"@tensorflow/tfjs-node": "^3.18.0", "@tensorflow/tfjs-converter": "^3.19.0",
"@tensorflow/tfjs-node-gpu": "^3.18.0", "@tensorflow/tfjs-core": "^3.19.0",
"@types/node": "^17.0.35", "@tensorflow/tfjs-data": "^3.19.0",
"@types/offscreencanvas": "^2019.6.4", "@tensorflow/tfjs-layers": "^3.19.0",
"@typescript-eslint/eslint-plugin": "^5.26.0", "@tensorflow/tfjs-node": "^3.19.0",
"@typescript-eslint/parser": "^5.26.0", "@tensorflow/tfjs-node-gpu": "^3.19.0",
"@vladmandic/build": "^0.7.4", "@types/node": "^18.6.1",
"@vladmandic/pilogger": "^0.4.4", "@types/offscreencanvas": "^2019.7.0",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"@vladmandic/build": "^0.7.7",
"@vladmandic/pilogger": "^0.4.5",
"@vladmandic/tfjs": "github:vladmandic/tfjs", "@vladmandic/tfjs": "github:vladmandic/tfjs",
"canvas": "^2.9.1", "esbuild": "^0.14.50",
"chokidar": "^3.5.3", "eslint": "^8.20.0",
"dayjs": "^1.11.2",
"esbuild": "^0.14.39",
"eslint": "^8.16.0",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-json": "^3.1.0", "eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0", "eslint-plugin-promise": "^6.0.0",
"node-fetch": "^3.2.4",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"seedrandom": "^3.0.5", "seedrandom": "^3.0.5",
"simple-git": "^3.7.1",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"typedoc": "^0.22.15", "typedoc": "^0.23.9",
"typescript": "4.6.4" "typescript": "4.7.4"
} }
} }