From 89bf884eec537ebfca38cbe4efcbcb90a6a94010 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Tue, 29 Oct 2024 10:15:16 +0700 Subject: [PATCH] chore: package exports --- package.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 348b3d8..4b86f4f 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,16 @@ "author": "Supan Adit Pratama", "license": "MIT", "publishConfig": { - "directory": "packages", "access": "public" }, + "exports": { + ".": { + "import": "./plugins/index.js", + "require": "./plugins/index.js", + "types": "./plugins/index.d.ts" + }, + "./package.json": "./package.json" + }, "scripts": { "build": "nest build", "build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json", @@ -85,4 +92,4 @@ "^@autocrud/prisma(|/.*)$": "/libs/prisma/src/$1" } } -} +} \ No newline at end of file