From f06c412308d3e742368576d231eeae1716290f01 Mon Sep 17 00:00:00 2001 From: saqqdy Date: Sun, 28 Apr 2024 13:48:39 +0800 Subject: [PATCH] release 7.0.0 --- .npmrc | 1 + scripts/publish.ts | 16 +++++----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.npmrc b/.npmrc index cf0404245..d92901fa9 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ shamefully-hoist=true strict-peer-dependencies=false +git-checks=false diff --git a/scripts/publish.ts b/scripts/publish.ts index 3bce587f1..029822f00 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -1,6 +1,5 @@ import { execSync } from 'child_process' import { join, sep } from 'path' -import consola from 'consola' import { clone } from 'js-cool' import { readJSONSync, writeJSONSync } from '@node-kit/extra.fs' import { version } from '../package.json' @@ -14,7 +13,7 @@ export const PACKAGE = join(ROOT, 'packages') const REGISTRY_URL = 'https://registry.npmjs.org' const jsonMap: Record = {} -let command = `npm --registry=${REGISTRY_URL} publish --access public` +let command = `pnpm --registry=${REGISTRY_URL} publish -r --access public` if (IS_DRY_RUN) command += ' --dry-run' if (version.includes('rc')) command += ' --tag release' @@ -27,15 +26,10 @@ else if (IS_TEST) { transformPkgJson() -for (const { name, pkgName } of packages) { - const dirName = name.replace(/\./g, sep) - const cwd = name === 'monorepo' ? ROOT : join(PACKAGE, dirName) - execSync(command, { - stdio: 'inherit', - cwd - }) - consola.success(`Published ${pkgName}`) -} +execSync(command, { + stdio: 'inherit', + cwd: ROOT +}) transformPkgJson(true)