Skip to content

Commit 6e1dfca

Browse files
committedJul 18, 2023
Update prepack logging
1 parent 77ed143 commit 6e1dfca

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎prepack.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ const main = async (): Promise<void> => {
1111
const version = await injectVersion(
1212
fileURLToPath(new URL(versionFile, import.meta.url))
1313
)
14-
1514
// eslint-disable-next-line no-console
16-
console.log(`✓ Version ${version} injected into ${versionFile}
17-
18-
> tsc --project tsconfig.version.json`)
15+
console.log(`✓ Version ${version} injected into ${versionFile}`)
1916

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.