mod-build 4.0.31 → 4.0.32

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.0.32
2
+
3
+ - Updating the `grab-form-helpers.js` task to not have a double slash when copying files over
4
+
1
5
  ## 4.0.31
2
6
 
3
7
  - Adding `geolocation.min.js` to the `grab-cdn` task
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.31",
3
+ "version": "4.0.32",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -44,7 +44,7 @@ const streamToDestination = (destPath, fileName) => {
44
44
  throw new Error(`${resp.status}: Error while fetching ${url}`);
45
45
  }
46
46
  resp.data.pipe(writer);
47
- console.log(`${destPath}/${fileName} created...`);
47
+ console.log(`${destPath}${fileName} created...`);
48
48
  return finished(writer);
49
49
  }).then(() => {
50
50
  resolve();
@@ -95,7 +95,7 @@ export default async function() {
95
95
  const destinationPath = '/resources/scripts/helpers/';
96
96
  const filesPromiseMap = helpers.map(async helper => {
97
97
  const fileName = helper;
98
- if (fs.existsSync(`${defaultSettings.publicFolder}/${destinationPath}/${fileName}`)) {
98
+ if (fs.existsSync(`${defaultSettings.publicFolder}/${destinationPath}${fileName}`)) {
99
99
  return;
100
100
  }
101
101
  await streamToDestination(destinationPath, fileName);