Skip to content

Commit

Permalink
chore: v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Mar 20, 2023
1 parent 6e6463d commit 8f3e452
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const release = async () => {

const isReleaseRoot = argv?.root
if (isReleaseRoot) {
// build
await $`pnpm build`

const optionalDependencies = dirs.reduce<Record<string, string>>(
(memo, cur) => {
const arch = path.basename(cur)
Expand Down Expand Up @@ -85,7 +88,7 @@ const release = async () => {
if (!fs.existsSync(sourcePath)) {
// ensure index.js
const isIndex = file === 'index.js'
if (!isIndex) {
if (isIndex) {
throw new Error(`File not found: ${sourcePath}`)
}
console.log(chalk.yellow(`File not found: ${sourcePath}, skip copy`))
Expand Down

0 comments on commit 8f3e452

Please sign in to comment.