Skip to content

Commit

Permalink
chore: fix format, add --no-git-checks
Browse files Browse the repository at this point in the history
Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
  • Loading branch information
chenhunghan committed Jan 7, 2024
1 parent 12f27ed commit 8a6a314
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm publish --access public
- run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import fs from "fs-extra";
import path from "path";
import { load as jsTomlLoad } from "js-toml";

export function vitePluginTrunk(vitePluginTruckConfig?: { debug?: boolean }): Plugin {
export function vitePluginTrunk(vitePluginTruckConfig?: {
debug?: boolean;
}): Plugin {
let config: ResolvedConfig;
let logger: Logger;
const name = "vite-plugin-trunk";
Expand Down Expand Up @@ -54,8 +56,10 @@ export function vitePluginTrunk(vitePluginTruckConfig?: { debug?: boolean }): Pl
cargoPackageName = cargoToml.package.name;
return {};
} catch (error) {
throw new Error("Can't find Cargo.toml at project root", { cause: error })
}
throw new Error("Can't find Cargo.toml at project root", {
cause: error,
});
}
},
configResolved(resolvedConfig) {
config = resolvedConfig;
Expand Down

0 comments on commit 8a6a314

Please sign in to comment.