@midwayjs/mock 3.11.4 → 3.11.5

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/creator.js +4 -1
  2. package/package.json +2 -2
package/dist/creator.js CHANGED
@@ -181,10 +181,13 @@ async function createFunctionApp(baseDir, options = {}, customFrameworkModule) {
181
181
  var _a, _b, _c, _d;
182
182
  if (typeof baseDir === 'object') {
183
183
  options = baseDir;
184
- baseDir = options.appDir || process.cwd();
184
+ baseDir = options.appDir || '';
185
185
  }
186
186
  let starterName;
187
187
  if (!options.starter) {
188
+ if (!baseDir) {
189
+ baseDir = process.cwd();
190
+ }
188
191
  // load yaml
189
192
  try {
190
193
  const doc = yaml.load((0, fs_1.readFileSync)((0, path_1.join)(baseDir, 'f.yml'), 'utf8'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.11.4",
3
+ "version": "3.11.5",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "https://github.com/midwayjs/midway.git"
51
51
  },
52
- "gitHead": "43dab73370ef7f9bf7778513ea4090a977b1f786"
52
+ "gitHead": "a2c3b25f840a2e9dc01bfb7ef4bef82c3a4b0dcf"
53
53
  }