create-akan-workspace 1.0.12 → 1.0.14

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/cjs/index.js CHANGED
@@ -13,13 +13,14 @@ const spawnProcess = (command, args, options = {}) => {
13
13
  });
14
14
  });
15
15
  };
16
- import_commander.program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").action(async (org, options, command) => {
16
+ import_commander.program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").option("-l, --libs <boolean>", "install shared and util libraries", false).action(async (org, options, command) => {
17
17
  await spawnProcess("npm", ["install", "-g", "@akanjs/cli", "--latest"]);
18
18
  await spawnProcess("akan", [
19
19
  "create-workspace",
20
20
  ...org ? [org] : [],
21
21
  ...options.app ? [`--app=${options.app}`] : [],
22
- ...options.dir ? [`--dir=${options.dir}`] : []
22
+ ...options.dir ? [`--dir=${options.dir}`] : [],
23
+ ...options.libs ? [`--libs=${options.libs}`] : []
23
24
  ]);
24
25
  });
25
26
  const run = async () => {
package/esm/index.js CHANGED
@@ -13,13 +13,14 @@ const spawnProcess = (command, args, options = {}) => {
13
13
  });
14
14
  });
15
15
  };
16
- program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").action(async (org, options, command) => {
16
+ program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").option("-l, --libs <boolean>", "install shared and util libraries", false).action(async (org, options, command) => {
17
17
  await spawnProcess("npm", ["install", "-g", "@akanjs/cli", "--latest"]);
18
18
  await spawnProcess("akan", [
19
19
  "create-workspace",
20
20
  ...org ? [org] : [],
21
21
  ...options.app ? [`--app=${options.app}`] : [],
22
- ...options.dir ? [`--dir=${options.dir}`] : []
22
+ ...options.dir ? [`--dir=${options.dir}`] : [],
23
+ ...options.libs ? [`--libs=${options.libs}`] : []
23
24
  ]);
24
25
  });
25
26
  const run = async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sourceType": "module",
3
3
  "name": "create-akan-workspace",
4
- "version": "1.0.12",
4
+ "version": "1.0.14",
5
5
  "bin": {
6
6
  "create-akan-workspace": "cjs/index.js"
7
7
  },