Skip to content

Commit

Permalink
Fix faulty package types file name and publish it INSTEAD of the .d.t…
Browse files Browse the repository at this point in the history
…s file for zodern:types.

Fixes meteor#13447
  • Loading branch information
perbergland committed Nov 5, 2024
1 parent d40e7a5 commit fac1022
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
File renamed without changes.
25 changes: 16 additions & 9 deletions packages/mongo/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Npm.depends({
"lodash.throttle": "4.1.1",
"lodash.once": "4.1.1",
"lodash.isobject": "3.0.2",
"lodash.clone": "4.5.0"
"lodash.clone": "4.5.0",
});

Npm.strip({
Expand Down Expand Up @@ -51,7 +51,6 @@ Package.onUse(function (api) {
api.use("mongo-decimal", "server");
//api.use('emitter-promise', 'server');


// Binary Heap data structure is used to optimize oplog observe driver
// performance.
api.use("binary-heap", "server");
Expand Down Expand Up @@ -103,16 +102,24 @@ Package.onUse(function (api) {
api.addFiles("remote_collection_driver.ts", "server");
api.addFiles("collection/collection.js", ["client", "server"]);
api.addFiles("connection_options.ts", "server");
api.addAssets("mongo.d.ts", "server");
// For zodern:types to pick up our published types
api.addAssets("package-types.json", "server");
});

Package.onTest(function (api) {
api.use('mongo');
api.use('check');
api.use('ecmascript');
api.use('npm-mongo', 'server');
api.use(['tinytest', 'test-helpers', 'ejson', 'random',
'ddp', 'base64', 'typescript']);
api.use("mongo");
api.use("check");
api.use("ecmascript");
api.use("npm-mongo", "server");
api.use([
"tinytest",
"test-helpers",
"ejson",
"random",
"ddp",
"base64",
"typescript",
]);
// XXX test order dependency: the allow_tests "partial allow" test
// fails if it is run before mongo_livedata_tests.
api.addFiles("tests/mongo_livedata_tests.js", ["client", "server"]);
Expand Down

0 comments on commit fac1022

Please sign in to comment.