Skip to content

Commit

Permalink
feat(infrastructure): Add newline at end of js files as part of the t…
Browse files Browse the repository at this point in the history
…ransform. (#2557)
  • Loading branch information
aprigogin authored Apr 12, 2018
1 parent 5bfa9eb commit 4fe967d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/rewrite-decl-statements-for-closure-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ function transform(srcFile, rootDir) {
packageStr = pathbasedPackageName;
}

outputCode = 'goog.module(\'' + packageStr + '\');\n' + outputCode;
// Specify goog.module and append newline at the end of the file.
outputCode = 'goog.module(\'' + packageStr + '\');\n' + outputCode + '\n';
fs.writeFileSync(srcFile, outputCode, 'utf8');
logProgress(`[rewrite] ${srcFile}`);
}
Expand Down

0 comments on commit 4fe967d

Please sign in to comment.