Open larry-the-table-guy opened 2 weeks ago
I could be wrong, but importing or require
ing a TS file in a JS file will not work at all. Building the dist/
folder is probably the right way.
In order to automatically build when changes happen in the TS file, we can probably add a watcher like nodemon
Running
node ./tools/team-generation-benchmark.js random
gives me this errorI think these lines got left behind during a previous build system migration. https://github.com/smogon/pokemon-showdown/blob/269e6f3751289e5526f6a3a09dfc652c55a7d217/tools/team-generation-benchmark.js#L3-L4
It works when I add
dist/
to the path, but that doesn't seem to trigger a rebuild if the TS files change. I'm pretty clueless when it comes to compiling JS/TS so I don't know what the best fix is.