From 21f2323e0dec42d00c7729da0c1c95f106616064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=BCttner?= Date: Mon, 17 Apr 2023 14:21:57 +0200 Subject: [PATCH] Remove types entrypoint again --- packages/composables/package.json | 8 ++------ packages/constants/package.json | 9 ++------- packages/exceptions/package.json | 8 ++------ packages/extensions-sdk/package.json | 8 ++------ packages/schema/package.json | 8 ++------ packages/storage/package.json | 8 ++------ packages/types/package.json | 9 ++------- packages/utils/package.json | 3 +-- 8 files changed, 15 insertions(+), 46 deletions(-) diff --git a/packages/composables/package.json b/packages/composables/package.json index f93b7246f63158..c65abc7b77bb8e 100644 --- a/packages/composables/package.json +++ b/packages/composables/package.json @@ -17,17 +17,13 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ "dist", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "publishConfig": { "access": "public" diff --git a/packages/constants/package.json b/packages/constants/package.json index ec5e9dca6cd18e..93c8b5c996fe7e 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -16,17 +16,12 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ - "dist", - "!**/*.d.ts.map" + "dist" ], "publishConfig": { "access": "public" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index d4d2b0269f5c1c..b69a9569c4153d 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -17,17 +17,13 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ "dist", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "publishConfig": { "access": "public" diff --git a/packages/extensions-sdk/package.json b/packages/extensions-sdk/package.json index 7a5d822957f7bc..f38b79d73e089f 100644 --- a/packages/extensions-sdk/package.json +++ b/packages/extensions-sdk/package.json @@ -15,22 +15,18 @@ "funding": "https://github.com/directus/directus?sponsor=1", "author": "Nicola Krumschmidt", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./cli": "./dist/cli/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "bin": { "directus-extension": "cli.js" }, "files": [ "dist", "templates", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "scripts": { "build": "tsc --build", diff --git a/packages/schema/package.json b/packages/schema/package.json index 99c4f39e27fda7..1ff3910a4b51c8 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -26,10 +26,7 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json", "./types/overview": { "types": "./dist/types/overview.d.ts", @@ -37,10 +34,9 @@ } }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ "dist", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "scripts": { "build": "tsc --build", diff --git a/packages/storage/package.json b/packages/storage/package.json index 47f26042362ba1..bad02c0ad71da3 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -17,17 +17,13 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ "dist", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "publishConfig": { "access": "public" diff --git a/packages/types/package.json b/packages/types/package.json index 60fddce3cda645..521a16fb942a95 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -16,17 +16,12 @@ "license": "GPL-3.0", "author": "Rijk van Zanten ", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "main": "dist/index.js", - "types": "dist/index.d.ts", "files": [ - "dist", - "!**/*.d.ts.map" + "dist" ], "publishConfig": { "access": "public" diff --git a/packages/utils/package.json b/packages/utils/package.json index 8ca5460a37013e..1ca794f7a3441c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -32,10 +32,9 @@ "./package.json": "./package.json" }, "main": "dist/shared/index.js", - "types": "dist/shared/index.d.ts", "files": [ "dist", - "!**/*.d.ts.map" + "!**/*.test.{js,d.ts}" ], "publishConfig": { "access": "public"