Skip to content

Commit

Permalink
Code formatting [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 16, 2024
1 parent b44efb2 commit e121e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {join} from "node:path"
# Builds the project.
export build = ->
file = "src/client.coffee"
{default: {version}} = await import("./package.json", with: {type: "json"})
{default: {version}} = await import("./package.json", with: type: "json")
await writeFile file, (await readFile file, "utf8").replace /@_version = "\d+(\.\d+){2}"/, "@_version = \"#{version}\""
await npx "coffee", "--compile", "--no-header", "--output", "lib", "src"

Expand All @@ -21,7 +21,7 @@ export lint = ->

# Publishes the package.
export publish = ->
{default: {version}} = await import("./package.json", with: {type: "json"})
{default: {version}} = await import("./package.json", with: type: "json")
await npx "gulp"
await run "npm", "publish", "--registry=#{registry}" for registry from ["https://registry.npmjs.org", "https://npm.pkg.github.com"]
await run "git", action..., "v#{version}" for action from [["tag"], ["push", "origin"]]
Expand Down

0 comments on commit e121e39

Please sign in to comment.