whet 0.0.27 → 0.0.28

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/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.27", "-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();
15
+ Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.0.28", "-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) {
@@ -13,7 +13,8 @@ const $global = Register.$global
13
13
  export const BaseCache = Register.global("$hxClasses")["whet.cache.BaseCache"] =
14
14
  class BaseCache extends Register.inherits() {
15
15
  new(rootDir, cache) {
16
- if (!(rootDir.length == 0 || rootDir.charCodeAt(rootDir.length - 1) == 47)) {
16
+ let id = rootDir;
17
+ if (!(id.length == 0 || id.charCodeAt(id.length - 1) == 47)) {
17
18
  throw new Error("Root dir is a not a dir.");
18
19
  };
19
20
  this.rootDir = rootDir;
@@ -96,7 +96,7 @@ class HaxeBuild extends Register.inherits(Stone) {
96
96
  let _g1 = _this.length;
97
97
  while (_g < _g1) {
98
98
  let i = _g++;
99
- result[i] = Path.posix.join(".", RootDir.fromProject(this.config.hxml.project), ".", _this[i]);
99
+ result[i] = Path.join(this.config.cwd, _this[i]);
100
100
  };
101
101
  return Promise.all([this.config.hxml.getHash(), SourceHash.fromFiles(result)]).then(function (r) {
102
102
  return SourceHash.merge(...r);
@@ -268,7 +268,7 @@ class Hxml extends Register.inherits(Stone) {
268
268
  if (Path.posix.extname(fn) == "") {
269
269
  let id = fn;
270
270
  let ext = "hxml";
271
- if ("hxml".length > 0 && ext.charCodeAt(0) != 46) {
271
+ if (ext.length > 0 && ext.charCodeAt(0) != 46) {
272
272
  ext = "." + ext;
273
273
  };
274
274
  let dir = id.substring(0, id.lastIndexOf("/") + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whet",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "NodeJS based assets management and project tooling library.",
5
5
  "scripts": {
6
6
  "devinit": "npx dts2hx commander pino-pretty --modular --noLibWrap",