whet 0.0.21 → 0.0.22

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.
@@ -36,9 +36,23 @@ class Project extends Register.inherits() {
36
36
  Error.prepareStackTrace = oldValue;
37
37
  file = decodeURI(file);
38
38
  file = StringTools.replace(file, "file:///", "");
39
- var id = Path.relative(process.cwd(), file);
39
+ console.log("src/whet/Project.hx:38:",file);
40
+ console.log("src/whet/Project.hx:39:",process.cwd());
41
+ var str = Path.relative(process.cwd(), file);
42
+ if (str.length > 0) {
43
+ str = Path.posix.normalize(str);
44
+ str = StringTools.replace(str, "\\", "/");
45
+ };
46
+ console.log("src/whet/Project.hx:40:",str);
47
+ var str = Path.relative(process.cwd(), file);
48
+ if (str.length > 0) {
49
+ str = Path.posix.normalize(str);
50
+ str = StringTools.replace(str, "\\", "/");
51
+ };
52
+ var id = str;
40
53
  var dir = id.substring(0, id.lastIndexOf("/") + 1);
41
54
  this.rootDir = (dir.length == 0) ? "./" : dir;
55
+ console.log("src/whet/Project.hx:42:",this.rootDir);
42
56
  } else {
43
57
  this.rootDir = config.rootDir;
44
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whet",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "NodeJS based assets management and project tooling library.",
5
5
  "scripts": {
6
6
  "devinit": "npx dts2hx commander pino-pretty --modular --noLibWrap",