lix-pm / lix.client

A dependable package manager for your Haxe projects
The Unlicense
119 stars 24 forks source link

`lix dev` doesn't add a run directive #122

Open Gama11 opened 4 years ago

Gama11 commented 4 years ago

Trying to install the dox lib within dox itself so I can run npx lix run dox:

> npx lix dev dox .

> npx lix run dox
no @run directive found for library dox

The resulting dox.hxml is missing the @run comment:

-D dox=1.3.0
-cp .
--macro Sys.println("haxe_libraries/dox.hxml:2: [Warning] Using dev version of library dox")

I replaced it with this which does the trick:

# @run: haxelib run-dir dox .

Sidenote: perhaps there could be a better way to execute the run script of the current project, other than... well, installing the project into itself? lix run . or something maybe? I've tried npx lix run-haxelib ., but that doesn't really seem to do what I'd expect (asks for "Library"?).

nadako commented 4 years ago

Oh I also just ran into this. A bit annoying when developing a "runnable" library.