moleculer
moleculer copied to clipboard
feat(runner): load service by matched path
I have written about this problem with env SERIVCES: moleculerjs/site#160
I think SERVICES should first prefer to service's name
This pull will allow loading service from SERVICES if any service's file ends with {SERVICE_ENV_VALUE}.service.[tj]s
Could you write an exact example where the original code doesn't load the desired files?
Example:
.
└── src/
└── services/
└── counter/
├── counter-peter.service.js
└── counter-marry.service.js
With SERVICEDIR=src/services
SERVICES=counter-marry, there are no service found- But
SERVICES=counterwill load bothcounter-peter,counter-marry(all*.service.jsincounterfolder)