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

Commit 4fe967d

Browse files
authored
feat(infrastructure): Add newline at end of js files as part of the transform. (#2557)
1 parent 5bfa9eb commit 4fe967d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/rewrite-decl-statements-for-closure-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ function transform(srcFile, rootDir) {
202202
packageStr = pathbasedPackageName;
203203
}
204204

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

0 commit comments

Comments
 (0)