create-jnrs-vue 1.2.17 → 1.2.18
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/bin/create.mjs +5 -4
- package/jnrs-vue/package.json +1 -1
- package/package.json +1 -1
package/bin/create.mjs
CHANGED
|
@@ -112,10 +112,11 @@ async function main() {
|
|
|
112
112
|
const templateDir = join(__dirname, '..', 'jnrs-vue')
|
|
113
113
|
|
|
114
114
|
await fs.cp(templateDir, root, { recursive: true })
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
|
|
116
|
+
const dotGitignorePath = join(root, 'dot_gitignore')
|
|
117
|
+
const gitignorePath = join(root, '.gitignore')
|
|
118
|
+
if (existsSync(dotGitignorePath)) {
|
|
119
|
+
await fs.rename(dotGitignorePath, gitignorePath)
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
// 定义可选的内部模块
|
package/jnrs-vue/package.json
CHANGED