onnxruntime/samples/nodejs/02_create-tensor/package.json
Jon Campbell cd8775f518
Fix Node JS Samples (#23581)
### Description
The Node JS Samples included in the repository have outdated package
references that are broken, which are fixed in this PR.

### Motivation and Context
The samples included in this repository should just work, but sadly do
not. The reason is that they are using very outdated references for the
npm modules. This fix updates the dependencies to the current
onnxruntime-node, which fixes the samples. Also adds a small update to
the .gitignore to exclude the node_modules directories in the samples
directory, which keeps the local repo changelist cleaner.
2025-02-04 19:50:29 -08:00

12 lines
302 B
JSON

{
"name": "02_create-tensor",
"version": "1.0.0",
"description": "This example is a demonstration of basic usage of creating tensors.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"onnxruntime-node": "^1.20.1"
}
}