Skip to content

Commit

Permalink
chore(vite): cleanup & bump
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Jan 8, 2024
1 parent 4876617 commit 71728a6
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 238 deletions.
10 changes: 1 addition & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import tsconfigPaths from "vite-tsconfig-paths";

export default {
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
staticDirs: ["../public"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
"@storybook/addon-interactions",
],
framework: { name: "@storybook/react-vite" },
core: {
builder: "@storybook/builder-vite",
disableTelemetry: true,
},
async viteFinal(config) {
return {
...config,
plugins: [...(config.plugins || []), tsconfigPaths()],
};
},
};
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"typescript.tsdk": "node_modules\\typescript\\lib"
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"scripts": {
"test": "vitest",
"typecheck": "vitest typecheck --passWithNoTests",
"typecheck": "vitest --typecheck.only --passWithNoTests",
"publish": "yarn npm publish --access public",
"build": "tsc --build ./tsconfig.build.json",
"sb": "yarn storybook",
Expand Down Expand Up @@ -71,7 +71,7 @@
"@types/semantic-release": "^20.0.6",
"@typescript-eslint/eslint-plugin": "6.13.1",
"@typescript-eslint/parser": "6.13.1",
"@vitejs/plugin-react": "^4.2.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "10.4.16",
"eslint": "8.55.0",
"eslint-config-prettier": "9.1.0",
Expand All @@ -95,9 +95,8 @@
"storybook": "7.6.3",
"tailwindcss": "^3.3.5",
"typescript": "5.3.2",
"vite": "^5.0.4",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "0.34.6",
"vite": "^5.0.11",
"vitest": "1.1.3",
"zod": "^3.22.4"
},
"dependencies": {
Expand Down
8 changes: 1 addition & 7 deletions vitest.config.ts → vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [react()],
Expand All @@ -9,9 +8,4 @@ export default defineConfig({
environment: "happy-dom",
setupFiles: ["./setup.ts"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});
Loading

0 comments on commit 71728a6

Please sign in to comment.