File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -126,24 +126,17 @@ module.exports = function (
126
126
127
127
const templatePackage = templateJson . package || { } ;
128
128
129
- // TODO: Deprecate support for root-level `dependencies` and `scripts` in v5.
130
- // These should now be set under the `package` key.
129
+ // This was deprecated in CRA v5.
131
130
if ( templateJson . dependencies || templateJson . scripts ) {
132
131
console . log ( ) ;
133
132
console . log (
134
- chalk . yellow (
135
- 'Root-level `dependencies` and `scripts` keys in `template.json` are deprecated.\n' +
136
- 'This template should be updated to use the new `package` key.'
133
+ chalk . red (
134
+ 'Root-level `dependencies` and `scripts` keys in `template.json` were deprecated for Create React App 5 .\n' +
135
+ 'This template needs to be updated to use the new `package` key.'
137
136
)
138
137
) ;
139
138
console . log ( 'For more information, visit https://cra.link/templates' ) ;
140
139
}
141
- if ( templateJson . dependencies ) {
142
- templatePackage . dependencies = templateJson . dependencies ;
143
- }
144
- if ( templateJson . scripts ) {
145
- templatePackage . scripts = templateJson . scripts ;
146
- }
147
140
148
141
// Keys to ignore in templatePackage
149
142
const templatePackageBlacklist = [
You can’t perform that action at this time.
0 commit comments