Skip to content

Commit

Permalink
Move TODOs from #1272 to #1437
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 12, 2024
1 parent b45de6d commit 3550916
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions js/common/Transpiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author Sam Reid (PhET Interactive Simulations)
*/

// TODO: Move to perennial-alias, see https://github.com/phetsims/chipper/issues/1272. Does this mean we will have perennial-alias/dist? Be careful not to create perennial/dist too.
// TODO: Move to perennial-alias, see https://github.com/phetsims/chipper/issues/1437. Does this mean we will have perennial-alias/dist? Be careful not to create perennial/dist too.

// imports
const fs = require( 'fs' );
Expand All @@ -38,8 +38,8 @@ const root = '..' + path.sep;

// Directories in a sim repo that may contain things for transpilation
// This is used for a top-down search in the initial transpilation and for filtering relevant files in the watch process
// TODO: Subdirs may be different for commonjs/perennial/chipper, see https://github.com/phetsims/chipper/issues/1272
// TODO: Add chipper/test chipper/eslint chipper/templates and perennial/test at a minimum, see https://github.com/phetsims/chipper/issues/1272
// TODO: Subdirs may be different for commonjs/perennial/chipper, see https://github.com/phetsims/chipper/issues/1437
// TODO: Add chipper/test chipper/eslint chipper/templates and perennial/test at a minimum, see https://github.com/phetsims/chipper/issues/1437
const subdirs = [ 'js', 'images', 'mipmaps', 'sounds', 'shaders', 'common', 'wgsl',

// phet-io-sim-specific has nonstandard directory structure
Expand Down Expand Up @@ -135,8 +135,8 @@ class Transpiler {
const relativePath = path.relative( root, filename );
const suffix = relativePath.substring( relativePath.lastIndexOf( '.' ) );

// Note: When we upgrade to Node 16, this may no longer be necessary, see https://github.com/phetsims/chipper/issues/1272#issuecomment-1222574593
// TODO: Get rid of mjs?: https://github.com/phetsims/chipper/issues/1272
// Note: When we upgrade to Node 16, this may no longer be necessary, see https://github.com/phetsims/chipper/issues/1437#issuecomment-1222574593
// TODO: Get rid of mjs?: https://github.com/phetsims/chipper/issues/1437
const isMJS = relativePath.endsWith( '.mjs' );

const extension = isMJS ? '.mjs' : '.js';
Expand Down Expand Up @@ -180,7 +180,7 @@ class Transpiler {
} ).code;

/**
* TODO: Generalize this so it can look up the appropriate path for any dependency, see https://github.com/phetsims/chipper/issues/1272
* TODO: Generalize this so it can look up the appropriate path for any dependency, see https://github.com/phetsims/chipper/issues/1437
* This can be accomplished with a babel plugin.
* Note aqua, perennial, perennial-alias, rosetta and skiffle each require (a possibly different version of) winston
*/
Expand Down
2 changes: 1 addition & 1 deletion js/grunt/gruntMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if ( LAUNCH_FROM_CHIPPER_DIST ) {
commonJSTranspiler.transpileRepoWithModes( 'perennial-alias', [ 'commonjs' ] );
commonJSTranspiler.saveCache();

// TODO: Make sure the above repos are covered by tsconfig/all, see https://github.com/phetsims/chipper/issues/1272
// TODO: Make sure the above repos are covered by tsconfig/all, see https://github.com/phetsims/chipper/issues/1437

// use chipper's gruntfile
module.exports = require( '../../dist/commonjs/chipper/js/grunt/Gruntfile.js' );
Expand Down

0 comments on commit 3550916

Please sign in to comment.