File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
packages/scripts/src/scripts Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 17
17
"license" : " ISC" ,
18
18
"dependencies" : {
19
19
"@wordpress/i18n" : " ^3.19.2" ,
20
- "@wpackio/entrypoint" : " ^5 .0.0 " ,
20
+ "@wpackio/entrypoint" : " ^6 .0.1 " ,
21
21
"jQuery" : " ^1.7.4" ,
22
22
"lodash" : " ^4.17.21" ,
23
23
"react" : " ^17.0.2" ,
24
24
"react-dom" : " ^17.0.2"
25
25
},
26
26
"devDependencies" : {
27
27
"@wpackio/scripts" : " ^5.0.0" ,
28
+ "fork-ts-checker-webpack-plugin" : " ^6.2.5" ,
28
29
"less" : " ^4.1.1" ,
29
- "postcss" : " ^8.2.12" ,
30
- "serve" : " ^11.3.2"
30
+ "postcss" : " ^8.2.13" ,
31
+ "serve" : " ^11.3.2" ,
32
+ "typescript" : " ^4.2.4"
31
33
}
32
34
}
Original file line number Diff line number Diff line change @@ -170,14 +170,16 @@ export class Bootstrap {
170
170
value : 'theme' ,
171
171
} ,
172
172
] ,
173
- initial : isTheme ? 'theme' : 'plugin' ,
173
+ initial : isTheme ? 1 : 0 ,
174
174
hint : isTheme
175
175
? 'We think yours is a THEME'
176
176
: 'We think yours is a PLUGIN' ,
177
177
} ,
178
178
// Ask appName (auto-generate from package.json)
179
179
{
180
- message : answers => `Name of WordPress ${ answers . type } (camelCase)` ,
180
+ message : prev => {
181
+ return `Name of WordPress ${ prev } (camelCase)` ;
182
+ } ,
181
183
name : 'appName' ,
182
184
type : 'text' ,
183
185
initial : camelCase ( this . pkg . name ) || '' ,
You can’t perform that action at this time.
0 commit comments