@create-node-app/core 0.2.1 → 0.2.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.
- package/dist/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
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
|
}
|