Files
meteor/packages/underscore/package.js
Gabriel Grubba 78737e93d2 Merge branch 'devel' into updating-3.0-with-devel
# Conflicts:
#	docs/history.md
#	meteor
#	npm-packages/eslint-plugin-meteor/scripts/dev-bundle-tool-package.js
#	npm-packages/meteor-babel/package-lock.json
#	npm-packages/meteor-babel/package.json
#	packages/babel-compiler/.npm/package/npm-shrinkwrap.json
#	packages/babel-compiler/package.js
#	packages/mongo/collection.js
#	packages/webapp/.npm/package/npm-shrinkwrap.json
#	tools/cli/commands.js
#	tools/static-assets/skel-apollo/server/apollo.js
#	tools/tests/mongo.js
2023-03-21 11:02:43 -03:00

28 lines
830 B
JavaScript

Package.describe({
summary: "Collection of small helpers: _.map, _.each, ...",
version: '1.0.12',
});
Npm.depends({
'@types/underscore': '1.11.4',
});
Package.onUse(function (api) {
api.export('_');
// NOTE: we patch _.each and various other functions that polymorphically take
// objects, arrays, and array-like objects (such as the querySelectorAll
// return value, document.images, and 'arguments') such that objects with a
// numeric length field whose constructor === Object are still treated as
// objects, not as arrays. Search for looksLikeArray.
api.addFiles(['pre.js', 'underscore.js', 'post.js']);
api.addAssets('underscore.d.ts', 'server');
});
Package.onTest(function (api) {
// Also turn off the strong 'meteor' dependency in the test slice
api.use('meteor', {unordered: true});
});