@meltstudio/config-loader 1.0.2 → 1.0.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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -466,7 +466,7 @@ var Settings = class {
|
|
|
466
466
|
if (!(fs2.existsSync(dir) && fs2.lstatSync(dir).isDirectory())) {
|
|
467
467
|
throw new Error(`'${dir}' not exists or is not a dir`);
|
|
468
468
|
}
|
|
469
|
-
const filesInDirectory = fs2.readdirSync(dir);
|
|
469
|
+
const filesInDirectory = fs2.readdirSync(dir).sort();
|
|
470
470
|
if (filesInDirectory.length === 0) {
|
|
471
471
|
throw new Error(`Directory '${dir}' is empty`);
|
|
472
472
|
}
|
|
@@ -474,7 +474,7 @@ var Settings = class {
|
|
|
474
474
|
if (!Array.isArray(this.sourceFile)) {
|
|
475
475
|
this.sourceFile = [];
|
|
476
476
|
}
|
|
477
|
-
this.sourceFile.
|
|
477
|
+
this.sourceFile.push(`${dir}/${file}`);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
}
|
package/package.json
CHANGED