From b39c8576a6c5a0bd6e676375c238b2998a0751a9 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 20 Feb 2025 16:19:22 +0100 Subject: [PATCH 1/2] 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 --- lib/commands/docker.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }) => { From 7937921267235e8753c81bf107ec6020123a08d2 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 20 Feb 2025 17:05:48 +0100 Subject: [PATCH 2/2] chore(release): Prepare v1.0.0-beta.14 Signed-off-by: Louis Chemineau --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",