Back to Napi Rs

Universalize

cli/docs/universalize.md

1.0.01.7 KB
Original Source

Universalize

This file is generated by cli/codegen. Do not edit this file manually.

Combile built binaries into one universal binary

Usage

sh
# CLI
napi universalize [--options]
typescript
// Programatically
import { NapiCli } from '@napi-rs/cli'

new NapiCli().universalize({
  // options
})

Options

OptionsCLI Optionstyperequireddefaultdescription
--help,-hget help
cwd--cwdstringfalseprocess.cwd()The working directory of where napi command will be executed in, all other paths options are relative to this path
configPath--config-path,-cstringfalsePath to napi config json file
packageJsonPath--package-json-pathstringfalse'package.json'Path to package.json
outputDir--output-dir,-ostringfalse'./'Path to the folder where all built .node files put, same as --output-dir of build command