File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
" typescript"
9
9
],
10
10
"description" : " The base TypeScript template for Create React App." ,
11
- "main" : " template.json" ,
12
11
"repository" : {
13
12
"type" : " git" ,
14
13
"url" : " https://github.com/facebook/create-react-app.git" ,
Original file line number Diff line number Diff line change 7
7
" template"
8
8
],
9
9
"description" : " The base template for Create React App." ,
10
- "main" : " template.json" ,
11
10
"repository" : {
12
11
"type" : " git" ,
13
12
"url" : " https://github.com/facebook/create-react-app.git" ,
Original file line number Diff line number Diff line change @@ -106,9 +106,11 @@ module.exports = function(
106
106
return ;
107
107
}
108
108
109
- const templatePath = path . join (
110
- require . resolve ( templateName , { paths : [ appPath ] } ) ,
111
- '..'
109
+ const templatePath = path . dirname (
110
+ path . join (
111
+ require . resolve ( `templateName/package.json` , { paths : [ appPath ] } ) ,
112
+ '..'
113
+ )
112
114
) ;
113
115
114
116
let templateJsonPath ;
You can’t perform that action at this time.
0 commit comments