Skip to content

Commit

Permalink
upgrade vite
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed May 31, 2024
1 parent ff85e7e commit b4abe3f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 83 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"tailwindcss": "^3.3.2",
"turbo": "latest",
"typescript": "^5.1.3",
"vitest": "^0.32.0"
"vitest": "^1.6.0"
},
"engines": {
"npm": ">=7.0.0",
Expand Down
5 changes: 5 additions & 0 deletions themes/book/postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
plugins: {
tailwindcss: {},
},
};
9 changes: 5 additions & 4 deletions themes/book/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"types": ["@remix-run/node", "vite/client"],
"lib": ["DOM", "DOM.Iterable", "ES2022"],
"isolatedModules": true,
"esModuleInterop": true,
"types": ["@remix-run/node", "vite/client"],
"jsx": "react-jsx",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"module": "ESNext",
"resolveJsonModule": true,
"target": "ES2019",
"target": "ES2022",
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
Expand Down
13 changes: 7 additions & 6 deletions themes/book/vite.config.dev.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { vitePlugin as remix } from '@remix-run/dev';
import { defineConfig } from 'vite';
import tsconfigPaths from "vite-tsconfig-paths";


import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [
remix({
ssr: false,
basename: '/',
ignoredRouteFiles: ['**/*'],
ignoredRouteFiles: ['**/*.css'],
serverBuildFile: 'api/index.js',

}),
tsconfigPaths(),
}),
tsconfigPaths()
],
publicDir: '/myst_assets_folder/',
resolve: {
Expand Down Expand Up @@ -58,7 +59,7 @@ export default defineConfig({
'tex-to-typst',
'jats-tags',
/^@myst-theme\/.*/,
'react-syntax-highlighter',
/react-syntax-highlighter.*/,
'markdown-it-myst-extras',
'markdown-it-dollarmath',
'markdown-it-amsmath',
Expand Down
72 changes: 0 additions & 72 deletions themes/book/vite.config.ts

This file was deleted.

0 comments on commit b4abe3f

Please sign in to comment.