@create-node-app/core 0.1.6 → 0.2.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.
package/dist/index.js CHANGED
@@ -350,11 +350,8 @@ var getTemplateDirPath = async (templateOrExtensionUrl) => {
350
350
  );
351
351
  let templateDirPath = import_path2.default.resolve(dir, subdir);
352
352
  const templateDirPathWithTemplate = import_path2.default.resolve(templateDirPath, "template");
353
- return new Promise((resolve, reject) => {
354
- import_fs2.default.stat(templateDirPathWithTemplate, (err, stats) => {
355
- if (err) {
356
- return reject(err);
357
- }
353
+ return new Promise((resolve) => {
354
+ import_fs2.default.stat(templateDirPathWithTemplate, (_err, stats) => {
358
355
  if (stats.isDirectory()) {
359
356
  templateDirPath = templateDirPathWithTemplate;
360
357
  }
@@ -694,7 +691,7 @@ var run = async ({
694
691
  console.log();
695
692
  console.log(
696
693
  import_chalk3.default.yellow(
697
- "No templatesOrExtensions specified to bootstrap application."
694
+ "No templates or extensions specified to bootstrap application."
698
695
  )
699
696
  );
700
697
  console.log();
package/dist/index.mjs CHANGED
@@ -322,11 +322,8 @@ var getTemplateDirPath = async (templateOrExtensionUrl) => {
322
322
  );
323
323
  let templateDirPath = path2.resolve(dir, subdir);
324
324
  const templateDirPathWithTemplate = path2.resolve(templateDirPath, "template");
325
- return new Promise((resolve, reject) => {
326
- fs2.stat(templateDirPathWithTemplate, (err, stats) => {
327
- if (err) {
328
- return reject(err);
329
- }
325
+ return new Promise((resolve) => {
326
+ fs2.stat(templateDirPathWithTemplate, (_err, stats) => {
330
327
  if (stats.isDirectory()) {
331
328
  templateDirPath = templateDirPathWithTemplate;
332
329
  }
@@ -666,7 +663,7 @@ var run = async ({
666
663
  console.log();
667
664
  console.log(
668
665
  chalk3.yellow(
669
- "No templatesOrExtensions specified to bootstrap application."
666
+ "No templates or extensions specified to bootstrap application."
670
667
  )
671
668
  );
672
669
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@create-node-app/core",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",