Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

feat(infrastructure): Add newline at end of js files as part of the t… #2557

Merged
merged 2 commits into from
Apr 12, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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