From 1fb2154424d02af19b32cb7b489e319e1c616aae Mon Sep 17 00:00:00 2001 From: Richard Zampieri Date: Fri, 21 Jun 2024 16:35:53 -0700 Subject: [PATCH] fix: adjust the tsconfig to have root ./src --- src/jwt.provider.ts | 9 ++++----- tsconfig.json | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jwt.provider.ts b/src/jwt.provider.ts index ce23a61..b3773c3 100644 --- a/src/jwt.provider.ts +++ b/src/jwt.provider.ts @@ -1,6 +1,5 @@ import { IProvider, Report } from "@expressots/core"; import { injectable } from "inversify"; -import pkg from "../package.json"; import * as jwt from "jsonwebtoken"; import { SignOptions, VerifyOptions, DecodeOptions, Secret } from "./jwt.interface"; @@ -11,10 +10,10 @@ import { SignOptions, VerifyOptions, DecodeOptions, Secret } from "./jwt.interfa */ @injectable() export class JwtProvider implements IProvider { - readonly name: string = pkg.name; - readonly version: string = pkg.version; - readonly author: string = pkg.author; - readonly repo: string = pkg.repository.url; + readonly name: string = "Jwt provider"; + readonly version: string = "1.0.0"; + readonly author: string = "Richard Zampieri"; + readonly repo: string = "https://github.com/expressots/jwt"; private report: Report; private secret: Secret | null = null; private defaultSignOptions?: SignOptions; diff --git a/tsconfig.json b/tsconfig.json index f62d8f0..abff6e8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, + "rootDir": "./src", "types": ["node", "reflect-metadata", "vitest/globals"] }, "include": ["src/**/*.ts"],