Skip to content

Commit 272c47b

Browse files
authored
Merge pull request #6 from react-storefront-community/kh-del
Fix delete dir issue with crs-resources
2 parents 74d68b7 + b0afe1b commit 272c47b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/template-processing.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ const processPackageJson = (name, targetPath, { xdn, ...config } = {}) => {
8585
_writeConfigJson(packageJsonPath, packageJson)
8686
}
8787

88-
const copyResources = async (targetPath, { xdn }) => {
88+
const copyResources = (targetPath, { xdn }) => {
8989
if (xdn) {
90-
await fs.copy(path.join(targetPath, 'crs-resources'), targetPath)
91-
await fs.unlink(path.join(targetPath, '.github', 'workflows', 'xdn.yml'))
92-
await fs.unlink(path.join(targetPath, 'crs-resources'))
90+
fs.copySync(path.join(targetPath, 'crs-resources'), targetPath)
91+
fs.removeSync(path.join(targetPath, '.github', 'workflows', 'xdn.yml'))
92+
fs.removeSync(path.join(targetPath, 'crs-resources'))
9393
}
9494
}
9595

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-react-storefront",
3-
"version": "7.2.1",
3+
"version": "7.2.2",
44
"description": "A CLI for creating React Storefront apps.",
55
"main": "index.js",
66
"dependencies": {

0 commit comments

Comments
 (0)