From b957163972977fbceee139fc7e586e7f17b50916 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Dec 2023 11:21:54 +0100 Subject: Inline data.js --- tools/gendata.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/gendata.js') diff --git a/tools/gendata.js b/tools/gendata.js index f08614f..190caec 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -83,5 +83,4 @@ def_us_state("RI", "Rhode Island", NORTHEAST) def_us_state("VT", "Vermont", NORTHEAST) console.log("const us_state_count =", US_STATES.length) - -fs.writeFileSync("data.js", "const US_STATES = " + JSON.stringify(US_STATES, 0, 0) + "\nif (typeof module !== 'undefined') module.exports = { US_STATES }\n") +console.log("const US_STATES = " + JSON.stringify(US_STATES, 0, 8)) -- cgit v1.2.3