Fix shebang backward compatibilities

This commit is contained in:
loicsaintroch 2015-10-05 14:06:11 +02:00
parent 94ddbc6881
commit 968e36d879
11 changed files with 18 additions and 12 deletions

8
bin/_spawn.js Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env node
var spawn = require('child_process').spawn;
var args = [ __dirname + '/strapi.js' ].concat(process.argv.slice(2));
spawn(process.argv[0], ['--harmony'].concat(args), {
stdio: [0, 1, 2]
});

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -1,4 +1,4 @@
#!/usr/bin/env node --harmony
#!/usr/bin/env node
'use strict';

View File

@ -32,9 +32,7 @@
"lib": "./lib"
},
"main": "./lib",
"bin": {
"strapi": "./bin/strapi.js"
},
"bin": "./bin/_spawn.js",
"dependencies": {
"anchor": "^0.10.5",
"async": "^1.4.2",