From 682363a1df2607f3e3ea68998cc9e93856294f29 Mon Sep 17 00:00:00 2001 From: Fred Yankowski Date: Thu, 26 May 2016 10:57:01 -0500 Subject: [PATCH] Minimize changes made to local elm-package.json file. --- elm_self_publish.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elm_self_publish.py b/elm_self_publish.py index 89c2c65..13580c6 100755 --- a/elm_self_publish.py +++ b/elm_self_publish.py @@ -7,6 +7,7 @@ import os import errno import argparse +from collections import OrderedDict def copy_package(location, destination, ignorer=None): shutil.rmtree(destination, ignore_errors=True) @@ -91,7 +92,7 @@ def self_publish(package_location, destination=".", quiet=False): json.dump(package_info, f, sort_keys=False, indent=4) with open(destination_elm_package_file) as f: - destination_elm_package = json.load(f) + destination_elm_package = json.load(f, object_pairs_hook=OrderedDict) with open(destination_elm_package_file, 'w') as f: destination_elm_package['dependencies'][place] = "{version} <= v <= {version}".format(version=version)