Back to Napi Rs

Create Npm Dirs

cli/docs/create-npm-dirs.md

1.0.01.9 KB
Original Source

Create Npm Dirs

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

Create npm package dirs for different platforms

Usage

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

new NapiCli().createNpmDirs({
  // 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
npmDir--npm-dirstringfalse'npm'Path to the folder where the npm packages put
dryRun--dry-runbooleanfalsefalseDry run without touching file system