Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/e2b-dev/e2b
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva committed Nov 7, 2023
2 parents 76be2aa + d24953b commit dac1c62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"common-tags": "^1.8.2",
"ignore": "^5.2.4",
"open": "^9.1.0",
"strip-ansi": "^7.1.0",
"tar-fs": "^3.0.4",
"update-notifier": "5.1.0",
"yup": "^1.3.2"
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/src/commands/template/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as commonTags from 'common-tags'
import * as fs from 'fs'
import * as path from 'path'
import * as e2b from '@e2b/sdk'
import * as stripAnsi from 'strip-ansi'

import { wait } from 'src/utils/wait'
import { ensureAccessToken } from 'src/api'
Expand Down Expand Up @@ -205,7 +206,7 @@ async function waitForBuildFinish(
switch (template.data.status) {
case 'building':
template.data.logs.forEach((line) =>
process.stdout.write(asBuildLogs(line)),
process.stdout.write(asBuildLogs(stripAnsi.default(line))),
)
break
case 'ready':
Expand All @@ -218,7 +219,7 @@ async function waitForBuildFinish(

case 'error':
template.data.logs.forEach((line) =>
process.stdout.write(asBuildLogs(line)),
process.stdout.write(asBuildLogs(stripAnsi.default(line))),
)
throw new Error(
`\n❌ Building sandbox template ${asFormattedSandboxTemplate(
Expand Down
13 changes: 4 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dac1c62

Please sign in to comment.