Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinheldy committed Jun 30, 2024
1 parent e9bf8fb commit 12197a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@antfu/eslint-config": "2.21.1",
"@antfu/eslint-config": "2.21.2",
"@astrojs/solid-js": "4.4.0",
"@fontsource/hind-siliguri": "5.0.13",
"@fontsource/inter-tight": "5.0.20",
Expand All @@ -62,17 +62,17 @@
"bootstrap-esm": "1.0.0",
"depcheck": "1.4.7",
"esbuild": "0.21.5",
"eslint": "9.5.0",
"eslint": "9.6.0",
"fast-dts": "1.0.0",
"jalankan": "0.0.1",
"oxc-transform": "0.16.0",
"postcss": "8.4.38",
"postcss": "8.4.39",
"postcss-cli": "11.0.0",
"prettier": "3.3.2",
"purgecss": "6.0.0",
"sass": "npm:[email protected]",
"scule": "1.3.0",
"shiki": "1.9.1",
"solid-js": "1.8.17",
"shiki": "1.10.0",
"solid-js": "1.8.18",
"typescript": "5.5.2",
"vite": "5.3.2",
"vite-plugin-solid": "2.10.2"
Expand Down
8 changes: 2 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { resolve } from 'node:path'
import { readFile, writeFile } from 'node:fs/promises'
import { defineConfig } from 'vite'
import { generate } from 'fast-dts'
import solid from 'vite-plugin-solid'
import oxc from 'oxc-transform'
import pkg from './package.json'

// https://vitejs.dev/config/
Expand All @@ -23,10 +22,7 @@ export default defineConfig({
{
name: 'dts',
async closeBundle() {
const file = pkg.source
const text = await readFile(file, 'utf8')
const code = oxc.isolatedDeclaration(file, text)
await writeFile(pkg.types, code.sourceText)
await generate(pkg.source, pkg.types)
},
},
],
Expand Down

0 comments on commit 12197a6

Please sign in to comment.