Skip to content

Commit

Permalink
Revert modified package.json during prepare
Browse files Browse the repository at this point in the history
The publish step requires a pristine tree, so revert to aim for cleanliness
  • Loading branch information
alexlian committed Mar 5, 2018
1 parent f7a630f commit ec53cb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ def fill_publish_order(tree):
unity_package_build.copy_file_to_project("CHANGELOG.md", ".", package_path, logger)

def cleanup(logger):
logger.info("Removing temporary files:")
logger.info("Reverting temporary file changes:")
files = []
for name in publish_order:
folder = sub_package_folders[name]
# files.append(os.path.join(folder, "package.json"))
files.append(os.path.join(folder, "package.json"))
for file in files:
logger.info(" {}".format(file))
os.remove(file)
subprocess.call(["git", "checkout", file], cwd=".")

# Prepare an empty project for editor tests
def prepare_editor_test_project(repo_path, project_path, logger):
Expand Down

0 comments on commit ec53cb7

Please sign in to comment.