askui 0.13.0 → 0.13.1

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.
@@ -129,7 +129,9 @@ class CreateExampleProject {
129
129
  nunjucks_1.default.configure(askuiHelperTemplateFilePath, { autoescape: false });
130
130
  const result = nunjucks_1.default.render(templateFileName, this.helperTemplateConfig);
131
131
  const filePath = path_1.default.join(this.distexampleFolderPath, 'helpers', 'askui-helper.ts');
132
- yield fs_extra_1.default.mkdir(path_1.default.join(this.distexampleFolderPath, 'helpers'));
132
+ if (!fs_extra_1.default.existsSync(path_1.default.join(this.distexampleFolderPath, 'helpers'))) {
133
+ yield fs_extra_1.default.mkdir(path_1.default.join(this.distexampleFolderPath, 'helpers'));
134
+ }
133
135
  yield fs_extra_1.default.writeFile(filePath, result, 'utf8');
134
136
  }),
135
137
  },
@@ -123,7 +123,9 @@ export class CreateExampleProject {
123
123
  nunjucks.configure(askuiHelperTemplateFilePath, { autoescape: false });
124
124
  const result = nunjucks.render(templateFileName, this.helperTemplateConfig);
125
125
  const filePath = path.join(this.distexampleFolderPath, 'helpers', 'askui-helper.ts');
126
- yield fs.mkdir(path.join(this.distexampleFolderPath, 'helpers'));
126
+ if (!fs.existsSync(path.join(this.distexampleFolderPath, 'helpers'))) {
127
+ yield fs.mkdir(path.join(this.distexampleFolderPath, 'helpers'));
128
+ }
127
129
  yield fs.writeFile(filePath, result, 'utf8');
128
130
  }),
129
131
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askui",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "license": "MIT",
5
5
  "author": "askui GmbH <info@askui.com> (http://www.askui.com/)",
6
6
  "description": "Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on",