micro-service-maker 1.0.1 → 1.0.3

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 -2
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -128,7 +128,7 @@ const createDockerFileForService = (pipelinePath, servicePath, newPort) => {
128
128
  fs_1.default.writeFileSync(newDockerFilePath, replacedWithDocker);
129
129
  };
130
130
  const ceratePackageDotJsonFileForService = (pipeLinePath, servicePath, serviceName) => {
131
- const sourcePath = 'package.json';
131
+ const sourcePath = path_1.default.join(__dirname, 'package.json');
132
132
  const destinationPath = path_1.default.join(servicePath, 'package.json');
133
133
  let packageJsonRaw = fs_1.default.readFileSync(sourcePath, "utf-8");
134
134
  const packageJson = JSON.parse(packageJsonRaw);
@@ -193,7 +193,7 @@ const app = async () => {
193
193
  const currentDir = process.cwd();
194
194
  const pipeLinePath = path_1.default.resolve(appPath, "../");
195
195
  const gatewayPath = path_1.default.join(currentDir, "gateway");
196
- const rootPath = currentDir; //path.resolve(appPath, "../../")
196
+ const rootPath = currentDir;
197
197
  const servicePath = path_1.default.join(rootPath, serviceName);
198
198
  const srcPath = path_1.default.join(servicePath, "src");
199
199
  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.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/app.js",
5
5
  "types": "dist/app.d.ts",
6
6
  "bin": {