Skip to content

Commit

Permalink
tools: reference dist/ folder in team-generation-benchmark script (c…
Browse files Browse the repository at this point in the history
…loses smogon#10644)

This PR addresses [smogon#10644](smogon#10644).

Developers just need to run `node build` to rebuild the `dist` folder whenever the `.ts` files in `sim/` change.

## Other Considerations
- Add a watch script to rebuild when ``.ts`` changes.
- Convert the script itself to TypeScript & compile it with ``tsc``.
- Convert the script itself to TypeScript & use ``ts-node``  + ``nodemon``.
  • Loading branch information
DieterReinert authored Dec 31, 2024
1 parent d0152f5 commit 3b039dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/team-generation-benchmark.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const {Teams} = require('../sim');
const {Dex} = require('../sim/dex');
const {Teams} = require('../dist/sim');
const {Dex} = require('../dist/sim/dex');


if (!process.argv[2]) {
Expand Down

0 comments on commit 3b039dc

Please sign in to comment.