@react-pakistan/util-functions 1.20.2 → 1.20.4

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-pakistan/util-functions",
3
- "version": "1.20.2",
3
+ "version": "1.20.4",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,10 +22,10 @@ const generateReactDesignScript = (fs) => {
22
22
  fs.readdirSync(svgDir).forEach((folderName) => {
23
23
  if (folderName === '.DS_Store')
24
24
  return;
25
- const flowArray = folderName.split('-');
26
- const flow = flowArray[flowArray.length - 1];
25
+ // const flowArray = folderName.split('-');
26
+ // const flow = 'color';
27
27
  // eslint-disable-next-line max-len
28
- scriptOutput += `svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-${flow}.js -d src/${folderName} --ext tsx assets/${folderName}
28
+ scriptOutput += `svgr --template scripts/svgr-template.js --config-file scripts/.svgrrc-color.js -d src/templates/ --ext tsx assets/templates/${folderName}
29
29
  `;
30
30
  });
31
31
  fs.writeFileSync(`${saveDir}all-scripts.sh`, scriptOutput);