We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e6463d commit 8f3e452Copy full SHA for 8f3e452
1 file changed
scripts/release.ts
@@ -44,6 +44,9 @@ const release = async () => {
44
45
const isReleaseRoot = argv?.root
46
if (isReleaseRoot) {
47
+ // build
48
+ await $`pnpm build`
49
+
50
const optionalDependencies = dirs.reduce<Record<string, string>>(
51
(memo, cur) => {
52
const arch = path.basename(cur)
@@ -85,7 +88,7 @@ const release = async () => {
85
88
if (!fs.existsSync(sourcePath)) {
86
89
// ensure index.js
87
90
const isIndex = file === 'index.js'
- if (!isIndex) {
91
+ if (isIndex) {
92
throw new Error(`File not found: ${sourcePath}`)
93
}
94
console.log(chalk.yellow(`File not found: ${sourcePath}, skip copy`))
0 commit comments