2023-03-30 19:58:28 -06:00
|
|
|
{
|
2023-06-22 10:28:36 -06:00
|
|
|
"name": "native-utils",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"main": "built/index.js",
|
|
|
|
"types": "built/index.d.ts",
|
|
|
|
"napi": {
|
|
|
|
"name": "native-utils",
|
|
|
|
"triples": {
|
|
|
|
"additional": [
|
|
|
|
"aarch64-apple-darwin",
|
|
|
|
"aarch64-linux-android",
|
|
|
|
"aarch64-unknown-linux-gnu",
|
|
|
|
"aarch64-unknown-linux-musl",
|
|
|
|
"aarch64-pc-windows-msvc",
|
|
|
|
"armv7-unknown-linux-gnueabihf",
|
|
|
|
"x86_64-unknown-linux-musl",
|
|
|
|
"x86_64-unknown-freebsd",
|
|
|
|
"i686-pc-windows-msvc",
|
|
|
|
"armv7-linux-androideabi",
|
|
|
|
"universal-apple-darwin"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"license": "MIT",
|
|
|
|
"devDependencies": {
|
|
|
|
"@napi-rs/cli": "2.16.1",
|
|
|
|
"ava": "5.1.1"
|
|
|
|
},
|
|
|
|
"ava": {
|
|
|
|
"timeout": "3m"
|
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"node": ">= 10"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"artifacts": "napi artifacts",
|
2023-07-24 01:57:15 -06:00
|
|
|
"build": "yarn build:napi && yarn build:migration",
|
2023-06-21 20:58:02 -06:00
|
|
|
"build:napi": "napi build --features napi --platform --release ./built/",
|
2023-06-24 01:59:27 -06:00
|
|
|
"build:migration": "cargo build --locked --release --manifest-path ./migration/Cargo.toml && cp ./target/release/migration ./built/migration",
|
2023-06-22 10:28:36 -06:00
|
|
|
"build:debug": "napi build --platform ./built/ && cargo build --manifest-path ./migration/Cargo.toml",
|
|
|
|
"prepublishOnly": "napi prepublish -t npm",
|
2023-07-24 01:57:15 -06:00
|
|
|
"test": "yarn cargo:test && yarn build:napi && ava",
|
2023-06-22 10:28:36 -06:00
|
|
|
"universal": "napi universal",
|
|
|
|
"version": "napi version",
|
2023-06-02 22:36:51 -06:00
|
|
|
"format": "cargo fmt --all",
|
2023-07-16 16:32:32 -06:00
|
|
|
"lint": "cargo clippy --fix",
|
2023-07-24 01:57:15 -06:00
|
|
|
"cargo:test": "yarn cargo:unit && yarn cargo:integration",
|
2023-06-22 10:28:36 -06:00
|
|
|
"cargo:unit": "cargo test unit_test && cargo test -F napi unit_test",
|
|
|
|
"cargo:integration": "cargo test -F noarray int_test -- --test-threads=1"
|
|
|
|
}
|
2023-03-30 19:58:28 -06:00
|
|
|
}
|