Skip to content

Commit 14d7cf8

Browse files
authored
chore(deps): run pnpm update (#343)
* chore(deps): run pnpm update * bump to node 22
1 parent 0dc020f commit 14d7cf8

File tree

5 files changed

+1476
-1633
lines changed

5 files changed

+1476
-1633
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [18.x, 20.x, 21.x]
13+
node-version: [18.x, 20.x, 22.x]
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{ matrix.node-version }}

cli/publish-spec/src/validation/validators/name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const validateName: Validator<NameValidation> = async (options: RunOption
3131
type: "text",
3232
message: "Choose a name for the spec:",
3333
name: "name",
34-
validate: (v: string) => !v.includes(" ") ?? ValidationErrorEnum.nameWithSpace,
34+
validate: (v: string) => !v.includes(" ") || ValidationErrorEnum.nameWithSpace,
3535
});
3636
}
3737
};

cli/publish-spec/src/validation/validators/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const validateToken: Validator<TokenValidation> = async (options: RunOpti
2121
message:
2222
"A Fig API token to push a spec to a team but none was found, please insert one manually:",
2323
name: "token",
24-
validate: (v: string) => !!v ?? "A Token is required to push the spec to a team",
24+
validate: (v: string) => !!v || "A Token is required to push the spec to a team",
2525
});
2626
}
2727
};

cli/tools-cli/src/scripts/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async function addDiffAction(
202202
const versionExports = findInFile(
203203
ts.createSourceFile(currentSpecPath, source, ts.ScriptTarget.ES2015, true),
204204
(node: ts.Node) => {
205-
if (ts.isExportSpecifier(node) && node.name.escapedText === "versions") {
205+
if (ts.isExportSpecifier(node) && node.name.getText() === "versions") {
206206
return node.parent.parent;
207207
}
208208
return null;

0 commit comments

Comments
 (0)