Merge pull request #97 from the-sun-will-rise-tomorrow/mkdir-path
src/generate.ts: Create the nixExprPath directory if it doesn't exist
This commit is contained in:
@@ -395,6 +395,7 @@ export default async (
|
|||||||
USES_PNP_LINKER: configuration.get("nodeLinker") === "pnp",
|
USES_PNP_LINKER: configuration.get("nodeLinker") === "pnp",
|
||||||
USES_NM_LINKER: configuration.get("nodeLinker") === "node-modules",
|
USES_NM_LINKER: configuration.get("nodeLinker") === "node-modules",
|
||||||
}).replace(/\n\n\n+/g, "\n\n");
|
}).replace(/\n\n\n+/g, "\n\n");
|
||||||
|
await xfs.mkdirpPromise(ppath.dirname(nixExprPath));
|
||||||
await xfs.writeFilePromise(nixExprPath, projectExpr);
|
await xfs.writeFilePromise(nixExprPath, projectExpr);
|
||||||
|
|
||||||
// Create a wrapper if it does not exist yet.
|
// Create a wrapper if it does not exist yet.
|
||||||
|
|||||||
Reference in New Issue
Block a user