Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alewin committed Oct 26, 2024
1 parent 4edb641 commit b5bbb77
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
7 changes: 6 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": {
"ignoreUnknown": false,
"ignore": [],
"ignore": [
"**/dist/**",
"**/node_modules/**",
"**/vite.config.mts",
"**/website/build/**"
],
"include": ["packages/**/*", "apps/**/*"]
},
"formatter": {
Expand Down
8 changes: 1 addition & 7 deletions packages/useWorker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"author": "alewin",
"license": "MIT",
"repository": "alewin/useworker",
"keywords": [
"react",
"react-hooks",
"web worker",
"useWorker",
"background"
],
"keywords": ["react", "react-hooks", "web worker", "useWorker", "background"],
"scripts": {
"build": "vite build",
"dev": "vite"
Expand Down
20 changes: 10 additions & 10 deletions packages/useWorker/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { resolve } from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import { resolve } from 'path'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'

export default defineConfig({
plugins: [react(), dts({ include: ["src"] })],
plugins: [react(), dts({ include: ['src'] })],
build: {
sourcemap: true,
rollupOptions: {
external: ["react", "react/jsx-runtime"],
external: ['react', 'react/jsx-runtime'],
},
lib: {
entry: resolve(__dirname, "src/index.ts"),
formats: ["es"],
fileName: "index",
entry: resolve(__dirname, 'src/index.ts'),
formats: ['es'],
fileName: 'index',
},
},
});
})

0 comments on commit b5bbb77

Please sign in to comment.