Skip to content

Commit e534e60

Browse files
authored
fix(types): Add @types/ms and fix build (#31)
1 parent cb8432e commit e534e60

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"zod": "^4.2.1"
2525
},
2626
"devDependencies": {
27+
"@types/ms": "^2.1.0",
2728
"@types/node": "^25.0.3",
2829
"@types/request": "^2.48.12",
2930
"@typescript-eslint/eslint-plugin": "^8.35.0",

src/commands/token.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { getToken, JWTScope } from "@gr4vy/sdk";
22
import { Flags } from "@oclif/core";
33
import { BaseCommand } from "../base";
44
import { decodeJWT } from "../helpers/decode";
5+
import type { StringValue } from "ms";
56

67
export default class Token extends BaseCommand {
78
static summary = "Generate a bearer token for server-to-server API calls.";
@@ -91,7 +92,7 @@ restricted to any specific frontend scopes only.
9192

9293
const token = await getToken({
9394
privateKey: this.clientConfig.privateKey,
94-
expiresIn: flags.expiresIn as string,
95+
expiresIn: flags.expiresIn as StringValue,
9596
scopes: flags.scope as JWTScope[]
9697
})
9798

tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"root":["./src/base.ts","./src/commands/checkout-session.ts","./src/commands/embed.ts","./src/commands/init.ts","./src/commands/token.ts","./src/helpers/decode.ts","./src/helpers/parse-embed-data.ts"],"version":"5.8.3"}
1+
{"root":["./src/base.ts","./src/commands/checkout-session.ts","./src/commands/embed.ts","./src/commands/init.ts","./src/commands/token.ts","./src/helpers/decode.ts","./src/helpers/parse-embed-data.ts"],"version":"5.9.3"}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,11 @@
16431643
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
16441644
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
16451645

1646+
"@types/ms@^2.1.0":
1647+
version "2.1.0"
1648+
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78"
1649+
integrity sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==
1650+
16461651
"@types/mute-stream@^0.0.4":
16471652
version "0.0.4"
16481653
resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.4.tgz#77208e56a08767af6c5e1237be8888e2f255c478"

0 commit comments

Comments
 (0)