Skip to content

Commit

Permalink
support if chipper/dist doesn't exist, phetsims/chipper#946
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 8, 2023
1 parent a1765a9 commit ba37c36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/grunt/reopenIssuesFromTODOs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const Octokit = require( '@octokit/rest' ); // eslint-disable-line require-state
const execute = require( '../common/execute' );
const buildLocal = require( '../common/buildLocal' );
const gruntCommand = require( '../common/gruntCommand' );
const createDirectory = require( '../common/createDirectory' );

const CHIPPER_DIST = '../chipper/dist';


/**
* This script is meant to ensure that all todos pointing to a github issue are pointing to open issues.
Expand All @@ -26,6 +30,9 @@ module.exports = async function reopenIssuesFromTODOs() {
// with all todo issues.
process.env.saveTODOIssues = true;

if ( !fs.existsSync( CHIPPER_DIST ) ) {
await createDirectory( CHIPPER_DIST );
}
fs.writeFileSync( '../chipper/dist/issuesFromTODOs.txt', '' );

console.log( 'grunt lint-everything started' );
Expand Down

0 comments on commit ba37c36

Please sign in to comment.