Fix usage of dirname instead of basename

This commit is contained in:
Joseph Garrone 2024-06-12 12:01:55 +02:00
parent ba8561d75a
commit bc8165d0ae

View File

@ -13,7 +13,7 @@ import {
join as pathJoin, join as pathJoin,
relative as pathRelative, relative as pathRelative,
sep as pathSep, sep as pathSep,
dirname as pathDirname basename as pathBasename
} from "path"; } from "path";
import * as child_process from "child_process"; import * as child_process from "child_process";
import chalk from "chalk"; import chalk from "chalk";
@ -302,7 +302,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
const filePath = pathJoin( const filePath = pathJoin(
buildContext.cacheDirPath, buildContext.cacheDirPath,
pathDirname(internalFilePath) pathBasename(internalFilePath)
); );
fs.writeFileSync( fs.writeFileSync(