Skip to content

Commit 8f3e452

Browse files
committed
chore: v1.0.0
1 parent 6e6463d commit 8f3e452

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/release.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const release = async () => {
4444

4545
const isReleaseRoot = argv?.root
4646
if (isReleaseRoot) {
47+
// build
48+
await $`pnpm build`
49+
4750
const optionalDependencies = dirs.reduce<Record<string, string>>(
4851
(memo, cur) => {
4952
const arch = path.basename(cur)
@@ -85,7 +88,7 @@ const release = async () => {
8588
if (!fs.existsSync(sourcePath)) {
8689
// ensure index.js
8790
const isIndex = file === 'index.js'
88-
if (!isIndex) {
91+
if (isIndex) {
8992
throw new Error(`File not found: ${sourcePath}`)
9093
}
9194
console.log(chalk.yellow(`File not found: ${sourcePath}, skip copy`))

0 commit comments

Comments
 (0)