diff --git a/tools/scripts/publish.mjs b/tools/scripts/publish.mjs index 4d6b50a60..f2c658096 100644 --- a/tools/scripts/publish.mjs +++ b/tools/scripts/publish.mjs @@ -28,7 +28,7 @@ const [, , name, version, tag = 'next'] = process.argv; const validVersion = /^\d+\.\d+\.\d+(-\w+\.\d+)?/; invariant( version && validVersion.test(version), - `No version provided or version did not match Semantic Versioning, expected: #.#.#-tag.# or #.#.#, got ${version}.` + `No version provided or version did not match Semantic Versioning, expected: #.#.#-tag.# or #.#.#, got ${version}.`, ); const graph = readCachedProjectGraph(); @@ -36,13 +36,13 @@ const project = graph.nodes[name]; invariant( project, - `Could not find project "${name}" in the workspace. Is the project.json configured correctly?` + `Could not find project "${name}" in the workspace. Is the project.json configured correctly?`, ); const outputPath = project.data?.targets?.build?.options?.outputPath; invariant( outputPath, - `Could not find "build.options.outputPath" of project "${name}". Is project.json configured correctly?` + `Could not find "build.options.outputPath" of project "${name}". Is project.json configured correctly?`, ); process.chdir(outputPath);