File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ import {ApiErrorResponseSchema} from "./kms/KmsApi";
44import { TenantSecurityErrorCode , TenantSecurityException } from "./TenantSecurityException" ;
55import { TenantSecurityExceptionUtils } from "./TenantSecurityExceptionUtils" ;
66import { TspServiceException } from "./TspServiceException" ;
7- import { version } from "../package.json" ;
87import * as Crypto from "./kms/Crypto" ;
98import * as DetCrypto from "./kms/DeterministicCrypto" ;
109import * as http from "http" ;
1110import * as https from "https" ;
1211import * as Joi from "joi" ;
1312
13+ // Loaded via require so tsc doesn't include package.json in the program and
14+ // elevate the inferred rootDir above ./src (which would nest the build output).
15+ // eslint-disable-next-line @typescript-eslint/no-var-requires
16+ const { version} = require ( "../package.json" ) as { version : string } ;
17+
1418/**
1519 * Try to JSON parse error responses from the TSP to extract error codes and messages.
1620 */
Original file line number Diff line number Diff line change 88 "noUnusedLocals" : true ,
99 "declaration" : false ,
1010 "target" : " ES6" ,
11+ "rootDir" : " ./src" ,
1112 "module" : " commonjs" ,
1213 "moduleResolution" : " node" ,
1314 "resolveJsonModule" : true ,
You can’t perform that action at this time.
0 commit comments