UNPKG

3.35 kBJSONView Raw
1{
2 "name": "@tensorflow/tfjs-node",
3 "version": "4.19.0",
4 "main": "dist/index.js",
5 "types": "dist/index.d.ts",
6 "gypfile": true,
7 "repository": {
8 "type": "git",
9 "url": "https://github.com/tensorflow/tfjs.git",
10 "directory": "tfjs-node"
11 },
12 "license": "Apache-2.0",
13 "engines": {
14 "node": ">=8.11.0"
15 },
16 "scripts": {
17 "build": "tsc && npx mkdirp dist/proto && cp src/proto/api_pb.js dist/proto/api_pb.js",
18 "build-ci": "tsc && npx mkdirp dist/proto && cp src/proto/api_pb.js dist/proto/api_pb.js",
19 "build-link-package": "cd ../link-package && yarn build-deps-for tfjs-node",
20 "build-union": "cd ../tfjs && yarn && yarn build",
21 "build-union-ci": "cd ../tfjs && yarn && yarn build-ci",
22 "build-deps": "yarn build-link-package && yarn build-union",
23 "build-deps-ci": "yarn build-link-package && yarn build-union-ci",
24 "build-npm": "./scripts/build-npm.sh",
25 "build-and-upload-addon": "./scripts/build-and-upload-addon.sh",
26 "build-addon-from-source": "node-pre-gyp install --build-from-source",
27 "clean-deps": "rm -rf deps && rm -rf lib",
28 "coverage": "nyc yarn ts-node -P tsconfig.test.json src/run_tests.ts",
29 "enable-gpu": "node scripts/install.js gpu download && yarn && yarn build-addon-from-source",
30 "ensure-cpu-gpu-packages-align": "node scripts/ensure-cpu-gpu-packages-align.js",
31 "format": "clang-format -i -style=Google binding/*.cc binding/*.h",
32 "install": "node scripts/install.js",
33 "install-from-source": "yarn clean-deps && yarn && yarn build-addon-from-source",
34 "link-local": "yalc link",
35 "lint": "tslint -p . -t verbose",
36 "prep": "cd node_modules/@tensorflow/tfjs-core && yarn && yarn build",
37 "publish-local": "yarn prep && yalc push",
38 "publish-npm": "yarn build-and-upload-addon publish && npm publish",
39 "test": "yarn && yarn build-deps && yarn build && ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
40 "test-dev": "tsc && ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
41 "test-ci": "ts-node --transpile-only --skip-ignore -P tsconfig.test.json src/run_tests.ts",
42 "upload-windows-addon": "./scripts/build-and-upload-windows-addon.bat"
43 },
44 "devDependencies": {
45 "@tensorflow/tfjs-core": "4.19.0",
46 "@types/jasmine": "~4.0.3",
47 "@types/node": "^10.5.1",
48 "@types/progress": "^2.0.1",
49 "@types/rimraf": "~2.0.2",
50 "@types/yargs": "^13.0.3",
51 "clang-format": "~1.8.0",
52 "jasmine": "~4.2.1",
53 "node-fetch": "~2.6.1",
54 "nyc": "^15.1.0",
55 "tmp": "^0.0.33",
56 "ts-node": "~8.8.2",
57 "tslint": "~6.1.3",
58 "tslint-no-circular-imports": "^0.7.0",
59 "typescript": "5.0.4",
60 "yalc": "~1.0.0-pre.50",
61 "yargs": "^16.2.0"
62 },
63 "dependencies": {
64 "@mapbox/node-pre-gyp": "1.0.9",
65 "@tensorflow/tfjs": "4.19.0",
66 "adm-zip": "^0.5.2",
67 "google-protobuf": "^3.9.2",
68 "https-proxy-agent": "^2.2.1",
69 "progress": "^2.0.0",
70 "rimraf": "^2.6.2",
71 "tar": "^4.4.6"
72 },
73 "binary": {
74 "module_name": "tfjs_binding",
75 "module_path": "./lib/napi-v{napi_build_version}",
76 "host": "https://storage.googleapis.com/tf-builds/pre-built-binary",
77 "remote_path": "./napi-v{napi_build_version}/{version}/",
78 "napi_versions": [
79 3,
80 4,
81 5,
82 6,
83 7,
84 8
85 ]
86 }
87}