create-plasmic-app 0.0.107 → 0.0.109
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 +8 -6
- package/package.json +2 -2
- package/src/index.ts +8 -6
package/dist/index.js
CHANGED
|
@@ -182,22 +182,24 @@ function run() {
|
|
|
182
182
|
// Prompt for Typescript
|
|
183
183
|
const jsOrTs = platform === "tanstack"
|
|
184
184
|
? "ts"
|
|
185
|
-
: yield maybePrompt({
|
|
185
|
+
: (yield maybePrompt({
|
|
186
186
|
name: "typescript",
|
|
187
187
|
message: "What language do you want to use?",
|
|
188
188
|
type: "list",
|
|
189
189
|
choices: () => [
|
|
190
190
|
{
|
|
191
191
|
name: "TypeScript",
|
|
192
|
-
value:
|
|
192
|
+
value: true,
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
name: "JavaScript",
|
|
196
|
-
value:
|
|
196
|
+
value: false,
|
|
197
197
|
},
|
|
198
198
|
],
|
|
199
|
-
default:
|
|
200
|
-
})
|
|
199
|
+
default: true,
|
|
200
|
+
}))
|
|
201
|
+
? "ts"
|
|
202
|
+
: "js";
|
|
201
203
|
// Scheme to use for Plasmic integration
|
|
202
204
|
// - loader only available for gatsby/next.js
|
|
203
205
|
const scheme = platform === "nextjs" || platform === "gatsby"
|
|
@@ -250,7 +252,7 @@ function run() {
|
|
|
250
252
|
console.log();
|
|
251
253
|
const projectInput = yield maybePrompt({
|
|
252
254
|
name: "projectId",
|
|
253
|
-
message: `If you don't have a project yet, create one by going to https://studio.plasmic.app/starters/blank
|
|
255
|
+
message: `If you don't have a project yet, create one by going to https://studio.plasmic.app/starters/blank
|
|
254
256
|
What is the URL of your project?`,
|
|
255
257
|
validate: cpa.checkProjectInput,
|
|
256
258
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.109",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"validate-npm-package-name": "^3.0.0",
|
|
47
47
|
"yargs": "^16.2.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "6d71fb9313428d0faacaea10aa19822cddcb286e"
|
|
50
50
|
}
|
package/src/index.ts
CHANGED
|
@@ -176,22 +176,24 @@ async function run(): Promise<void> {
|
|
|
176
176
|
const jsOrTs: JsOrTs =
|
|
177
177
|
platform === "tanstack"
|
|
178
178
|
? "ts"
|
|
179
|
-
: await maybePrompt({
|
|
179
|
+
: (await maybePrompt({
|
|
180
180
|
name: "typescript",
|
|
181
181
|
message: "What language do you want to use?",
|
|
182
182
|
type: "list",
|
|
183
183
|
choices: () => [
|
|
184
184
|
{
|
|
185
185
|
name: "TypeScript",
|
|
186
|
-
value:
|
|
186
|
+
value: true,
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
name: "JavaScript",
|
|
190
|
-
value:
|
|
190
|
+
value: false,
|
|
191
191
|
},
|
|
192
192
|
],
|
|
193
|
-
default:
|
|
194
|
-
})
|
|
193
|
+
default: true,
|
|
194
|
+
}))
|
|
195
|
+
? "ts"
|
|
196
|
+
: "js";
|
|
195
197
|
|
|
196
198
|
// Scheme to use for Plasmic integration
|
|
197
199
|
// - loader only available for gatsby/next.js
|
|
@@ -249,7 +251,7 @@ async function run(): Promise<void> {
|
|
|
249
251
|
console.log();
|
|
250
252
|
const projectInput = await maybePrompt<string>({
|
|
251
253
|
name: "projectId",
|
|
252
|
-
message: `If you don't have a project yet, create one by going to https://studio.plasmic.app/starters/blank
|
|
254
|
+
message: `If you don't have a project yet, create one by going to https://studio.plasmic.app/starters/blank
|
|
253
255
|
What is the URL of your project?`,
|
|
254
256
|
validate: cpa.checkProjectInput,
|
|
255
257
|
});
|