FredZhang7's picture
add custom tiny tfjs module for node.js v18+
b38c8eb
raw
history blame
2.93 kB
{
"name": "@tensorflow/tfjs-node",
"version": "3.19.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"gypfile": true,
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/tensorflow/tfjs.git",
"directory": "tfjs-node"
},
"engines": {
"node": ">=8.11.0"
},
"scripts": {
"build": "tsc && npx mkdirp dist/proto && cp src/proto/api_pb.js dist/proto/api_pb.js",
"build-ci": "tsc && npx mkdirp dist/proto && cp src/proto/api_pb.js dist/proto/api_pb.js",
"build-link-package": "cd ../link-package && yarn build-deps-for tfjs-node tfjs",
"build-union": "cd ../tfjs && yarn && yarn build",
"build-union-ci": "cd ../tfjs && yarn && yarn build-ci",
"build-deps": "yarn build-link-package && yarn build-union",
"build-deps-ci": "yarn build-link-package && yarn build-union-ci",
"build-npm": "./scripts/build-npm.sh",
"build-addon": "./scripts/build-and-upload-addon.sh",
"build-addon-from-source": "node-pre-gyp install --build-from-source",
"clean-deps": "rm -rf deps && rm -rf lib",
"coverage": "nyc yarn ts-node -P tsconfig.test.json src/run_tests.ts",
"enable-gpu": "node scripts/install.js gpu download && yarn && yarn build-addon-from-source",
"ensure-cpu-gpu-packages-align": "node scripts/ensure-cpu-gpu-packages-align.js",
"format": "clang-format -i -style=Google binding/*.cc binding/*.h",
"install": "node scripts/install.js",
"install-from-source": "yarn clean-deps && yarn && yarn build-addon-from-source",
"link-local": "yalc link",
"lint": "tslint -p . -t verbose",
"prep": "cd node_modules/@tensorflow/tfjs-core && yarn && yarn build",
"publish-local": "yarn prep && yalc push",
"publish-npm": "npm publish",
"test": "yarn && yarn build-deps && yarn build && ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
"test-dev": "tsc && ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
"test-ci": "ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
"upload-windows-addon": "./scripts/build-and-upload-windows-addon.bat"
},
"dependencies": {
"@mapbox/node-pre-gyp": "1.0.9",
"adm-zip": "^0.5.2",
"google-protobuf": "^3.9.2",
"https-proxy-agent": "^2.2.1",
"progress": "^2.0.0",
"rimraf": "^2.6.2",
"path": "^0.12.7",
"tar": "^4.4.6",
"util": "^0.12.4"
},
"binary": {
"module_name": "tfjs_binding",
"module_path": "./tfnapi-v{napi_build_version}",
"host": "https://storage.googleapis.com/tf-builds/pre-built-binary",
"remote_path": "./tfnapi-v{napi_build_version}/{version}/",
"napi_versions": [
3,
4,
5,
6,
7,
8
]
}
}