From 609df8bda3fc98cffbab8958712bdeb31b85f8f1 Mon Sep 17 00:00:00 2001 From: zhongliang02 Date: Thu, 7 Nov 2024 15:49:41 +0800 Subject: [PATCH] fix: package json exports (#29) * fix: package json exports * bump package version to 1.2.7 --- packages/validators/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/validators/package.json b/packages/validators/package.json index 4d90700..6a90fda 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -1,9 +1,13 @@ { "name": "@opengovsg/starter-kitty-validators", - "version": "1.2.6", + "version": "1.2.7", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, "./url": { "types": "./dist/url/index.d.ts", "default": "./dist/url/index.js" @@ -19,6 +23,9 @@ }, "typesVersions": { "*": { + ".": [ + "./dist/index.d.ts" + ], "url": [ "./dist/url/index.d.ts" ],