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>
14 lines
831 B
JSON
14 lines
831 B
JSON
{
|
|
"name": "test-module",
|
|
"version": "1.0.0",
|
|
"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",
|
|
"test": "node ./index.js"
|
|
}
|
|
}
|