hof 23.0.0-frontend-v4-beta.10 → 23.0.0-frontend-v4-beta.11

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.
@@ -12,7 +12,8 @@ module.exports = config => {
12
12
  }
13
13
  const imagesOutput = config.images.out;
14
14
 
15
- // Due to rebrand logo, images are copied from multiple sources and mapping can cause 'File exist errors'. Remove if exists as a file
15
+ // Due to govuk rebrand logo, images are copied from multiple sources & mapping can cause 'File exists' error.
16
+ // Remove if exists as a file
16
17
  if (fs.existsSync(imagesOutput) && !fs.lstatSync(imagesOutput).isDirectory()) {
17
18
  fs.unlinkSync(imagesOutput);
18
19
  }
@@ -27,8 +28,8 @@ module.exports = config => {
27
28
  console.log(`${chalk.yellow('warning')}: Skipping missing images folder: ${src}`);
28
29
  return Promise.resolve();
29
30
  }
30
- return mkdir(config.images.out)
31
- .then(() => spawn('rsync', ['-a', `${src}/.`, config.images.out]));
31
+ return mkdir(imagesOutput)
32
+ .then(() => spawn('cp', ['-r', `${src}/.`, imagesOutput]));
32
33
  }))
33
34
  .catch(e => {
34
35
  if (e.code !== 'ENOENT') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.0-frontend-v4-beta.10",
4
+ "version": "23.0.0-frontend-v4-beta.11",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",