From 7c20abe8a6ca43d283d58754b636d4b6cc0d8a07 Mon Sep 17 00:00:00 2001 From: qmhc <40221744+qmhc@users.noreply.github.com> Date: Tue, 30 Jan 2024 11:50:00 +0800 Subject: [PATCH] chore: fix publish pkgDir path --- scripts/publish.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/publish.ts b/scripts/publish.ts index 5f71222..6403c41 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -1,5 +1,3 @@ -import { resolve } from 'node:path' - import minimist from 'minimist' import { logger, publish } from '@vexip-ui/scripts' import { rootDir } from './constant' @@ -15,7 +13,7 @@ const isDryRun = args.dry || args.d const releaseTag = args.tag || args.t publish({ - pkgDir: resolve(rootDir, 'package.json'), + pkgDir: rootDir, isDryRun, releaseTag }).catch(error => {