Rename reactAppRootDirPath -> projectDirPath and reactAppBuildDirPath -> projectBuildDirPath

This commit is contained in:
Joseph Garrone
2024-06-09 09:03:43 +02:00
parent 6e95dacd3a
commit 3453a17c15
18 changed files with 73 additions and 76 deletions

View File

@ -8,7 +8,7 @@ import * as nodePath from "path";
import { replaceAll } from "../../../tools/String.prototype.replaceAll";
export type BuildOptionsLike = {
reactAppBuildDirPath: string;
projectBuildDirPath: string;
assetsDirPath: string;
urlPathname: string | undefined;
};
@ -50,7 +50,7 @@ export function replaceImportsInJsCode_webpack(params: {
// Example: "static/ or "foo/bar/"
const staticDir = (() => {
let out = pathRelative(
buildOptions.reactAppBuildDirPath,
buildOptions.projectBuildDirPath,
buildOptions.assetsDirPath
);
@ -58,7 +58,7 @@ export function replaceImportsInJsCode_webpack(params: {
if (out === "/") {
throw new Error(
`The assetsDirPath must be a subdirectory of reactAppBuildDirPath`
`The assetsDirPath must be a subdirectory of projectBuildDirPath`
);
}