gsd-init 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/gsd-init.js CHANGED
@@ -233,5 +233,5 @@ if (require.main === module) {
233
233
  module.exports = {
234
234
  planInstall, getSettingsLabel, formatDryRun, mkdirpSync,
235
235
  copyTemplates, chmodScripts, mergeSettings, printSummary,
236
- TEMPLATE_FILES, SH_FILES, makeGsdEntry, gsdRoot
236
+ TEMPLATE_FILES, SH_FILES, makeGsdEntry, gsdRoot, run
237
237
  };
package/bin/gsd.js CHANGED
@@ -33,8 +33,12 @@ switch (cmd) {
33
33
  console.error('Usage: gsd init <project-name>');
34
34
  process.exit(1);
35
35
  }
36
- var initScript = path.join(__dirname, 'gsd-init.js');
37
- execFileSync(process.execPath, [initScript, projectName], { stdio: 'inherit' });
36
+ // Inject project name into argv so gsd-init.js picks it up via process.argv
37
+ process.argv = [process.argv[0], process.argv[1], projectName];
38
+ require('./gsd-init.js').run().catch(function(e) {
39
+ console.error(e.message);
40
+ process.exit(1);
41
+ });
38
42
  break;
39
43
  }
40
44
  case 'start':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd-init",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Set up GSD observer/worker tmux system in a project",
5
5
  "bin": {
6
6
  "gsd-init": "bin/gsd-init.js",