File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 88 " typescript"
99 ],
1010 "description" : " The base TypeScript template for Create React App." ,
11- "main" : " template.json" ,
1211 "repository" : {
1312 "type" : " git" ,
1413 "url" : " https://github.com/facebook/create-react-app.git" ,
Original file line number Diff line number Diff line change 77 " template"
88 ],
99 "description" : " The base template for Create React App." ,
10- "main" : " template.json" ,
1110 "repository" : {
1211 "type" : " git" ,
1312 "url" : " https://github.com/facebook/create-react-app.git" ,
Original file line number Diff line number Diff line change @@ -106,9 +106,8 @@ module.exports = function(
106106 return ;
107107 }
108108
109- const templatePath = path . join (
110- require . resolve ( templateName , { paths : [ appPath ] } ) ,
111- '..'
109+ const templatePath = path . dirname (
110+ require . resolve ( `${ templateName } /package.json` , { paths : [ appPath ] } )
112111 ) ;
113112
114113 let templateJsonPath ;
You can’t perform that action at this time.
0 commit comments