create-akan-workspace 2.0.7 → 2.1.0-rc.0
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/index.js +5 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -2168,16 +2168,18 @@ var run = async ({
|
|
|
2168
2168
|
spawnCommand = spawn
|
|
2169
2169
|
} = {}) => {
|
|
2170
2170
|
const program2 = new Command().name("create-akan-workspace");
|
|
2171
|
-
program2.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) => {
|
|
2171
|
+
program2.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).option("-i, --init <boolean>", "install dependencies and initialize git", true).action(async (org, options) => {
|
|
2172
2172
|
const packageVersion = await getPackageVersion();
|
|
2173
|
-
await spawnProcess(spawnCommand, "bun", ["install", "-g",
|
|
2173
|
+
await spawnProcess(spawnCommand, "bun", ["install", "-g", `@akanjs/cli@${packageVersion}`]);
|
|
2174
2174
|
const libs = options.libs === true || options.libs === "true";
|
|
2175
|
+
const init = options.init === undefined || options.init === true || options.init === "true";
|
|
2175
2176
|
await spawnProcess(spawnCommand, "akan", [
|
|
2176
2177
|
"create-workspace",
|
|
2177
2178
|
...org ? [org] : [],
|
|
2178
2179
|
...options.app ? [`--app=${options.app}`] : [],
|
|
2179
2180
|
...options.dir ? [`--dir=${options.dir}`] : [],
|
|
2180
|
-
`--libs=${libs}
|
|
2181
|
+
`--libs=${libs}`,
|
|
2182
|
+
`--init=${init}`
|
|
2181
2183
|
]);
|
|
2182
2184
|
});
|
|
2183
2185
|
await program2.parseAsync(argv);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sourceType": "module",
|
|
3
3
|
"name": "create-akan-workspace",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.1.0-rc.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-akan-workspace": "index.js"
|
|
7
7
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/akan-team/akanjs.git",
|
|
16
|
-
"directory": "pkgs/
|
|
16
|
+
"directory": "pkgs/create-akan-workspace"
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
19
19
|
"dependencies": {
|