| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,12 @@ if (outputFile) { | |||
| 42 | 42 | // The app.js scaffolded by `slc lb project` loads strong-agent module that | |
| 43 | 43 | // used to have a bug where it prevented the application from exiting. | |
| 44 | 44 | // To work around that issue, we are explicitly exiting here. | |
| 45 | - process.exit(); | ||
| 45 | + // | ||
| 46 | + // The exit is deferred to the next tick in order to prevent the Node bug: | ||
| 47 | + // https://github.com/joyent/node/issues/3584 | ||
| 48 | + process.nextTick(function() { | ||
| 49 | + process.exit(); | ||
| 50 | + }); | ||
| 46 | 51 | ||
| 47 | 52 | //--- helpers ---// | |
| 48 | 53 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "loopback-angular-cli", | |
| 3 | - "version": "1.1.0", | ||
| 3 | + "version": "1.1.1", | ||
| 4 | 4 | "description": "CLI tools for auto-generating Angular $resource services for LoopBack", | |
| 5 | 5 | "bin": { | |
| 6 | 6 | "lb-ng": "bin/lb-ng", | |
@@ -35,6 +35,7 @@ | |||
| 35 | 35 | "node": ">= 0.8.0" | |
| 36 | 36 | }, | |
| 37 | 37 | "dependencies": { | |
| 38 | + "express": "3.x", | ||
| 38 | 39 | "docular": "^0.6.3", | |
| 39 | 40 | "loopback-angular": "^1.1.0", | |
| 40 | 41 | "optimist": "^0.6.1", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ describe('lb-ng', function() { | |||
| 62 | 62 | //-- Helpers -- | |
| 63 | 63 | ||
| 64 | 64 | function runLbNg() { | |
| 65 | - var argv = [require.resolve('../bin/lb-ng')] | ||
| 65 | + var argv = [process.execPath, require.resolve('../bin/lb-ng')] | ||
| 66 | 66 | .concat(Array.prototype.slice.call(arguments)) | |
| 67 | 67 | .map(JSON.stringify) | |
| 68 | 68 | .join(' '); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments