From bf8308ce268784474b0fead4a2118c75bf321fdd Mon Sep 17 00:00:00 2001 From: justinwoo Date: Fri, 19 Oct 2018 14:48:29 +0300 Subject: [PATCH] apparently nested modules are just identifiers --- app/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Main.hs b/app/Main.hs index cdd89c8..997aeb3 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -69,7 +69,7 @@ run (Bundle withMain mModuleName mTargetPath) = do run (MakeModule mModuleName mTargetPath) = do let (moduleName, targetPath) = prepareBundleDefaults mModuleName mTargetPath - cmd = "echo 'module.exports = PS."<> moduleName <> ";' >> " <> targetPath + cmd = "echo 'module.exports = PS[\""<> moduleName <> "\"];' >> " <> targetPath T.echo "Bundling first..." run $ Bundle WithoutMain (Just moduleName) (Just targetPath) code <- T.shell cmd T.empty