napi-rs/cli/docs/universalize.md
forehal a781a4f27e feat(cli): brand new cli tool with both cli and programmatical usage (#1492)
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00

1.5 KiB

Universalize

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

Combile built binaries into one universal binary

Usage

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

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

Options

Options CLI Options type required default description
--help,-h get help
cwd --cwd string false process.cwd() The working directory of where napi command will be executed in, all other paths options are relative to this path
packageJsonPath --package-json-path string false 'package.json' Path to package.json
outputDir --output-dir,-o string false './' Path to the folder where all built .node files put, same as --output-dir of build command