react-responsive-tools 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-responsive-tools",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -36,7 +36,7 @@ const mergeBreakpointConfigs = async () => {
36
36
  }
37
37
 
38
38
  const mergedConfigContent = `
39
- // breakpoints.config.js
39
+ // breakpoints.config.mjs
40
40
  const HORIZONTAL_BREAKPOINTS = ${JSON.stringify(horizontalBreakpoints, null, 2)};
41
41
 
42
42
  const VERTICAL_BREAKPOINTS = ${JSON.stringify(verticalBreakpoints, null, 2)};
@@ -46,7 +46,7 @@ export { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS };
46
46
 
47
47
  try {
48
48
  // Создаем новый файл с именем breakpoints.config.js
49
- fs.writeFileSync(userConfigPath, mergedConfigContent);
49
+ fs.writeFileSync('../breakpoints.config.mjs', mergedConfigContent);
50
50
  console.log('Config file have been generated successfully.');
51
51
  } catch (error) {
52
52
  console.error('Error writing merged config file:', error);