title: jspm/ES6 compile error, packages location incorrect
body: <p>I'm having a difficult time getting the <code>jspm_packages</code> to work correctly in my <code>jspm</code> configuration in my <code>packages.json</code>. I'm writing an app in EM6 (babel engine).</p>
  
  <p>I have a gulp file that places my ES6 javascript to a folder called <code>.tmp/scripts</code>:</p>
  
  <pre><code>gulp.task('transpile:app', ['templates'], function() {
    return gulp.src('app/scripts/**/*.js')
      .pipe($.babel({ sourceMap: true }))
      .pipe(gulp.dest('.tmp/scripts'));
  });
  </code></pre>
  
  <p>And then a bundle task that is supposed to convert the files in <code>.tmp</code> into a folder called <code>dist</code>:</p>
  
  <pre><code>// Bundle javascripts
  gulp.task('bundle:app', function() {
    return gulp.src('')
      .pipe($.shell('jspm bundle-sfx app dist/scripts/app.js --minify --skip-source-maps'));
  });
  </code></pre>
  
  <p>This is where is fails. </p>
  
  <p>Running <code>jspm bundle-sfx app dist/scripts/app.js --minify --skip-source-maps'</code> prompts this error:</p>
  
  <pre><code>warn jspm_packages must be specified in the package.json within the baseURL for paths to resolve correctly.
       Building the single-file sfx bundle for app...
  
  err  Error: ENOENT, open '/Users/connorblack/git/**********/jspm_packages/github/marionettejs/backbone.marionette@2.4.2.js'
           at Error (native)
  </code></pre>
  
  <p>The odd thing is that this file path for <code>jspm_packages</code> is looking two directories above where it should be, thus prompting the <code>ENOENT</code> error.</p>
  
  <p>I dove a little into the docs, and found that you can set a <code>"packages"</code> attribute in your <code>package.json</code>, which is what I have done, and this is what my current file looks like:</p>
  
  <pre><code>...
  "jspm": {
      "directories": {
        "baseURL": ".tmp/scripts",
        "lib": "app",
        "packages": "jspm_packages"
      },
  ...
  </code></pre>
  
  <p>I've tried multiple variations, but they all end up with a similar error. Prefixing <code>../../</code> steps further up my file system, but since the command is already looking two directories above, this doesn't help. </p>
  
  <p>As you would expect, removing the attribute entirely from my <code>package.json</code> removes the warning and changes the <code>ENOENT</code>:</p>
  
  <pre><code>     Building the single-file sfx bundle for app...
  
  err  Error: ENOENT, open '/Users/connorblack/git/********/*********/skeleton/.tmp/scripts/jspm_packages/github/marionettejs/backbone.marionette@2.4.2.js'
           at Error (native)
  </code></pre>
  
  <p>where it now appears to be looking for the <code>jspm_packages</code> folder below my <code>baseURL</code> (<code>.tmp/scripts</code>), which is where my gulp process places my app's scripts before converting from ES6 to normal JS. </p>
  
  <p>I'm at my wit's end here. I can't seem to get the <code>jspm</code> process to correctly find the <code>jspm_packages</code> and thus I can't compile my app.</p>
  
  <p>Any help would be greatly appreciated. </p>