From 644df12ff5ab037911cb0db4593d5b8a1b1d1d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 7 Sep 2023 01:33:28 +0200 Subject: Normalize tsconfig formatting. --- static/prettify-tsconfig.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 static/prettify-tsconfig.js (limited to 'static/prettify-tsconfig.js') diff --git a/static/prettify-tsconfig.js b/static/prettify-tsconfig.js new file mode 100755 index 00000000..a2bef6f0 --- /dev/null +++ b/static/prettify-tsconfig.js @@ -0,0 +1,15 @@ +#!/usr/bin/env node + +/* + * Script to normalize tsconfig.json. + */ + +const { parse, stringify, assign } = require('comment-json') +const fs = require('fs') + +const filename = 'tsconfig.json' + +const obj = parse(fs.readFileSync(filename).toString()) +const output = stringify(obj, null, 4) + +fs.writeFileSync(filename, output) -- cgit v1.2.3