-
Notifications
You must be signed in to change notification settings - Fork 0
Pass start dir to moduleconfig #2
New issue
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
Conversation
| message:"error %s", | ||
| args:["myParameter"] | ||
| it('will format the message with one argument and an internal parameter', function () { | ||
| const internalData = { test: true, myArray: [1, 2, 3] }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| module.exports = getNodeErrors(); | ||
| module.exports = getNodeErrors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
package.json
Outdated
| "moduleconfig": "^2.0.0", | ||
| "underscore": "^1.8.3", | ||
| "uuid": "^3.0.1" | ||
| "@debitoor/moduleconfig": "github:debitoor/moduleconfig#pass-start-dir-to-function", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be updated to specific version after releasing debitoor/moduleconfig#2
| "author": "Allan Ebdrup", | ||
| "name": "nodeerrors", | ||
| "author": "Debitoor", | ||
| "name": "@debitoor/nodeerrors", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not do this - it will make you publish an all new package under this scope. In such case, you should use version 1 as the previous versions will not exist for @debitoor/nodeerrors - I'd recommend to keep it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodeerrors in npm registry is not owned by us, so I guess we won't be able to publish it with this name.
@debitoor/nodeerrors with version 1 sounds better then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bifrost is a collaborator on https://www.npmjs.com/package/nodeerrors - you can ask him to add you 😄
Exported function in lib/nodeerrors.js instead of exporting value returned by the function.
I also had to modify moduleconfig package so it takes a directory it should check for config, because it was also being cached by opentelemetry package (so it was always looking for the config in the same directory).
Depends on debitoor/moduleconfig#2