-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1284 from shawnmcknight/allow-default-export-conf…
…iguration-function Fix runner use of moleculer.config function with default export
- Loading branch information
Showing
4 changed files
with
71 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import fetch from "node-fetch"; | ||
|
||
/** | ||
* Test: | ||
* | ||
* npx ts-node -T bin\moleculer-runner.js -c examples\runner\moleculer.config.async.ts -r examples/user.service.js | ||
*/ | ||
export default async function () { | ||
const res = await fetch("https://pastebin.com/raw/SLZRqfHX"); | ||
return await res.json(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Test: | ||
* | ||
* npx ts-node -T bin\moleculer-runner.js -c examples\runner\moleculer.config.ts -r examples/user.service.js | ||
*/ | ||
export default { | ||
namespace: "bbb", | ||
logger: true, | ||
logLevel: "debug", | ||
//transporter: "TCP" | ||
hotReload: true, | ||
|
||
created(broker) { | ||
broker.logger.info("Typescript configuration loaded!"); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters