webpack/webpack-cli

View on GitHub
scripts/setup-build.js

Summary

Maintainability
A
0 mins
Test Coverage
const { writeFileSync, readFileSync } = require("fs");
const { resolve } = require("path");

const tsConfigPath = resolve(__dirname, "../tsconfig.json");
const tsConfigRaw = readFileSync(tsConfigPath);
const tsConfig = JSON.parse(tsConfigRaw);

tsConfig.compilerOptions.sourceMap = true;

writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2));