diff --git a/cli/src/artifacts.ts b/cli/src/artifacts.ts index f6bc8577..53b7f4f3 100644 --- a/cli/src/artifacts.ts +++ b/cli/src/artifacts.ts @@ -11,6 +11,10 @@ import { readFileAsync, writeFileAsync } from './utils' const debug = debugFactory('artifacts') export class ArtifactsCommand extends Command { + static usage = Command.Usage({ + description: 'Copy artifacts from Github Actions into specified dir', + }) + @Command.String('-d,--dir') sourceDir = 'artifacts' diff --git a/cli/src/build.ts b/cli/src/build.ts index 7f5ff343..20cc1c04 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -14,7 +14,7 @@ const debug = debugFactory('build') export class BuildCommand extends Command { static usage = Command.Usage({ - description: 'Copy native module into specified dir', + description: 'Build and copy native module into specified dir', }) @Command.Boolean(`--platform`) diff --git a/cli/src/create-npm-dir.ts b/cli/src/create-npm-dir.ts index b3231faf..67e189e1 100644 --- a/cli/src/create-npm-dir.ts +++ b/cli/src/create-npm-dir.ts @@ -13,6 +13,10 @@ import { writeFileAsync } from './utils' const debug = debugFactory('create-npm-dir') export class CreateNpmDirCommand extends Command { + static usage = Command.Usage({ + description: 'Create npm packages dir for platforms', + }) + @Command.String('-t,--target') targetDir!: string diff --git a/cli/src/index.ts b/cli/src/index.ts index 60d393b0..67b0b4cb 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -10,7 +10,7 @@ import { PrePublishCommand } from './pre-publish' import { VersionCommand } from './version' const cli = new Cli({ - binaryName: 'bin', + binaryName: 'napi', binaryVersion: require('../package.json').version, }) diff --git a/cli/src/version.ts b/cli/src/version.ts index 4f45f4f0..8dc73c0a 100644 --- a/cli/src/version.ts +++ b/cli/src/version.ts @@ -11,6 +11,10 @@ import { updatePackageJson } from './update-package' const debug = debugFactory('version') export class VersionCommand extends Command { + static usage = Command.Usage({ + description: 'Update versions in created npm dir', + }) + static async updatePackageJson(prefix: string, configFileName?: string) { const { version, platforms } = getNapiConfig(configFileName) for (const platformDetail of platforms) {