We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript writes its .map files in the same directory as the compiled .js files. Please add a filter like:
var path = require('path');
{ key: 'withDirectory', value: function withDirectory(directory) { var _this2 = this;
var files = _fs2.default.readdirSync(directory); files.filter(function(file) { return path.extname(file).toLowerCase() === '.js'; }); files.forEach(function (file) { var model = file.replace('.js', ''); var path = directory + '/' + file; var schema = require(path); return _this2.model(model, schema); }); return this; }
The text was updated successfully, but these errors were encountered:
a85f31d
Thanks for the heads up!
Sorry, something went wrong.
Added filename filter to files loaded with withDirectory to only load…
244c4a3
… js files. Fixes #15
No branches or pull requests
Typescript writes its .map files in the same directory as the compiled .js files. Please add a filter like:
var path = require('path');
{
key: 'withDirectory',
value: function withDirectory(directory) {
var _this2 = this;
The text was updated successfully, but these errors were encountered: