Browse Source

updated build script to copy typescript.js from the node_modules directory and place it in the editor/modules directory

Shaddock Heath 10 years ago
parent
commit
62fe7fdd75
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Build/Scripts/BuildCommon.js

+ 3 - 2
Build/Scripts/BuildCommon.js

@@ -88,8 +88,9 @@ namespace('build', function() {
             console.log("\n\nLint: Typescript linting complete.\n\n");
             jake.exec(cmds, function() {
 
-                // copy 3rd party module folder to the destination.  This needs to be more thought out though..maybe another place to store this?
-               jake.cpR("./Script/AtomicEditor/modules","./Artifacts/Build/Resources/EditorData/AtomicEditor/EditorScripts/AtomicEditor");
+                // copy typescript into the editor modules directory since there is a dependency there
+               fs.mkdirsSync("./Artifacts/Build/Resources/EditorData/AtomicEditor/EditorScripts/AtomicEditor/modules");
+               fs.copySync("./Build/node_modules/typescript/lib/typescript.js","./Artifacts/Build/Resources/EditorData/AtomicEditor/EditorScripts/AtomicEditor/modules/typescript.js")
                complete();
 
             }, {