diff --git a/lib/commands/docker.ts b/lib/commands/docker.ts index 5e72eb5b..62b4bad2 100644 --- a/lib/commands/docker.ts +++ b/lib/commands/docker.ts @@ -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 { return cy.exec('pwd').then(({ stdout }) => { diff --git a/package-lock.json b/package-lock.json index d41a9d52..d0b32929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nextcloud/cypress", - "version": "1.0.0-beta.13", + "version": "1.0.0-beta.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@nextcloud/cypress", - "version": "1.0.0-beta.13", + "version": "1.0.0-beta.14", "license": "AGPL-3.0-or-later", "dependencies": { "dockerode": "^4.0.2", diff --git a/package.json b/package.json index 8f638ec5..660f37f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nextcloud/cypress", - "version": "1.0.0-beta.13", + "version": "1.0.0-beta.14", "description": "Nextcloud cypress commands, utils and selectors library", "main": "dist/index.cjs", "module": "dist/index.js",