2023-03-31 10:58:28 +09:00
|
|
|
{
|
2023-06-23 01:28:36 +09: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-06-22 11:58:02 +09:00
|
|
|
"build": "pnpm run build:napi && pnpm run build:migration",
|
|
|
|
"build:napi": "napi build --features napi --platform --release ./built/",
|
2023-08-02 01:52:00 +09:00
|
|
|
"build:migration": "cargo build --locked --release --manifest-path ./migration/Cargo.toml && cp -v ./target/release/migration ./built/migration",
|
2023-07-31 05:27:13 +09:00
|
|
|
"build:debug": "napi build --features napi --platform ./built/ && cargo build --locked --manifest-path ./migration/Cargo.toml && cp -v ./target/debug/migration ./built/migration",
|
2023-06-23 01:28:36 +09:00
|
|
|
"prepublishOnly": "napi prepublish -t npm",
|
|
|
|
"test": "pnpm run cargo:test && pnpm run build:napi && ava",
|
|
|
|
"universal": "napi universal",
|
|
|
|
"version": "napi version",
|
2023-09-02 08:32:41 +09:00
|
|
|
"format": "cargo fmt --all -- --check",
|
|
|
|
"lint": "cargo clippy --fix --allow-dirty --allow-staged && cargo fmt --all -- --check",
|
2023-06-03 13:40:51 +09:00
|
|
|
"cargo:test": "pnpm run cargo:unit && pnpm run cargo:integration",
|
2023-06-23 01:28:36 +09: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-31 10:58:28 +09:00
|
|
|
}
|