@@ -113,19 +113,28 @@ class Commands(SimpleNamespace):
113113
114114 _react_version = _determine_react_version ()
115115
116- DEPENDENCIES = {
117- "@emotion/react" : "11.14.0" ,
118- "axios" : "1.9.0" ,
119- "json5" : "2.2.3" ,
120- "next" : _determine_nextjs_version (),
121- "next-sitemap" : "4.2.3" ,
122- "next-themes" : "0.4.6" ,
123- "react" : _react_version ,
124- "react-dom" : _react_version ,
125- "react-focus-lock" : "2.13.6" ,
126- "socket.io-client" : "4.8.1" ,
127- "universal-cookie" : "7.2.2" ,
128- }
116+ @classproperty
117+ @classmethod
118+ def DEPENDENCIES (cls ) -> dict [str , str ]:
119+ """The dependencies to include in package.json.
120+
121+ Returns:
122+ A dictionary of dependencies with their versions.
123+ """
124+ return {
125+ "@emotion/react" : "11.14.0" ,
126+ "axios" : "1.9.0" ,
127+ "json5" : "2.2.3" ,
128+ "next" : _determine_nextjs_version (),
129+ "next-sitemap" : "4.2.3" ,
130+ "next-themes" : "0.4.6" ,
131+ "react" : cls ._react_version ,
132+ "react-dom" : cls ._react_version ,
133+ "react-focus-lock" : "2.13.6" ,
134+ "socket.io-client" : "4.8.1" ,
135+ "universal-cookie" : "7.2.2" ,
136+ }
137+
129138 DEV_DEPENDENCIES = {
130139 "autoprefixer" : "10.4.21" ,
131140 "postcss" : "8.5.3" ,
0 commit comments