Skip to content

Commit

Permalink
release 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Apr 28, 2024
1 parent 165ea0c commit f06c412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
git-checks=false
16 changes: 5 additions & 11 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -14,7 +13,7 @@ export const PACKAGE = join(ROOT, 'packages')

const REGISTRY_URL = 'https://registry.npmjs.org'
const jsonMap: Record<string, any> = {}
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'
Expand All @@ -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)

Expand Down

0 comments on commit f06c412

Please sign in to comment.