lupine.api 1.1.59 → 1.1.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.api",
3
- "version": "1.1.59",
3
+ "version": "1.1.60",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -609,9 +609,12 @@ export class AdminRelease implements IApiBase {
609
609
  // } else if (chkOption === 'web') {
610
610
  // saveFile = path.join(appData.apiPath, '..', toList + '_web', 'index.js');
611
611
  } else if (chkOption === 'web-sub' && data.webSub) {
612
- const folder = path.join(appData.apiPath, '..', toList + '_web', path.basename(data.webSub));
613
- if (!(await FsUtils.pathExist(folder))) {
614
- await FsUtils.mkdir(folder);
612
+ const baseName = path.basename(data.webSub);
613
+ if (baseName !== data.webSub) {
614
+ const folder = path.join(appData.apiPath, '..', toList + '_web', baseName);
615
+ if (!(await FsUtils.pathExist(folder))) {
616
+ await FsUtils.mkdir(folder);
617
+ }
615
618
  }
616
619
  saveFile = path.join(appData.apiPath, '..', toList + '_web', data.webSub);
617
620
  } else if ((chkOption as string).startsWith('.env')) {