From c16206c7b82b31aa9b43e95ba68c23a2eaa80d52 Mon Sep 17 00:00:00 2001 From: zhongliang02 Date: Thu, 7 Nov 2024 14:16:52 +0800 Subject: [PATCH 1/3] fix: package json exports (#27) --- packages/validators/package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/validators/package.json b/packages/validators/package.json index 4d90700..4c31862 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -4,6 +4,10 @@ "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" ], From f55e6a310540382e3e5705fe7975eb50b4dad32e Mon Sep 17 00:00:00 2001 From: zhongliang02 Date: Thu, 7 Nov 2024 14:42:46 +0800 Subject: [PATCH 2/3] Revert "fix: package json exports (#27)" (#28) This reverts commit c16206c7b82b31aa9b43e95ba68c23a2eaa80d52. --- packages/validators/package.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/validators/package.json b/packages/validators/package.json index 4c31862..4d90700 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -4,10 +4,6 @@ "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" @@ -23,9 +19,6 @@ }, "typesVersions": { "*": { - ".": [ - "./dist/index.d.ts" - ], "url": [ "./dist/url/index.d.ts" ], From 609df8bda3fc98cffbab8958712bdeb31b85f8f1 Mon Sep 17 00:00:00 2001 From: zhongliang02 Date: Thu, 7 Nov 2024 15:49:41 +0800 Subject: [PATCH 3/3] 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" ],