Skip to content

Commit

Permalink
fix: Do not depend on the 'path' package for basename
Browse files Browse the repository at this point in the history
This is causing issues with ESM: "process is not defined".

Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Feb 20, 2025
1 parent b87b6a7 commit b39c857
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/commands/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { basename } from 'path'
function basename(path: string): string {
return path.split('/').pop() as string
}


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

0 comments on commit b39c857

Please # to comment.