Skip to content

Commit

Permalink
fix(publishing): remove tsconfig.tsbuildinfo (#8637)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar authored Jun 15, 2023
1 parent d934a8e commit 7542c78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/release/releaseCommand.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'

import boxen from 'boxen'
import { Octokit } from 'octokit'
import { rimraf } from 'rimraf'
import { cd, chalk, question, $, fs } from 'zx'

import { handler as generateReleaseNotes } from './generateReleaseNotesCommand.mjs'
Expand Down Expand Up @@ -412,6 +413,8 @@ async function releaseMajorOrMinor() {
await $`git commit -am "chore: temporary update to workspaces"`
console.log()

await removeTSConfigTSBuildInfo()

// ------------------------
try {
await $`yarn lerna publish from-package`
Expand Down Expand Up @@ -573,6 +576,8 @@ async function releasePatch() {
await $`git commit -am "chore: temporary update to workspaces"`
console.log()

await removeTSConfigTSBuildInfo()

// ------------------------
try {
await $`yarn lerna publish from-package`
Expand Down Expand Up @@ -787,3 +792,7 @@ async function versionDocs() {
await $`git commit -m "Version docs to ${nextDocsVersion}"`
await cd('../')
}

async function removeTSConfigTSBuildInfo() {
await rimraf('packages/**/dist/tsconfig.tsbuildinfo')
}

0 comments on commit 7542c78

Please sign in to comment.