sandstone-cli 1.2.4 → 1.2.5
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/lib/commands/create.js +3 -3
- package/package.json +1 -1
- package/src/commands/create.ts +4 -3
package/lib/commands/create.js
CHANGED
|
@@ -68,6 +68,9 @@ export async function createCommand(_project, opts) {
|
|
|
68
68
|
// Find the save directory
|
|
69
69
|
const saveOptions = {};
|
|
70
70
|
if (version[0].major === 1) {
|
|
71
|
+
if (opts.clientPath) {
|
|
72
|
+
saveOptions.clientPath = opts.clientPath;
|
|
73
|
+
}
|
|
71
74
|
if (opts.root) {
|
|
72
75
|
saveOptions.root = true;
|
|
73
76
|
}
|
|
@@ -125,9 +128,6 @@ export async function createCommand(_project, opts) {
|
|
|
125
128
|
case 'none': break;
|
|
126
129
|
}
|
|
127
130
|
}
|
|
128
|
-
if (opts.clientPath) {
|
|
129
|
-
saveOptions.clientPath = opts.clientPath;
|
|
130
|
-
}
|
|
131
131
|
}
|
|
132
132
|
let packageManager = 'npm';
|
|
133
133
|
const yarn = hasYarn();
|
package/package.json
CHANGED
package/src/commands/create.ts
CHANGED
|
@@ -103,6 +103,10 @@ export async function createCommand(_project: string, opts: CreateOptions) {
|
|
|
103
103
|
} = {}
|
|
104
104
|
|
|
105
105
|
if (version[0].major === 1) {
|
|
106
|
+
if (opts.clientPath) {
|
|
107
|
+
saveOptions.clientPath = opts.clientPath
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
if (opts.root) {
|
|
107
111
|
saveOptions.root = true
|
|
108
112
|
} else if (opts.world) {
|
|
@@ -159,9 +163,6 @@ export async function createCommand(_project: string, opts: CreateOptions) {
|
|
|
159
163
|
case 'none': break
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
|
-
if (opts.clientPath) {
|
|
163
|
-
saveOptions.clientPath = opts.clientPath
|
|
164
|
-
}
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
let packageManager = 'npm'
|