create-plasmic-app 0.0.158 → 0.0.160
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/dist/index.js +2 -3
- package/package.json +4 -4
- package/src/index.ts +2 -3
package/dist/index.js
CHANGED
|
@@ -85,7 +85,7 @@ const argv = yargs_1.default
|
|
|
85
85
|
boolean: true,
|
|
86
86
|
})
|
|
87
87
|
.option("appDir", {
|
|
88
|
-
describe: "(Next.js) Use app directory
|
|
88
|
+
describe: "(Next.js) Use app directory?",
|
|
89
89
|
boolean: true,
|
|
90
90
|
})
|
|
91
91
|
.strict()
|
|
@@ -220,8 +220,7 @@ function run() {
|
|
|
220
220
|
: "codegen";
|
|
221
221
|
const platformOptions = {};
|
|
222
222
|
if (platform === "nextjs") {
|
|
223
|
-
|
|
224
|
-
const showAppDirQuestion = false;
|
|
223
|
+
const showAppDirQuestion = true;
|
|
225
224
|
if (showAppDirQuestion) {
|
|
226
225
|
platformOptions.nextjs = {
|
|
227
226
|
appDir: yield maybePrompt({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.160",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"execa": "^5.0.0",
|
|
40
40
|
"findup-sync": "^4.0.0",
|
|
41
41
|
"glob": "^7.1.6",
|
|
42
|
-
"inquirer": "^8.
|
|
42
|
+
"inquirer": "^8.2.7",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"semver": "^7.3.5",
|
|
45
45
|
"upath": "^2.0.1",
|
|
46
46
|
"update-notifier": "^5.1.0",
|
|
47
47
|
"validate-npm-package-name": "^3.0.0",
|
|
48
|
-
"yargs": "^16.2.
|
|
48
|
+
"yargs": "^16.2.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "58b4b61085e23ff8c6a12a1575b12ae083bd6bec"
|
|
51
51
|
}
|
package/src/index.ts
CHANGED
|
@@ -61,7 +61,7 @@ const argv = yargs
|
|
|
61
61
|
boolean: true,
|
|
62
62
|
})
|
|
63
63
|
.option("appDir", {
|
|
64
|
-
describe: "(Next.js) Use app directory
|
|
64
|
+
describe: "(Next.js) Use app directory?",
|
|
65
65
|
boolean: true,
|
|
66
66
|
})
|
|
67
67
|
.strict()
|
|
@@ -212,8 +212,7 @@ async function run(): Promise<void> {
|
|
|
212
212
|
|
|
213
213
|
const platformOptions: PlatformOptions = {};
|
|
214
214
|
if (platform === "nextjs") {
|
|
215
|
-
|
|
216
|
-
const showAppDirQuestion = false;
|
|
215
|
+
const showAppDirQuestion = true;
|
|
217
216
|
if (showAppDirQuestion) {
|
|
218
217
|
platformOptions.nextjs = {
|
|
219
218
|
appDir: await maybePrompt({
|