From f1baab7936e4627dc94755e190535f85bd521557 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Mon, 14 Apr 2025 09:59:00 +0100 Subject: [PATCH] Fix: Path resolution to root in migrations scripts (fixes #3671) --- grunt/helpers/Framework.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grunt/helpers/Framework.js b/grunt/helpers/Framework.js index e9f6bda48..c069ecbdf 100644 --- a/grunt/helpers/Framework.js +++ b/grunt/helpers/Framework.js @@ -42,9 +42,9 @@ class Framework { /** @type {string} */ this.rootPath = rootPath.replace(/\\/g, '/'); /** @type {string} */ - this.outputPath = path.join(this.rootPath, outputPath).replace(/\\/g, '/'); + this.outputPath = path.resolve(this.rootPath, outputPath).replace(/\\/g, '/'); /** @type {string} */ - this.sourcePath = path.join(this.rootPath, sourcePath).replace(/\\/g, '/'); + this.sourcePath = path.resolve(this.rootPath, sourcePath).replace(/\\/g, '/'); /** @type {string} */ this.courseDir = courseDir; /** @type {function} */