Skip to content

Commit

Permalink
fix: monorepo prepublish bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed May 15, 2024
1 parent e37d403 commit aafbd73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/base/scripts/prepublish.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { isMonorepoRoot, packageJson } = require('../util/findUps.cjs')

exports.run = async function (args = []) {
if (isMonorepoRoot && packageJson.name !== '@jcoreio/toolchains') {
await execa('pnpm', ['run', '-r', 'prepublish'])
await execa('pnpm', ['run', '-r', 'tc', 'prepublish'])
} else {
const { scripts } = require('./toolchain.cjs')
await execa('tc', ['check'])
Expand Down
2 changes: 1 addition & 1 deletion packages/base/scripts/upgrade.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function upgrade([version] = []) {
...toolchains.map((t) => `${t}@^${version}`),
]
)
if (monorepoProjectDir) await execa('pnpm', ['-r', 'run', 'tc', 'migrate'])
if (monorepoProjectDir) await execa('pnpm', ['run', '-r', 'tc', 'migrate'])
else await execa('tc', ['migrate'])
}

Expand Down

0 comments on commit aafbd73

Please sign in to comment.