Skip to content

Commit

Permalink
feat: deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangfuxing committed Nov 11, 2024
1 parent 7e4b377 commit 87055a7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/deno-test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno

Expand All @@ -18,16 +23,15 @@ jobs:

steps:
- name: Setup repo
uses: actions/checkout@v4.1.1 # use nodeJS 20
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1.1.4
# uses: denoland/setup-deno@9db7f66e8e16b5699a514448ce994936c63f0d54
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.43.3
# deno-version: v1.40.x # required due to usage of Deno.stdout.isTerminal()
# deno-version: v1.x
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
- name: Verify formatting
run: deno fmt --check

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jsr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
run: npx jsr publish
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
release:
types: [created]
workflow_dispatch:
inputs:
inputs:
npm_version:
description: 'Version number to publish on NPM X.Y.Z'
description: "Version number to publish on NPM X.Y.Z"
required: true
permissions:
contents: read
Expand All @@ -32,7 +32,7 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Run linter
run: deno lint

Expand Down
1 change: 0 additions & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { green, red, stripAnsiCode, yellow } from "jsr:@std/fmt@1.0.3/colors";
export { writeAll } from "jsr:@std/io@0.225.0/write-all";
export { exists } from "jsr:@std/fs@1.0.5";

6 changes: 1 addition & 5 deletions dev_deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export {
assert,
assertEquals,
assertRejects,
} from "jsr:@std/assert@1.0.7";
export { assert, assertEquals, assertRejects } from "jsr:@std/assert@1.0.7";
2 changes: 1 addition & 1 deletion logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class Logger {
dir: string,
options: fileLoggerOptions = {},
): Promise<void> {
const exist = await exists(dir, {isDirectory: true});
const exist = await exists(dir, { isDirectory: true });
if (!exist) {
stdout(`${this.getWarn()} Log folder does not exist`);
try {
Expand Down

0 comments on commit 87055a7

Please sign in to comment.