Skip to content

Commit b39c857

Browse files
committed
fix: Do not depend on the 'path' package for basename
This is causing issues with ESM: "process is not defined". Signed-off-by: Louis Chemineau <[email protected]>
1 parent b87b6a7 commit b39c857

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/commands/docker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { basename } from 'path'
6+
function basename(path: string): string {
7+
return path.split('/').pop() as string
8+
}
9+
710

811
function getContainerName(): Cypress.Chainable<string> {
912
return cy.exec('pwd').then(({ stdout }) => {

0 commit comments

Comments
 (0)