FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge branch 'release/v1.1.1' into production · phra/loopback-sdk-angular-cli@5842954 · GitHub

Repository navigation

Commit 5842954

Browse files
Miroslav Bajtoš
committed
Merge branch 'release/v1.1.1' into production
2 parents 7649c05 + a92ec49 commit 5842954

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎bin/lb-ng‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ if (outputFile) {
4242
// The app.js scaffolded by `slc lb project` loads strong-agent module that
4343
// used to have a bug where it prevented the application from exiting.
4444
// 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+
});
4651

4752
//--- helpers ---//
4853

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loopback-angular-cli",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "CLI tools for auto-generating Angular $resource services for LoopBack",
55
"bin": {
66
"lb-ng": "bin/lb-ng",
@@ -35,6 +35,7 @@
3535
"node": ">= 0.8.0"
3636
},
3737
"dependencies": {
38+
"express": "3.x",
3839
"docular": "^0.6.3",
3940
"loopback-angular": "^1.1.0",
4041
"optimist": "^0.6.1",

‎test/lb-ng.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('lb-ng', function() {
6262
//-- Helpers --
6363

6464
function runLbNg() {
65-
var argv = [require.resolve('../bin/lb-ng')]
65+
var argv = [process.execPath, require.resolve('../bin/lb-ng')]
6666
.concat(Array.prototype.slice.call(arguments))
6767
.map(JSON.stringify)
6868
.join(' ');

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL