Skip to content

Commit

Permalink
Update dependencies.js to indicate path to package.json being modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 17, 2018
1 parent d0800f5 commit ed69923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ function updatePackageJsonMain(mainValue) {
const packageJson = getPackageJson(packageJsonFilePath);

if (packageJson.main == mainValue) {
console.log(`"main" is already set to "${mainValue}".`);
console.log(`"main" is already set to "${mainValue}" in "${packageJsonFilePath}".`);
} else {
console.log(`Changing "main" to "${mainValue}"`)
console.log(`Changing "main" to "${mainValue}" in "${packageJsonFilePath}"`)
packageJson.main = mainValue;

fs.writeFileSync(packageJsonFilePath, JSON.stringify(packageJson, undefined, " "));
Expand Down

0 comments on commit ed69923

Please sign in to comment.