UNPKG

fossilize

Version:

Create Node SEA binaries across platforms with ease

2 lines 2.21 kB
import l from"fs";import p from"os";import c from"path";function g(e){return{process:e,os:p,fs:l,path:c}}import{buildApplication as f,buildCommand as m}from"@stricli/core";var u=new Set(["false","f","n","no","off","0"]),d=new Set(["true","t","y","yes","on","1"]);function s(e,a){let t=String(e).toLowerCase();return u.has(t)?!1:d.has(t)?!0:a?.strict?null:!!e}var i="fossilize";var r="Create Node SEA binaries across platforms with ease";var n="0.5.0";var b=m({loader:async()=>import("./impl-D3J6SRL3.js"),parameters:{positional:{kind:"tuple",parameters:[{placeholder:"entrypoint",brief:"Path to the file or project to fossilize",parse:String,default:"."}]},flags:{nodeVersion:{kind:"parsed",parse:String,brief:"Node.js version to fossilize with",default:process.env.FOSSILIZE_NODE_VERSION??"local"},platforms:{kind:"parsed",parse:String,brief:"Target platforms to fossilize for",variadic:!0,optional:!0},assets:{kind:"parsed",parse:String,brief:"Any assets to bundle in",variadic:!0,optional:!0},assetManifest:{kind:"parsed",parse:String,brief:"Path to the asset manifest.json from Vite (this will auto discover assets)",optional:!0},outDir:{kind:"parsed",parse:String,brief:"Output directory",default:"dist-bin"},outputName:{kind:"parsed",parse:String,brief:"Output file name (overrides inferred name from package.json)",optional:!0},cacheDir:{kind:"parsed",parse:String,brief:"Cache directory for Node.js binaries",default:process.env.FOSSILIZE_CACHE_DIR??".node-cache"},noCache:{kind:"boolean",brief:"Do not use the cache for Node.js binaries",optional:!0},noBundle:{kind:"boolean",brief:"Do not bundle the entrypoint using esbuild",optional:!1},sign:{kind:"boolean",brief:"Skip signing for macOS and Windows",optional:!1,default:s(process.env.FOSSILIZE_SIGN)},concurrencyLimit:{kind:"parsed",parse:Number,brief:"Limit the number of concurrent downloads or builds",default:process.env.FOSSILIZE_CONCURRENCY_LIMIT??"3"}},aliases:{n:"nodeVersion",d:"outDir",o:"outputName",p:"platforms",a:"assets",m:"assetManifest",l:"concurrencyLimit"}},docs:{brief:r}}),L=f(b,{name:i,scanner:{caseStyle:"allow-kebab-for-camel"},versionInfo:{currentVersion:n}});export{g as a,L as b}; //# sourceMappingURL=chunk-HTU267P3.js.map