Skip to content

Commit

Permalink
docs(cli): fix typo (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
naskya committed May 13, 2024
1 parent ca2cd5c commit 335d7ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/codegen/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const BUILD_OPTIONS: CommandSchema = {
name: 'jsBinding',
type: 'string',
description:
'Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output_dir`.',
'Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output-dir`.',
long: 'js',
},
{
Expand All @@ -196,7 +196,7 @@ const BUILD_OPTIONS: CommandSchema = {
name: 'dts',
type: 'string',
description:
'Path and filename of generated type def file. Relative to `--output_dir`',
'Path and filename of generated type def file. Relative to `--output-dir`',
},
{
name: 'dtsHeader',
Expand Down
4 changes: 2 additions & 2 deletions cli/docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ new NapiCli().build({
| platform | --platform | boolean | false | | Add platform triple to the generated nodejs binding file, eg: `[name].linux-x64-gnu.node` |
| jsPackageName | --js-package-name | string | false | | Package name in generated js binding file. Only works with `--platform` flag |
| constEnum | --const-enum | boolean | false | | Whether generate const enum for typescript bindings |
| jsBinding | --js | string | false | | Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output_dir`. |
| jsBinding | --js | string | false | | Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output-dir`. |
| noJsBinding | --no-js | boolean | false | | Whether to disable the generation JS binding file. Only works with `--platform` flag. |
| dts | --dts | string | false | | Path and filename of generated type def file. Relative to `--output_dir` |
| dts | --dts | string | false | | Path and filename of generated type def file. Relative to `--output-dir` |
| dtsHeader | --dts-header | string | false | | Custom file header for generated type def file. Only works when `typedef` feature enabled. |
| noDtsHeader | --no-dts-header | boolean | false | | Whether to disable the default file header for generated type def file. Only works when `typedef` feature enabled. |
| strip | --strip,-s | boolean | false | | Whether strip the library to achieve the minimum file size |
Expand Down
8 changes: 4 additions & 4 deletions cli/src/def/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export abstract class BaseBuildCommand extends Command {

jsBinding?: string = Option.String('--js', {
description:
'Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output_dir`.',
'Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output-dir`.',
})

noJsBinding?: boolean = Option.Boolean('--no-js', {
Expand All @@ -67,7 +67,7 @@ export abstract class BaseBuildCommand extends Command {

dts?: string = Option.String('--dts', {
description:
'Path and filename of generated type def file. Relative to `--output_dir`',
'Path and filename of generated type def file. Relative to `--output-dir`',
})

dtsHeader?: string = Option.String('--dts-header', {
Expand Down Expand Up @@ -215,15 +215,15 @@ export interface BuildOptions {
*/
constEnum?: boolean
/**
* Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output_dir`.
* Path and filename of generated JS binding file. Only works with `--platform` flag. Relative to `--output-dir`.
*/
jsBinding?: string
/**
* Whether to disable the generation JS binding file. Only works with `--platform` flag.
*/
noJsBinding?: boolean
/**
* Path and filename of generated type def file. Relative to `--output_dir`
* Path and filename of generated type def file. Relative to `--output-dir`
*/
dts?: string
/**
Expand Down

0 comments on commit 335d7ae

Please sign in to comment.