@create-node-app/core 0.2.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -352,6 +352,10 @@ var getTemplateDirPath = async (templateOrExtensionUrl) => {
352
352
  const templateDirPathWithTemplate = import_path2.default.resolve(templateDirPath, "template");
353
353
  return new Promise((resolve) => {
354
354
  import_fs2.default.stat(templateDirPathWithTemplate, (_err, stats) => {
355
+ if (_err) {
356
+ resolve(templateDirPath);
357
+ return;
358
+ }
355
359
  if (stats.isDirectory()) {
356
360
  templateDirPath = templateDirPathWithTemplate;
357
361
  }
package/dist/index.mjs CHANGED
@@ -324,6 +324,10 @@ var getTemplateDirPath = async (templateOrExtensionUrl) => {
324
324
  const templateDirPathWithTemplate = path2.resolve(templateDirPath, "template");
325
325
  return new Promise((resolve) => {
326
326
  fs2.stat(templateDirPathWithTemplate, (_err, stats) => {
327
+ if (_err) {
328
+ resolve(templateDirPath);
329
+ return;
330
+ }
327
331
  if (stats.isDirectory()) {
328
332
  templateDirPath = templateDirPathWithTemplate;
329
333
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@create-node-app/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",