title: meteorite local packages, having trouble setting the global namespace?
body: <p>My current project is at <a href="https://github.com/jimmack1963/localPackages.git" rel="nofollow">https://github.com/jimmack1963/localPackages.git</a>.  </p>
  
  <p>I am trying to get this code to work:</p>
  
  <pre><code>console.log("You pressed the button, " + MyName);
  </code></pre>
  
  <p>where MyName comes from a package called simple, that is JUST LOCAL.  Per 6.5, am exporting via</p>
  
  <pre><code>Package.on_use(function (api, where) {
      api.add_files(['constant.js'], 'client');
    //below added per possible suggestion from Nathan, had no effect.
      api.use('constant.js', 'client');
  
      if (api.export)
          api.export('MyName');
  });
  </code></pre>
  
  <p>Am trying to factor my code out to local packages.  This is not about publishing packages, but about using local ones, which is referred to in many places.  My package is simply trying to publish a string, MyName.  But the project wants none of it.  "MyName is not defined."</p>
  
  <p>I copy the technique in 'Discover Meteor,' but it doesn't work for me, and I try other things.  Have had a lot of success in Meteor in general.</p>
  
  <p>This spec seems to be changing.  I get the 6.5 export requirement, but easily find contradictory advise about the base project's need to add that project in smart.json (not the one in the package).  Most references don't list that as a requirement at all.</p>
  
  <p>I've tried</p>
  
  <pre><code>{
    "packages": {
        "simple" : {
            "path": "packages/simple"
        }
    }
  }
  </code></pre>
  
  <p>and putting it into git and trying from a different project:</p>
  
  <pre><code>{
    "packages": {
   "simple" : {
            "git": "https://github.com/jimmack1963/localPackages.git"
        }     
  
      }
  }
  </code></pre>
  
  <p>For the latter, pleasingly, the installer was smart enough to burrow down and extract the package itself, ignoring the project wrapping it in the git project.  Nice!  So, I have the same problem when I install the package directly from git, still not published to the world.</p>
  
  <ul>
  <li>Ubuntu 13.04</li>
  <li>Meteorite version 0.6.11</li>
  <li>Meteor Release 0.6.5.1</li>
  </ul>