nebula-starter-kit 0.0.15 → 0.0.17

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.
@@ -32,7 +32,7 @@ function getServicePorts(service, appName) {
32
32
  lambdaPort = httpPort + 1;
33
33
  }
34
34
  else {
35
- nebulaPath = path_1.default.join(ROOT, `../${appName}`, 'nebula.json');
35
+ nebulaPath = path_1.default.join(ROOT, `${appName}`, 'nebula.json');
36
36
  if (!fs_extra_1.default.existsSync(nebulaPath)) {
37
37
  throw new Error('Not a Nebula project');
38
38
  }
@@ -11,6 +11,10 @@ const listServices_1 = require("./listServices");
11
11
  const addService_1 = require("./addService");
12
12
  async function promptAppName() {
13
13
  const [, , command, argAppName] = process.argv;
14
+ if (!command) {
15
+ console.log(`❌ Missing command\nUsage: nebula <command> [options]\n`);
16
+ process.exit(1);
17
+ }
14
18
  const commands = ['create', 'add', 'list'];
15
19
  const addListCommands = ['add', 'list'];
16
20
  let config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nebula-starter-kit",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "bin": {
5
5
  "nebula": "./dist/index.js"
6
6
  },