react-responsive-tools 2.0.7 → 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.7",
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);
@@ -2,7 +2,7 @@
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
  import { fileURLToPath } from 'url'; // Импортируем необходимую функцию из 'url'
5
- import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.js';
5
+ import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.mjs';
6
6
 
7
7
  // Определение __filename и __dirname
8
8
  const __filename = fileURLToPath(import.meta.url);
@@ -2,7 +2,7 @@
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
  import { fileURLToPath } from 'url';
5
- import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.js';
5
+ import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.mjs';
6
6
 
7
7
  // Определение __filename и __dirname
8
8
  const __filename = fileURLToPath(import.meta.url);
@@ -2,7 +2,7 @@
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
  import { fileURLToPath } from 'url';
5
- import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.js';
5
+ import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.mjs';
6
6
 
7
7
  // Определение __filename и __dirname
8
8
  const __filename = fileURLToPath(import.meta.url);
File without changes