lukeknxt / classicwow-to-guidelime

Produce Guidelime guides from classicwow.live levelling guides
GNU Lesser General Public License v3.0
18 stars 7 forks source link

Unable to run yarn generateAll #37

Open eTzmNcbkrng opened 4 years ago

eTzmNcbkrng commented 4 years ago

I am able to generate individual race/class combos successfully but when I run yarn generateAll I get this error.

PS C:\Users\username\source\repos\lukeknoot\classicwow-to-guidelime\src> yarn run generateAll
yarn run v1.22.0
$ tsc scripts/*.ts && node scripts/generate_all.js
error TS6053: File 'scripts/*.ts' not found.

Found 1 error.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Shell is PowerShell, not sure if this is relevant.

PS C:\Users\username\source\repos\lukeknoot\classicwow-to-guidelime\src> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Any help with this would be appreciated, first time dabbling in javascript, it's taken me ~4 hours to figure out the 2 lines in my PR #38.

lukeknxt commented 4 years ago

Hey @eTzmNcbkrng, thanks for reporting!

The commands were naively written to be unix compatible. Glob expansion on Windows is done by the program rather than the shell itself so *.ts is interpreted literally and it can't find *.ts. Would be nice to have this work on both so I'm happy for a solution. I might get around to it one day if no-one else does.