Skip to content

Commit

Permalink
chore(deps): run pnpm update (#343)
Browse files Browse the repository at this point in the history
* chore(deps): run pnpm update

* bump to node 22
  • Loading branch information
grant0417 authored Jan 7, 2025
1 parent 0dc020f commit 14d7cf8
Show file tree
Hide file tree
Showing 5 changed files with 1,476 additions and 1,633 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion cli/publish-spec/src/validation/validators/name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const validateName: Validator<NameValidation> = async (options: RunOption
type: "text",
message: "Choose a name for the spec:",
name: "name",
validate: (v: string) => !v.includes(" ") ?? ValidationErrorEnum.nameWithSpace,
validate: (v: string) => !v.includes(" ") || ValidationErrorEnum.nameWithSpace,
});
}
};
2 changes: 1 addition & 1 deletion cli/publish-spec/src/validation/validators/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const validateToken: Validator<TokenValidation> = async (options: RunOpti
message:
"A Fig API token to push a spec to a team but none was found, please insert one manually:",
name: "token",
validate: (v: string) => !!v ?? "A Token is required to push the spec to a team",
validate: (v: string) => !!v || "A Token is required to push the spec to a team",
});
}
};
2 changes: 1 addition & 1 deletion cli/tools-cli/src/scripts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function addDiffAction(
const versionExports = findInFile(
ts.createSourceFile(currentSpecPath, source, ts.ScriptTarget.ES2015, true),
(node: ts.Node) => {
if (ts.isExportSpecifier(node) && node.name.escapedText === "versions") {
if (ts.isExportSpecifier(node) && node.name.getText() === "versions") {
return node.parent.parent;
}
return null;
Expand Down
Loading

0 comments on commit 14d7cf8

Please sign in to comment.