Skip to content

Commit

Permalink
chore: fix ci format (rolldown#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Nov 9, 2023
1 parent 1f0b4f2 commit c507e6f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
format:
name: Format
name: Cargo Format
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
run: yarn install

- name: Format
run: yarn prettier
run: yarn prettier:ci

- name: Build
run: yarn build
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ rollup
**/.git
**/node_modules
scripts
web/wasm/*
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"build:binding:release": "yarn workspace @rolldown/node-binding run build:release",
"test": "yarn workspaces foreach run test",
"test:update": "yarn workspaces foreach run test:update",
"prettier": "prettier . '!**/*.{js||ts|json|md|yml|yaml}' -w"
"prettier": "prettier . '!**/*.{js||ts|json|md|yml|yaml}' -w",
"prettier:ci": "prettier . '!**/*.{js||ts|json|md|yml|yaml}' -c"
},
"license": "MIT",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion web/playground/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import init, { bundle, FileItem, AssetItem } from '../wasm'
await init();
await init()
let res = bundle([new FileItem('/index.js', 'const a = 3')])
let normalizedRes = res.map((item) => {
return {
Expand Down
6 changes: 3 additions & 3 deletions web/playground/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "vite";
import * as path from "path";
import { defineConfig } from 'vite'
import * as path from 'path'

export default defineConfig({});
export default defineConfig({})

0 comments on commit c507e6f

Please sign in to comment.