File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if (!pathToProject) {
2626 )
2727}
2828
29- const ROOT = resolve ( __dirname , '..' )
29+ const ROOT = process . cwd ( )
3030const PACKAGE_ROOT = resolve ( ROOT , pathToProject )
3131
3232main ( )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if (!pathToProject) {
2424 )
2525}
2626
27- const ROOT = resolve ( __dirname , '..' )
27+ const ROOT = process . cwd ( )
2828const PACKAGE_ROOT = resolve ( ROOT , pathToProject )
2929
3030main ( )
@@ -132,6 +132,10 @@ function updatePackageJson() {
132132 'sort-package-json' ,
133133 'sort-object-keys' ,
134134 'shelljs' ,
135+ // packages needed for init script
136+ 'prompts' ,
137+ '@types/prompts' ,
138+ 'replace-in-file' ,
135139 // v4 -> v5
136140 'gzip-size-cli' ,
137141 'strip-json-comments-cli' ,
You can’t perform that action at this time.
0 commit comments