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.
Files changed (2) hide show
  1. package/dist/app.js +2 -5
  2. 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 packageRoot = path_1.default.resolve(__dirname, "..");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-service-maker",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "dist/app.js",
5
5
  "types": "dist/app.d.ts",
6
6
  "bin": {
@@ -33,4 +33,4 @@
33
33
  "ts-node-dev": "^2.0.0",
34
34
  "typescipt": "^1.0.0"
35
35
  }
36
- }
36
+ }