summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-08 11:21:54 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-08 11:23:27 +0100
commitb957163972977fbceee139fc7e586e7f17b50916 (patch)
tree6763e82c8dbbf474b0334266e4f90b5695a5ea46 /tools
parent6458bf77fb8b33551a1f44a3d3de4ecd222d2ce6 (diff)
downloadvotes-for-women-b957163972977fbceee139fc7e586e7f17b50916.tar.gz
Inline data.js
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js3
1 files changed, 1 insertions, 2 deletions
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))