Skip to content

Commit

Permalink
no unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Dec 11, 2019
1 parent 943e19c commit 52796db
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build/build-cdt-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ for (const [input, output] of Object.entries(files)) {
}
return newLine;
});
modifiedLines.unshift(`const Common = require('../Common.js')\n`);
modifiedLines.unshift('// generated by build-cdt-lib.js\n');
modifiedLines.unshift('// @ts-nocheck\n');
fs.writeFileSync(`${outDir}/${output}`, modifiedLines.join(''));
const modifiedFile = [
'// @ts-nocheck\n',
'// generated by build-cdt-lib.js\n',
'const Common = require(\'../Common.js\')\n',
...modifiedLines,
].join('');
fs.writeFileSync(`${outDir}/${output}`, modifiedFile);
}

0 comments on commit 52796db

Please sign in to comment.