From e0cda43724d65ce122c581fe25c53c91a2086c25 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Mon, 18 Nov 2024 04:51:14 +0100 Subject: [PATCH] Change pattern for telling if linked --- src/bin/tools/runPrettier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/tools/runPrettier.ts b/src/bin/tools/runPrettier.ts index 2e1750d1..ca1e0213 100644 --- a/src/bin/tools/runPrettier.ts +++ b/src/bin/tools/runPrettier.ts @@ -50,7 +50,7 @@ export async function getPrettier(): Promise { // of prettier, that is the one of the project, not the one of this repo. // So we do a sketchy eval to bypass ncc. // We make sure to only do that when linking, otherwise we import properly. - if (readThisNpmPackageVersion() === "0.0.0") { + if (readThisNpmPackageVersion().startsWith("0.0.0")) { eval( `${symToStr({ prettier })} = require("${pathResolve(pathJoin(getNodeModulesBinDirPath(), "..", "prettier"))}")` );