From 7cc5aa4a3f7d8ffae06c0468233cfd8de5b9b26c Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 17 Apr 2022 13:47:39 +0800 Subject: [PATCH] better wording --- packages/docusaurus/bin/beforeCli.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/bin/beforeCli.mjs b/packages/docusaurus/bin/beforeCli.mjs index 16fcfb783b3d..cca422a1f1a4 100644 --- a/packages/docusaurus/bin/beforeCli.mjs +++ b/packages/docusaurus/bin/beforeCli.mjs @@ -22,7 +22,7 @@ try { sitePkg = createRequire(path.resolve('package.json'))('./package.json'); } catch { logger.warn`path=${'package.json'} file not found at CWD: path=${process.cwd()}.`; - logger.info`This is non-critical, but could lead to non-deterministic behavior downstream. Docusaurus assumes that path=${'package.json'} exists at CWD, because it's where the package manager looks up the script at. A common reason is because you have changed directory in the script. Instead of writing code=${'"start": "cd website && docusaurus start"'}, consider using the code=${'[siteDir]'} argument: code=${'"start": "docusaurus start website"'}.`; + logger.info`This is non-critical, but could lead to undesired behavior downstream. Docusaurus assumes that path=${'package.json'} exists at CWD, because it's where the package manager looks up the script at. A common reason is because you have changed directory in the script. Instead of writing code=${'"start": "cd website && docusaurus start"'}, consider using the code=${'[siteDir]'} argument: code=${'"start": "docusaurus start website"'}.`; sitePkg = {}; }