Skip to content

Commit

Permalink
Update prepack logging
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jul 18, 2023
1 parent 77ed143 commit 6e1dfca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions prepack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ const main = async (): Promise<void> => {
const version = await injectVersion(
fileURLToPath(new URL(versionFile, import.meta.url))
)

// eslint-disable-next-line no-console
console.log(`✓ Version ${version} injected into ${versionFile}
> tsc --project tsconfig.version.json`)
console.log(`✓ Version ${version} injected into ${versionFile}`)

await $`tsc --project tsconfig.version.json`
const { command } = await $`tsc --project tsconfig.version.json`
// eslint-disable-next-line no-console
console.log(`✓ Rebuilt with '${command}'`)
}

const injectVersion = async (path: string): Promise<string> => {
Expand Down

0 comments on commit 6e1dfca

Please sign in to comment.