Skip to content

Commit 6e786ec

Browse files
authored
fix: replaced single quotes with double quotes for windows compatibility (#90)
1 parent aef7ee4 commit 6e786ec

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

cli.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ async function main() {
113113
console.log(`README.md created`);
114114

115115
await command("git add LICENSE.md");
116-
await command("git commit -m 'docs(LICENSE): ISC'");
116+
await command(`git commit -m "docs(LICENSE): ISC"`);
117117

118118
await command("git add CODE_OF_CONDUCT.md");
119119
await command(
120-
"git commit -m 'docs(CODE_OF_CONDUCT): Contributor Covenant'"
120+
`git commit -m "docs(CODE_OF_CONDUCT): Contributor Covenant"`
121121
);
122122

123123
await command("git add CONTRIBUTING.md");
124-
await command("git commit -m 'docs(CONTRIBUTING): initial version'");
124+
await command(`git commit -m "docs(CONTRIBUTING): initial version"`);
125125

126126
await command("git add README.md");
127-
await command("git commit -m 'docs(README): initial version'");
127+
await command(`git commit -m "docs(README): initial version"`);
128128

129129
await createIssueTemplates(answers.packageName);
130130
await command("git add .github/ISSUE_TEMPLATE");
131-
await command("git commit -m 'docs(ISSUE_TEMPLATES): initial version'");
131+
await command(`git commit -m "docs(ISSUE_TEMPLATES): initial version"`);
132132

133133
const {
134134
data: { id: repositoryId },
@@ -151,7 +151,7 @@ async function main() {
151151
description: answers.description,
152152
});
153153

154-
await command(`git commit README.md -m 'docs(README): remove WIP note'`);
154+
await command(`git commit README.md -m "docs(README): remove WIP note"`);
155155
await command(`git push -u origin HEAD`);
156156

157157
let ownerId = userId;
@@ -176,9 +176,9 @@ async function main() {
176176
await command(`npm install ${dependencies.join(" ")}`);
177177

178178
await command(`git add package.json`);
179-
await command(`git commit -m 'build(package): initial version'`);
179+
await command(`git commit -m "build(package): initial version"`);
180180
await command(`git add package-lock.json`);
181-
await command(`git commit -m 'build(package): lock file'`);
181+
await command(`git commit -m "build(package): lock file"`);
182182

183183
console.log("Create branch protection for main");
184184
try {
@@ -195,7 +195,7 @@ async function main() {
195195
await writePrettyFile(".gitignore", ignorePaths.join("\n"));
196196
await command(`git add .gitignore`);
197197
await command(
198-
`git commit -m 'build(gitignore): ${ignorePaths.join(", ")}'`
198+
`git commit -m "build(gitignore): ${ignorePaths.join(", ")}"`
199199
);
200200

201201
console.log("create script.js and cli.js");
@@ -213,7 +213,7 @@ run(script);
213213
);
214214

215215
await command(`git add script.js cli.js`);
216-
await command(`git commit -m 'feat: initial version'`);
216+
await command(`git commit -m "feat: initial version"`);
217217

218218
await createReadme({
219219
addBadges: true,
@@ -222,7 +222,7 @@ run(script);
222222
packageName: answers.packageName,
223223
repository: answers.repository,
224224
});
225-
await command(`git commit README.md -m 'docs(README): badges'`);
225+
await command(`git commit README.md -m "docs(README): badges"`);
226226

227227
await createReadme({
228228
addBadges: true,
@@ -234,21 +234,21 @@ run(script);
234234
repository: answers.repository,
235235
scriptOptions: answers.scriptOptions,
236236
});
237-
await command(`git commit README.md -m 'docs(README): usage'`);
237+
await command(`git commit README.md -m "docs(README): usage"`);
238238

239239
console.log("Create actions");
240240
await createReleaseAction({ owner });
241241
await command(`git add .github/workflows/release.yml`);
242-
await command(`git commit -m 'ci(release): initial version'`);
242+
await command(`git commit -m "ci(release): initial version"`);
243243

244244
await createTestAction();
245245
await command(`git add .github/workflows/test.yml`);
246-
await command(`git commit -m 'ci(test): initial version'`);
246+
await command(`git commit -m "ci(test): initial version"`);
247247

248248
if (owner === "octoherd") {
249249
await createRenovateConfig();
250250
await command(`git add .github/renovate.json`);
251-
await command(`git commit -m 'build(renovate): create renovate setup'`);
251+
await command(`git commit -m "build(renovate): create renovate setup"`);
252252
}
253253

254254
await command(`git push`);

0 commit comments

Comments
 (0)