Skip to content

Commit 1a21ae0

Browse files
authored
[5.4] Fix wrong variable in build script (joomla#46170)
1 parent 24698ba commit 1a21ae0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/build-modules-js/compress.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function getFiles(path) {
1313
// Get files within the current directory
1414
return (await readdir(path, { withFileTypes: true, recursive: true }))
1515
.filter((file) => !file.isDirectory() && ['.js', '.css'].includes(extname(file.name)))
16-
.map((file) => `${file.path}/${file.name}`);
16+
.map((file) => `${file.parentPath}/${file.name}`);
1717
}
1818

1919
/**

build/build-modules-js/stylesheets/css-versioning.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const cssVersioningVendor = async () => {
9494

9595
const cssFiles = (await readdir(`${RootPath}/media/vendor`, { withFileTypes: true, recursive: true }))
9696
.filter((file) => (!file.isDirectory() && extname(file.name) === '.css'))
97-
.map((file) => `${file.path}/${file.name}`);
97+
.map((file) => `${file.parentPath}/${file.name}`);
9898

9999
Promise.all(cssFiles.map((file) => fixVersion(file)))
100100
.then(() => bench.stop());

0 commit comments

Comments
 (0)