forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[js] update a few packages (microsoft#18499)
### Description [js] update a few packages - update semver - update reference of onnx_proto to local folder in order to upgrade [email protected] Resolve AB#18513
- Loading branch information
Showing
8 changed files
with
10,341 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!onnx.js | ||
!onnx.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ONNX protobuf | ||
|
||
This directory contains generated protobuf definition for onnx: | ||
|
||
- onnx.js | ||
- onnx.d.ts | ||
|
||
These files are generated from [a fork of onnx-proto](https://github.com/fs-eire/onnx-proto/tree/update-v9). | ||
|
||
The ONNX protobuf uses [email protected], which depends on [email protected], the version contains 2 bugs: | ||
|
||
- type export does not work with commonjs. described in https://github.com/dcodeIO/long.js/pull/124. added a "postinstall" script to fix. | ||
- in the generated typescript declaration file 'onnx.d.ts', the following line: | ||
```ts | ||
import Long = require("long"); | ||
``` | ||
need to be replaced to fix type import error: | ||
```ts | ||
import Long from "long"; | ||
``` | ||
this replacement is done and code format is also applied to file 'onnx.d.ts'. |
Oops, something went wrong.