Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): run pnpm update #343

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading