Skip to content

Commit

Permalink
Add todo and clear commonjs directory, see #1272
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 12, 2024
1 parent 6a8be64 commit d11d308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/scripts/transpile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* are modified externally. For example if you edit a file in chipper/dist/js or if you edit
* chipper/dist/js-cache-status.json, they would be out of sync. If you `rm -rf chipper/dist`
* that does not require --clean, because that erases the cache file and the js files together.
*
* TODO: Remove skipInitial
* --skipInitial Skip the initial transpilation.
* --repos Additional repos to compile (not listed in perennial-alias/data/active-repos). The names of the repos,
* separated by commas, like --repos=myrepo1,myrepo2. Directory names only, not paths
Expand Down Expand Up @@ -53,7 +55,8 @@ const transpiler = new Transpiler( {
minifyWGSL: !args.includes( '--skipMinifyWGSL' )
} );

transpiler.pruneStaleDistFiles();
transpiler.pruneStaleDistFiles( 'js' );
transpiler.pruneStaleDistFiles( 'commonjs' );

// Watch process
if ( args.includes( '--watch' ) ) {
Expand Down

0 comments on commit d11d308

Please sign in to comment.