jspm-watch icon indicating copy to clipboard operation
jspm-watch copied to clipboard

App crashes if config/package does not contain certain values

Open NervosaX opened this issue 8 years ago • 21 comments

Part of my package.json: if some of these don't exist, the watcher complains that the value doesn't exist. I had to read the source code to figure out where this was.

  "jspm": {
    "configFile": "jspm.config.js", // Required
    "directories": {
      "baseURL": ".", // Required
      "packages": "jspm_packages" // Required
    }
  }

It was here:

https://github.com/fyodorvi/jspm-watch/blob/master/index.js#L380-L382


Also my config had to have a baseURL, or it failed here:

https://github.com/fyodorvi/jspm-watch/blob/master/index.js#L400

NervosaX avatar Apr 14 '16 05:04 NervosaX