Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk authored and BioPhoton committed Aug 30, 2023
1 parent 9da555c commit 7e5e743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ 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();
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);
Expand Down

0 comments on commit 7e5e743

Please sign in to comment.