From 4b0b0b1323bfe5735dc1d226824009936fc12d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=90=91=E5=A4=9C?= Date: Mon, 22 Jul 2024 10:06:28 +0800 Subject: [PATCH] chore: update declare modules --- index.d.ts | 1 - index.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index d1149a0..55feddc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -5,7 +5,6 @@ export declare function defineCommand(options: Command): Command export declare function run(cmd: Command, args?: Array | undefined | null): void -export const VERSION: string /** * Command context * diff --git a/index.js b/index.js index 4f6b75e..8185ddb 100644 --- a/index.js +++ b/index.js @@ -310,8 +310,7 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { defineCommand, run, VERSION } = nativeBinding +const { defineCommand, run } = nativeBinding module.exports.defineCommand = defineCommand module.exports.run = run -module.exports.VERSION = VERSION