@lamppost/create-ink-player 1.0.5 → 1.0.7
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/index.js +4 -3
- package/package.json +1 -1
- package/template/_gitignore +8 -0
- package/template/package.json +2 -1
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
cpSync,
|
|
5
5
|
existsSync,
|
|
6
6
|
mkdirSync,
|
|
7
|
+
renameSync,
|
|
7
8
|
readFileSync,
|
|
8
9
|
rmSync,
|
|
9
10
|
writeFileSync,
|
|
@@ -79,9 +80,9 @@ async function main() {
|
|
|
79
80
|
console.log("Copying template files...");
|
|
80
81
|
cpSync(templateDir, targetDir, { recursive: true });
|
|
81
82
|
|
|
82
|
-
//
|
|
83
|
-
const gitignorePath = join(
|
|
84
|
-
|
|
83
|
+
// Rename _gitignore to .gitignore file
|
|
84
|
+
const gitignorePath = join(targetDir, "_gitignore");
|
|
85
|
+
renameSync(gitignorePath, join(targetDir, ".gitignore"));
|
|
85
86
|
|
|
86
87
|
// Delete the node_modules directory, if it exists
|
|
87
88
|
if (existsSync(join(targetDir, "node_modules"))) {
|
package/package.json
CHANGED
package/template/package.json
CHANGED