From 11bdf901f60d8a5d5bcefca9bb5e8ecf35d5e0db Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Thu, 14 Nov 2024 12:55:06 -0700 Subject: [PATCH] remove .js suffix in require statements in js files, https://github.com/phetsims/chipper/issues/1498 --- js/generate.js | 4 ++-- js/getFromSimInMain.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/generate.js b/js/generate.js index 2d698c6..a403c31 100644 --- a/js/generate.js +++ b/js/generate.js @@ -7,10 +7,10 @@ */ -const createHTMLString = require( './createHTMLString.js' ); +const createHTMLString = require( './createHTMLString' ); const fs = require( 'fs' ); const fsExtra = require( 'fs-extra' ); -const getFromSimInMain = require( './getFromSimInMain.js' ); +const getFromSimInMain = require( './getFromSimInMain' ); // resolve image and doc paths as constants diff --git a/js/getFromSimInMain.js b/js/getFromSimInMain.js index 3300a4b..af77dc6 100644 --- a/js/getFromSimInMain.js +++ b/js/getFromSimInMain.js @@ -25,7 +25,7 @@ const _ = require( 'lodash' ); const assert = require( 'assert' ); const fs = require( 'fs' ); const puppeteer = require( 'puppeteer' ); -const withServer = require( '../../perennial/js/common/withServer.js' ); +const withServer = require( '../../perennial/js/common/withServer' ); // Helper function to get the sim list from perennial const getSims = function() {