From 791ae42eeab6d5a0a221b311e05793f3b50e85fa Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Tue, 29 Oct 2024 10:54:10 +0700 Subject: [PATCH] fix: mapper --- package.json | 4 ++-- test/jest-e2e.json | 8 ++++---- tsconfig.json | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index badd335..28546d0 100644 --- a/package.json +++ b/package.json @@ -80,8 +80,8 @@ "/libs/" ], "moduleNameMapper": { - "^@aditama-labs/nest-autocrud/skeleton(|/.*)$": "/libs/skeleton/src/$1", - "^@aditama-labs/nest-autocrud/prisma(|/.*)$": "/libs/prisma/src/$1" + "^@aditama-labs/nest-autocrud/skeleton(|/.*)$": "/libs/skeleton/$1", + "^@aditama-labs/nest-autocrud/prisma(|/.*)$": "/libs/prisma/$1" } } } \ No newline at end of file diff --git a/test/jest-e2e.json b/test/jest-e2e.json index 3c0f589..7a372e7 100644 --- a/test/jest-e2e.json +++ b/test/jest-e2e.json @@ -11,9 +11,9 @@ "^.+\\.(t|j)s$": "ts-jest" }, "moduleNameMapper": { - "@aditama-labs/nest-autocrud/skeleton/(.*)": "/../libs/skeleton/src/$1", - "@aditama-labs/nest-autocrud/skeleton": "/../libs/skeleton/src", - "@aditama-labs/nest-autocrud/prisma/(.*)": "/../libs/prisma/src/$1", - "@aditama-labs/nest-autocrud/prisma": "/../libs/prisma/src" + "@aditama-labs/nest-autocrud/skeleton/(.*)": "/../libs/skeleton/$1", + "@aditama-labs/nest-autocrud/skeleton": "/../libs/skeleton", + "@aditama-labs/nest-autocrud/prisma/(.*)": "/../libs/prisma/$1", + "@aditama-labs/nest-autocrud/prisma": "/../libs/prisma" } } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 39a9d87..cbc5a3a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,16 +19,16 @@ "noFallthroughCasesInSwitch": false, "paths": { "@aditama-labs/nest-autocrud/skeleton": [ - "libs/skeleton/src" + "libs/skeleton" ], "@aditama-labs/nest-autocrud/skeleton/*": [ - "libs/skeleton/src/*" + "libs/skeleton/*" ], "@aditama-labs/nest-autocrud/prisma": [ - "libs/prisma/src" + "libs/prisma" ], "@aditama-labs/nest-autocrud/prisma/*": [ - "libs/prisma/src/*" + "libs/prisma/*" ] } }