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

Minimize changes made to local elm-package.json file. #7

Merged
merged 1 commit into from
Jun 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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