From f72bd513e5ef1a698faa3e1c53eb832e81433e3d Mon Sep 17 00:00:00 2001 From: Kyle Huang Junyuan Date: Fri, 14 Jun 2024 13:45:29 +0800 Subject: [PATCH] fix: exports path (#289) --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 09225de..d890863 100644 --- a/package.json +++ b/package.json @@ -2,16 +2,16 @@ "name": "@govtechsg/oa-verify", "version": "0.0.0-development", "description": "", - "type": "commonjs", - "source": "src/index.ts", "main": "dist/index.js", "unpkg": "dist/index.umd.js", "module": "dist/index.module.js", + "types": "dist/types/index.d.ts", "exports": { "require": "./dist/index.js", - "default": "./dist/index.modern.js" + "import": "./dist/index.modern.mjs", + "default": "./dist/index.modern.mjs", + "types": "./dist/types/index.d.ts" }, - "types": "dist/types/index.d.ts", "scripts": { "build": "npm run clean && microbundle --tsconfig tsconfig.prod.json", "clean": "rm -rf dist/",