From f4eaecabb72e3d7bc90901d8d032bcaac8d1a06c Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Tue, 5 Jan 2016 19:41:32 +0100 Subject: [PATCH] update .re-natal file in upgrade function --- re-natal.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/re-natal.coffee b/re-natal.coffee index 1e49bac..5babd9f 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -452,6 +452,12 @@ doUpgrade = (config) -> copyFigwheelBridge(projNameUs) log 'upgraded figwheel-bridge.js' + if (!config.modules) + config.modules = [] + + writeConfig(config) + log 'upgraded .re-natal' + useComponent = (name) -> log "Component '#{name}' is now configured for figwheel, please re-run 'use-figwheel' command to take effect" try