@yyp92-cli/create 0.4.0 → 0.5.0

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,5 +1,11 @@
1
1
  # @yyp92-cli/create
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - test 重命
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yyp92-cli/create",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/index.ts CHANGED
@@ -104,10 +104,10 @@ async function create() {
104
104
  fse.copySync(templatePath, targetPath)
105
105
 
106
106
  // 将 gitignore.template 重命名为 .gitignore
107
- const targetGitignore = path.resolve(targetPath, '.gitignore')
108
- const sourceGitignoreTemplate = path.resolve(targetPath, 'gitignore.template')
107
+ const targetGitignore = path.join(targetPath, '.gitignore')
108
+ const sourceGitignoreTemplate = path.join(targetPath, 'gitignore.template')
109
109
  if (await fse.exists(sourceGitignoreTemplate)) {
110
- await fse.rename(sourceGitignoreTemplate, targetGitignore)
110
+ fse.renameSync(sourceGitignoreTemplate, targetGitignore)
111
111
  }
112
112
 
113
113
  // 清除多余的布局文件夹