Files
Gergő Móriczandcapy-ai[bot] fc92ea9ec9 fix(api): prevent /app/native/target leak in Docker image and widen native CI triggers [downstream-sync] (#6083)
- Pass pnpm_config_verify_deps_before_run=false during the API Dockerfile build step so timestamp refreshes from COPY . . on a cached install layer do not re-run pnpm install and rebuild /app/native/target outside its cache mount.
- Copy only runtime native addon files (package.json, index.js, index.d.ts, *.node) into the runtime stage, exclude host-built native artifacts in apps/api/.dockerignore, and verify in the runtime stage that /app/native/target is absent and @mendable/firecrawl-rs loads cleanly.
- Pin golang:1.26 to its multi-arch OCI index digest and verify SHA-256 checksums for the foundationdb-clients (7.3.63) and rustup-init (1.29.3) downloads on amd64 and arm64.
- Replace narrow apps/api/native/* path triggers in .github/workflows/docker-build.yml with apps/api/native/** so Rust source changes run Docker build checks on PRs.
- Add aarch64-unknown-linux-gnu to napi.targets in apps/api/native/package.json.

Downstream-Sync: required

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-27 18:56:13 +01:00

72 lines
1.7 KiB
JSON

{
"name": "@mendable/firecrawl-rs",
"version": "1.0.0",
"description": "Template project for writing node package with napi-rs",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/napi-rs/package-template.git"
},
"license": "AGPL",
"browser": "browser.js",
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"node-addon",
"node-addon-api"
],
"files": [
"index.d.ts",
"index.js",
"browser.js"
],
"napi": {
"binaryName": "firecrawl-rs",
"targets": [
"x86_64-pc-windows-msvc",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu"
]
},
"engines": {
"node": ">= 6.14.2 < 7 || >= 8.11.2 < 9 || >= 9.11.0 < 10 || >= 10.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "oxlint .",
"prepublishOnly": "napi prepublish -t npm",
"version": "napi version",
"install": "pnpm build"
},
"devDependencies": {
"@emnapi/runtime": "^1.5.0",
"@napi-rs/cli": "^3.7.3",
"@taplo/cli": "^0.7.0",
"npm-run-all2": "^8.0.4",
"oxlint": "^1.14.0",
"prettier": "^3.6.2",
"typescript": "^5.9.2"
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
}
}