@spryker/oryx-for-zed 3.5.1 → 3.5.2
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 +7 -0
- package/lib/copy.js +11 -5
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
package/lib/copy.js
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
const fs = require('fs
|
|
1
|
+
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const log = require('./log');
|
|
4
4
|
const settings = require('./settings');
|
|
5
5
|
|
|
6
6
|
const copyAssets = async () => {
|
|
7
|
-
const
|
|
7
|
+
const src = path.resolve(settings.paths.publicDir);
|
|
8
|
+
const dest = path.resolve(path.join('public/Zed', settings.paths.publicPath));
|
|
8
9
|
|
|
9
10
|
try {
|
|
10
11
|
log.task('Copy assets for backward compatibility after renaming assets folder');
|
|
11
12
|
log.step('copying assets...');
|
|
12
13
|
|
|
13
|
-
await fs.
|
|
14
|
+
await fs.promises.rm(dest, { recursive: true, force: true });
|
|
15
|
+
await fs.promises.cp(src, dest, {
|
|
16
|
+
recursive: true,
|
|
17
|
+
dereference: false,
|
|
18
|
+
verbatimSymlinks: true,
|
|
19
|
+
});
|
|
14
20
|
|
|
15
|
-
log.done('assets copied to: ',
|
|
21
|
+
log.done('assets copied to: ', dest);
|
|
16
22
|
} catch (err) {
|
|
17
|
-
console.error(err)
|
|
23
|
+
console.error(err);
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spryker/oryx-for-zed",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Spryker ZED frontend automation tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"css-minimizer-webpack-plugin": "~4.2.2",
|
|
26
26
|
"dayjs": "~1.11.7",
|
|
27
27
|
"fast-glob": "~3.2.12",
|
|
28
|
-
"fs-extra": "~10.1.0",
|
|
29
28
|
"imports-loader": "~0.8.0",
|
|
30
29
|
"mini-css-extract-plugin": "~2.7.2",
|
|
31
30
|
"postcss": "~8.4.23",
|