Need to publish the .d.ts file as well so it winds up next to package-types.json in the isobuild package

This commit is contained in:
Per Bergland
2024-11-05 18:42:09 +01:00
parent fac1022244
commit ecdfb480f0

View File

@@ -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");
});