File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import { $ } from "execa";
55import { packagePrefix } from "@/scripts/project.js" ;
66import { installPackage } from "@/scripts/tasks/installPackage.js" ;
77
8+ // Not to be run in CI.
9+
810await installPackage ( ) ;
911
10- const tempPath = `/tmp/${ packagePrefix } / tests` ;
12+ const tempPath = `/tmp/${ packagePrefix } tests` ;
1113const $$ = $ ( { stdio : "inherit" , verbose : "full" , cwd : tempPath } ) ;
1214
1315const reset = async ( path : string ) => {
@@ -24,3 +26,12 @@ await reset(tempPath);
2426await $$ `create-devcontainer typescript` ;
2527await $$ `devcontainer up --remove-existing-container --workspace-folder ${ tempPath } ` ;
2628await $$ `devcontainer exec --workspace-folder ${ tempPath } pnpm lint` ;
29+
30+ // https://github.com/devcontainers/cli/issues/386
31+ await rm ( `${ tempPath } /.devcontainer/Dockerfile` ) ;
32+ console . log ( "cleaning up..." ) ;
33+ await $ ( {
34+ cwd : tempPath ,
35+ reject : false ,
36+ stdio : "ignore" ,
37+ } ) `devcontainer up --remove-existing-container --workspace-folder ${ tempPath } ` ;
You can’t perform that action at this time.
0 commit comments