cosmos-explorer/strict-null-checks/write-tsconfig.js

13 lines
352 B
JavaScript
Raw Permalink Normal View History

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
const fs = require("fs");
module.exports = {
writeTsconfigSync: (tsconfigPath, content) => {
let serializedContent = JSON.stringify(content, null, " ");
serializedContent += "\n";
fs.writeFileSync(tsconfigPath, serializedContent);
},
};