create-plasmic-app 0.0.107 → 0.0.108
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 +7 -5
- package/package.json +2 -2
- package/src/index.ts +7 -5
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"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.108",
|
|
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": "b3a51423bc2605bf2fe501a3cd4278b0212bd580"
|
|
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
|