From 4a32970208a052df338b729d396e51f01141ff26 Mon Sep 17 00:00:00 2001 From: azlam Date: Mon, 16 Dec 2024 14:15:14 +1100 Subject: [PATCH] fix(artifact): remove change as part of #128 --- src/core/artifacts/generators/ArtifactGenerator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/artifacts/generators/ArtifactGenerator.ts b/src/core/artifacts/generators/ArtifactGenerator.ts index 4fb5e626b..9daed8d4e 100644 --- a/src/core/artifacts/generators/ArtifactGenerator.ts +++ b/src/core/artifacts/generators/ArtifactGenerator.ts @@ -40,7 +40,8 @@ export default class ArtifactGenerator { fs.copySync(sfpPackage.workingDirectory, sourcePackage); // rimraf.sync(sfpPackage.workingDirectory); // This gives an error in windows "Error: EPERM: operation not permitted, unlink" https://github.com/flxbl-io/sfp/issues/128 - rimraf.moveRemoveSync(sfpPackage.workingDirectory); + await fs.remove(sfpPackage.workingDirectory); + //Modify Source Directory to the new source directory inside the artifact sfpPackage.sourceDir = `source`;