Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7 from fredcy/ordereddict
Browse files Browse the repository at this point in the history
Minimize changes made to local elm-package.json file.
  • Loading branch information
eeue56 authored Jun 20, 2016
2 parents 008e01c + 682363a commit b20883f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elm_self_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b20883f

Please sign in to comment.