Skip to content

Commit ab497be

Browse files
committed
Update guide, ran eslint
1 parent d3b28c8 commit ab497be

File tree

117 files changed

+268
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+268
-266
lines changed

EXTENSIONS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ import { execSync } from "child_process"
9090
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs"
9191
import prompt from "./functions/prompt"
9292
import { join } from "path"
93+
import { platform } from "os"
9394
9495
const path = "./metadata"
9596
if (!existsSync(path)) mkdirSync(path)
@@ -121,18 +122,19 @@ async function main() {
121122
const fileName = join(path, "changelogs.json")
122123
const json: Record<string, object[]> = existsSync(fileName) ? JSON.parse(readFileSync(fileName, "utf-8")) : {}
123124
json[version] ??= []
124-
125+
const author = execSync("git config user.name").toString().trim()
125126
if (!skip) {
126127
json[version].unshift({
127128
message: msg,
128129
timestamp: new Date(),
129-
author: execSync("git config user.name").toString().trim()
130+
author
130131
})
131132
writeFileSync(fileName, JSON.stringify(json), "utf-8")
132133
}
133134
134135
const branch = await prompt("Write the branch name to push to (defaults to dev): ") || "dev"
135-
const escapedMsg = msg.replace(/\$/g, "\\$")
136+
let escapedMsg = msg
137+
if (platform() === "darwin") escapedMsg = escapedMsg.replace(/\$/g, "\\$")
136138
137139
execSync("git branch -M " + branch + " && git add . && git commit -m \"" + escapedMsg + "\" && git push -u origin " + branch, {
138140
stdio: "inherit"

dist/commit.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commit.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/component/editButton.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native/component/editButtonOf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)