Skip napi prepublish/artifacts commands that require GitHub API auth. Instead, create platform package.json files and copy binaries directly. Add optionalDependencies to main package so npm/bun auto-selects the right binary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
898 B
JSON
41 lines
898 B
JSON
{
|
|
"name": "@firecrawl/pdf-inspector-js",
|
|
"version": "0.2.0",
|
|
"main": "index.js",
|
|
"types": "index.d.ts",
|
|
"license": "MIT",
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/firecrawl/pdf-inspector"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://npm.pkg.github.com",
|
|
"access": "public"
|
|
},
|
|
"napi": {
|
|
"binaryName": "pdf-inspector",
|
|
"targets": [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-apple-darwin"
|
|
],
|
|
"package": {
|
|
"name": "@firecrawl/pdf-inspector-js"
|
|
}
|
|
},
|
|
"optionalDependencies": {
|
|
"@firecrawl/pdf-inspector-js-linux-x64-gnu": "0.2.0",
|
|
"@firecrawl/pdf-inspector-js-darwin-arm64": "0.2.0"
|
|
},
|
|
"scripts": {
|
|
"build": "napi build --platform --release",
|
|
"build:debug": "napi build --platform"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^3.4.1"
|
|
}
|
|
}
|