2467b7139b
* napi procedural macro for basic rust/JavaScript types * introduce the `compat-mode` for `napi` and `napi-derive` crates for backward compatible * remove #[inline] and let compiler to decide the inline behavior * cli now can produce the `.d.ts` file for native binding * many tests and example for the new procedural macro Co-authored-by: LongYinan <lynweklm@gmail.com>
15 lines
851 B
JSON
15 lines
851 B
JSON
{
|
|
"name": "napi-examples",
|
|
"private": true,
|
|
"main": "./index.node",
|
|
"types": "./type.d.ts",
|
|
"scripts": {
|
|
"build": "node ../../cli/scripts/index.js build --features \"latest\"",
|
|
"build-napi3": "node ../../cli/scripts/index.js build --features \"napi3\"",
|
|
"build-aarch64": "node ../../cli/scripts/index.js build --features \"latest\" --target aarch64-unknown-linux-gnu",
|
|
"build-armv7": "node ../../cli/scripts/index.js build --features \"latest\" --target armv7-unknown-linux-gnueabihf",
|
|
"build-i686": "node ../../cli/scripts/index.js build --features \"latest\" --target i686-pc-windows-msvc",
|
|
"build-i686-release": "node ../../cli/scripts/index.js build --release --features \"latest\" --target i686-pc-windows-msvc",
|
|
"build-release": "node ../../cli/scripts/index.js build --features \"latest\" --release"
|
|
}
|
|
}
|