From ecdfb480f0db6c2ef09b88bbb11199a6f2a0b2bd Mon Sep 17 00:00:00 2001 From: Per Bergland Date: Tue, 5 Nov 2024 18:42:09 +0100 Subject: [PATCH] Need to publish the .d.ts file as well so it winds up next to package-types.json in the isobuild package --- packages/mongo/package.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/mongo/package.js b/packages/mongo/package.js index 7e8aecae0d..b6bb78b9ea 100644 --- a/packages/mongo/package.js +++ b/packages/mongo/package.js @@ -102,7 +102,9 @@ Package.onUse(function (api) { api.addFiles("remote_collection_driver.ts", "server"); api.addFiles("collection/collection.js", ["client", "server"]); api.addFiles("connection_options.ts", "server"); - // For zodern:types to pick up our published types + // For zodern:types to pick up our published types. + // Both the .d.ts file and package-types.json must be published + api.addAssets("mongo.d.ts", "server"); api.addAssets("package-types.json", "server"); });