@embeddable.com/sdk-core 0.0.7 → 0.0.9

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.
Files changed (2) hide show
  1. package/bin/embeddable +11 -2
  2. package/package.json +3 -1
package/bin/embeddable CHANGED
@@ -1,13 +1,22 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- const { push } = require("../scripts/push");
5
4
  const { build } = require("../scripts/build");
5
+ const { login } = require("../scripts/login");
6
+ const { push } = require("../scripts/push");
7
+
8
+ const COMMANDS_MAP = {
9
+ build,
10
+ login,
11
+ push
12
+ };
6
13
 
7
14
  async function main () {
8
15
  const command = process.argv[2];
9
16
 
10
- const runScript = command === 'build' ? build : push;
17
+ const runScript = COMMANDS_MAP[command];
18
+
19
+ if (!runScript) process.exit(1); // TODO: proper handling.
11
20
 
12
21
  await runScript();
13
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -32,7 +32,9 @@
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
34
  "@stencil/core": "^4.0.0",
35
+ "archiver": "^5.3.1",
35
36
  "axios": "^1.4.0",
37
+ "formdata-node": "^5.0.1",
36
38
  "prompt": "^1.3.0"
37
39
  }
38
40
  }