micro-service-maker 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +2 -5
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -199,13 +199,10 @@ const app = async () => {
|
|
|
199
199
|
const serviceName = validateService(res.service);
|
|
200
200
|
// set all required paths
|
|
201
201
|
const appPath = __dirname;
|
|
202
|
-
const currentDir = process.cwd();
|
|
203
|
-
const
|
|
204
|
-
// const pipeLinePath = path.resolve(appPath, "../")
|
|
205
|
-
const pipeLinePath = path_1.default.join(packageRoot, "pipeline");
|
|
202
|
+
const currentDir = path_1.default.join(process.cwd(), "services");
|
|
203
|
+
const pipeLinePath = path_1.default.resolve(appPath, "../");
|
|
206
204
|
const gatewayPath = path_1.default.join(currentDir, "gateway");
|
|
207
205
|
const rootPath = path_1.default.resolve(appPath, "../"); //path.resolve(appPath, "../../")
|
|
208
|
-
// const servicePath = path.join(rootPath, serviceName)
|
|
209
206
|
const servicePath = path_1.default.join(currentDir, serviceName);
|
|
210
207
|
const srcPath = path_1.default.join(servicePath, "src");
|
|
211
208
|
const appFilePath = path_1.default.join(srcPath, "app.ts");
|
package/package.json
CHANGED