microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.37k stars 2.88k forks source link

onnxruntime-node npm package does not contain .d.ts files #18236

Closed SieR-VR closed 11 months ago

SieR-VR commented 11 months ago

Describe the issue

in package.json, the typing root ("types": "dist/index.d.ts") is exist

> cat node_modules/onnxruntime-node/package.json
{
  "license": "MIT",
  "name": "onnxruntime-node",
  "repository": {
    "url": "https://github.com/Microsoft/onnxruntime.git",
    "type": "git"
  },
  "author": "fs-eire",
  "binary": {
    "module_path": "./bin",
    "host": "https://onnxruntimetestdata.blob.core.windows.net/onnxruntime-node-prebuild/",
    "napi_versions": [
      3
    ]
  },
  "version": "1.16.1",
  "dependencies": {
    "onnxruntime-common": "~1.16.1"
  },
  "scripts": {
    "buildr": "tsc && node ./script/build --config=RelWithDebInfo",
    "prepare": "tsc --build script test .",
    "rebuild": "tsc && node ./script/build --rebuild",
    "rebuildd": "tsc && node ./script/build --rebuild --config=Debug",
    "buildd": "tsc && node ./script/build --config=Debug",
    "build": "tsc && node ./script/build",
    "test": "tsc --build ../scripts && node ../scripts/prepare-onnx-node-tests && mocha ./test/test-main",
    "prepack": "node ./script/prepack",
    "rebuildr": "tsc && node ./script/build --rebuild --config=RelWithDebInfo"
  },
  "keywords": [
    "ONNX",
    "ONNXRuntime",
    "ONNX Runtime"
  ],
  "devDependencies": {
    "@types/minimist": "^1.2.2",
    "cmake-js": "^7.2.1",
    "jsonc": "^2.0.0",
    "minimist": "^1.2.8",
    "node-addon-api": "^6.0.0",
    "onnx-proto": "^8.0.1"
  },
  "main": "dist/index.js",
  "os": [
    "win32",
    "darwin",
    "linux"
  ],
  "types": "dist/index.d.ts",
  "description": "ONNXRuntime Node.js binding"
}

but actual directory:

> ls node_modules/onnxruntime-node/dist

backend.js  backend.js.map  binding.js  binding.js.map  index.js  index.js.map  version.js  version.js.map

To reproduce

npm install onnxruntime-node

Urgency

No response

Platform

Linux

OS Version

5.15.90.1-microsoft-standard-WSL2

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.1

ONNX Runtime API

JavaScript

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

SieR-VR commented 11 months ago

dup #17979