Skip to content

Commit

Permalink
style: update code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhengqbbb committed Mar 22, 2023
1 parent 3c519f3 commit 38f6f9a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion playground/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'path'
import { dirname, resolve } from 'node:path'
import { defineSatoriConfig } from 'x-satori/vue'

const _DIRNAME = typeof __dirname !== 'undefined'
Expand Down
2 changes: 1 addition & 1 deletion playground/gen-png.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fileURLToPath } from 'node:url'
import { readFile, writeFile } from 'node:fs/promises'
import { dirname, resolve } from 'path'
import { dirname, resolve } from 'node:path'
import { renderAsync } from '@resvg/resvg-js'
import { satoriVue } from 'x-satori/vue'

Expand Down
2 changes: 1 addition & 1 deletion playground/gen-svg.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fileURLToPath } from 'node:url'
import { readFile, writeFile } from 'node:fs/promises'
import { dirname, resolve } from 'path'
import { dirname, resolve } from 'node:path'
import { satoriVue } from 'x-satori/vue'

(async function () {
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@types/node": "^18.15.5",
"tsx": "^3.12.6",
"vite": "^4.2.1",
"x-satori": "0.1.0"
"x-satori": "0.1.1"
}
}
2 changes: 1 addition & 1 deletion src/command/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFile } from 'fs/promises'
import { readFile } from 'node:fs/promises'
import { writeFileSync } from 'node:fs'
import { resolve } from 'node:path'

Expand Down
2 changes: 1 addition & 1 deletion src/command/dev.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFile } from 'fs/promises'
import { readFile } from 'node:fs/promises'
import express from 'express'
import type { ViteDevServer } from 'vite'
import { satoriVue } from '../vue'
Expand Down
2 changes: 1 addition & 1 deletion src/command/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license MIT
*/

import tty from 'tty'
import tty from 'node:tty'

/**
* @description: check current is support color command text
Expand Down

0 comments on commit 38f6f9a

Please sign in to comment.