Skip to content

Commit

Permalink
fix HaxeBuild hash – use proper cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
Antriel committed Jul 3, 2024
1 parent 033127c commit d5bac55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .haxerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "4.3.3",
"version": "4.3.4",
"resolveLibs": "scoped"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whet",
"version": "0.0.27",
"version": "0.0.28",
"description": "NodeJS based assets management and project tooling library.",
"scripts": {
"devinit": "npx dts2hx commander pino-pretty --modular --noLibWrap",
Expand Down
2 changes: 1 addition & 1 deletion src/whet/stones/haxe/HaxeBuild.hx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class HaxeBuild extends Stone<BuildConfig> {

override function generateHash():Promise<SourceHash> {
// Not perfect, as it doesn't detect changes to library versions, but good enough.
var paths = makeArray(config.hxml.config.paths).map(path -> path.toCwdPath(config.hxml.project));
var paths = makeArray(config.hxml.config.paths).map(path -> js.node.Path.join(config.cwd, path));
return Promise.all([config.hxml.getHash(), SourceHash.fromFiles(paths)])
.then(r -> SourceHash.merge(...cast r));
}
Expand Down

0 comments on commit d5bac55

Please sign in to comment.