@bagelink/workspace 1.10.5 → 1.10.6
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/bgl.ts +2 -2
- package/dist/bin/bgl.cjs +2 -2
- package/dist/bin/bgl.mjs +2 -2
- package/package.json +1 -1
package/bin/bgl.ts
CHANGED
|
@@ -10,8 +10,8 @@ const [,, command, subcommand, ...args] = process.argv
|
|
|
10
10
|
|
|
11
11
|
async function main() {
|
|
12
12
|
if (command === 'init') {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
13
|
+
const createWorkspace = args.includes('--workspace') || args.includes('-w')
|
|
14
|
+
if (createWorkspace) {
|
|
15
15
|
await initWorkspace()
|
|
16
16
|
}
|
|
17
17
|
else {
|
package/dist/bin/bgl.cjs
CHANGED
|
@@ -14,8 +14,8 @@ const process__default = /*#__PURE__*/_interopDefaultCompat(process);
|
|
|
14
14
|
const [, , command, subcommand, ...args] = process__default.argv;
|
|
15
15
|
async function main() {
|
|
16
16
|
if (command === "init") {
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
17
|
+
const createWorkspace = args.includes("--workspace") || args.includes("-w");
|
|
18
|
+
if (createWorkspace) {
|
|
19
19
|
await detect.initWorkspace();
|
|
20
20
|
} else {
|
|
21
21
|
await detect.generateWorkspaceConfig();
|
package/dist/bin/bgl.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import 'prompts';
|
|
|
8
8
|
const [, , command, subcommand, ...args] = process.argv;
|
|
9
9
|
async function main() {
|
|
10
10
|
if (command === "init") {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const createWorkspace = args.includes("--workspace") || args.includes("-w");
|
|
12
|
+
if (createWorkspace) {
|
|
13
13
|
await initWorkspace();
|
|
14
14
|
} else {
|
|
15
15
|
await generateWorkspaceConfig();
|
package/package.json
CHANGED