whet 0.0.22 → 0.0.23
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/bin/whet/Project.js +0 -9
- package/bin/whet/Whet.js +1 -1
- package/package.json +1 -1
package/bin/whet/Project.js
CHANGED
|
@@ -36,14 +36,6 @@ class Project extends Register.inherits() {
|
|
|
36
36
|
Error.prepareStackTrace = oldValue;
|
|
37
37
|
file = decodeURI(file);
|
|
38
38
|
file = StringTools.replace(file, "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
39
|
var str = Path.relative(process.cwd(), file);
|
|
48
40
|
if (str.length > 0) {
|
|
49
41
|
str = Path.posix.normalize(str);
|
|
@@ -52,7 +44,6 @@ class Project extends Register.inherits() {
|
|
|
52
44
|
var id = str;
|
|
53
45
|
var dir = id.substring(0, id.lastIndexOf("/") + 1);
|
|
54
46
|
this.rootDir = (dir.length == 0) ? "./" : dir;
|
|
55
|
-
console.log("src/whet/Project.hx:42:",this.rootDir);
|
|
56
47
|
} else {
|
|
57
48
|
this.rootDir = config.rootDir;
|
|
58
49
|
};
|
package/bin/whet/Whet.js
CHANGED
|
@@ -12,7 +12,7 @@ const $global = Register.$global
|
|
|
12
12
|
export const Whet_Fields_ = Register.global("$hxClasses")["whet._Whet.Whet_Fields_"] =
|
|
13
13
|
class Whet_Fields_ {
|
|
14
14
|
static main() {
|
|
15
|
-
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.0.
|
|
15
|
+
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.0.23", "-v, --version").allowUnknownOption(true).showSuggestionAfterError(true).option("-p, --project <file>", "project to run", "Project.mjs").option("-l, --log-level <level>", "log level, a string/number", "info").option("--no-pretty", "disable pretty logging").exitOverride();
|
|
16
16
|
try {
|
|
17
17
|
Whet_Fields_.program.parse();
|
|
18
18
|
}catch (_g) {
|