File size: 2,927 Bytes
b38c8eb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "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
      ]
    }
  }