From 64f5f085b77bf0f03d33b2db579660e3eb0ff74a Mon Sep 17 00:00:00 2001 From: Charlie Laabs Date: Thu, 28 Jul 2022 21:04:40 -0500 Subject: [PATCH] Fix build --- .eslintrc.js | 2 +- package.json | 2 +- ...e-configuration-types.ts => generate-configuration-types.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename scripts/{generate-configuration-types.ts => generate-configuration-types.js} (97%) diff --git a/.eslintrc.js b/.eslintrc.js index 7ffca7f..a85dfc3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,7 +20,7 @@ module.exports = { 'import/prefer-default-export': 0, 'no-shadow': 'off', '@typescript-eslint/no-shadow': ['error'], - 'import/no-extraneous-dependencies': ['error', { devDependencies: ['test/**/*.ts', 'scripts/**/*.ts'] }], + 'import/no-extraneous-dependencies': ['error', { devDependencies: ['test/**/*.ts', 'scripts/**/*'] }], 'camelcase': 0, }, settings: { diff --git a/package.json b/package.json index ca41f32..e2e7ca0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "rimraf dist && tsc", "lint": "tsc --noEmit && eslint .", "gen-proto": "protoc proto/*/*.proto --proto_path=proto --plugin=node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/generated/. --ts_proto_opt=onlyTypes=true --ts_proto_opt=outputEncodeMethods=false --ts_proto_opt=outputJsonMethods=false --ts_proto_opt=esModuleInterop=true --ts_proto_opt=env=node --ts_proto_opt=useOptionals=messages", - "gen-configuration": "ts-node scripts/generate-configuration-types.ts" + "gen-configuration": "node scripts/generate-configuration-types.js" }, "types": "dist/src/index.d.ts", "author": { diff --git a/scripts/generate-configuration-types.ts b/scripts/generate-configuration-types.js similarity index 97% rename from scripts/generate-configuration-types.ts rename to scripts/generate-configuration-types.js index d64eb47..78b99ac 100644 --- a/scripts/generate-configuration-types.ts +++ b/scripts/generate-configuration-types.js @@ -19,7 +19,7 @@ const main = async () => { } else { const totp = new TOTP({ secret: Secret.fromBase32(totpSecret) }); const mfaResp = await ubiServices.login2fa( - loginResp.twoFactorAuthenticationTicket as string, + loginResp.twoFactorAuthenticationTicket, totp.generate() ); ticket = mfaResp.ticket;