Skip to content

Commit cb53fb7

Browse files
committed
version bump
1 parent 637fe98 commit cb53fb7

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackpress/lib",
3-
"version": "0.3.29",
3+
"version": "0.3.30",
44
"license": "Apache-2.0",
55
"description": "Shared library used across stackpress projects",
66
"author": "Chris <chris@incept.asia>",

src/system/FileLoader.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ export default class FileLoader {
4848
//get the absolute path
4949
pathname = path.resolve(pwd, pathname);
5050
}
51-
//if the pathname is not already absolute,
52-
//the path should start with modules
53-
if (!path.isAbsolute(pathname)) {
51+
//if the pathname is not already absolute,
52+
//the path should start with modules
53+
if (!path.isAbsolute(pathname)) {
5454
let cwd = pwd;
5555
do {
5656
const module = path.resolve(cwd, 'node_modules', pathname);
5757
if (this._fs.existsSync(module)) {
5858
return module;
5959
}
6060
const parent = path.dirname(cwd);
61-
//stops at root dir (C:\ or /)
62-
if (parent === cwd) {
63-
break;
64-
}
65-
cwd = parent;
66-
} while (true);
61+
//stops at root dir (C:\ or /)
62+
if (parent === cwd) {
63+
break;
64+
}
65+
cwd = parent;
66+
} while (true);
6767
pathname = path.resolve(this.modules(this._cwd), pathname);
6868
}
6969
if (exists && !this._fs.existsSync(pathname)) {

0 commit comments

Comments
 (0)