Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
chore: add type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Feb 8, 2024
1 parent 4fb61bf commit 1861b05
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 11 deletions.
5 changes: 3 additions & 2 deletions packages/openapi-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"CHANGELOG.md"
],
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"repository": {
"type": "git",
Expand All @@ -36,7 +36,8 @@
"test": "vitest"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9"
"@types/js-yaml": "^4.0.9",
"vite-plugin-dts": "^3.7.2"
},
"dependencies": {
"@humanwhocodes/momoa": "^3.0.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/openapi-parser/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import dts from 'vite-plugin-dts'
import { defineConfig } from 'vitest/config'

export default defineConfig({
plugins: [],
plugins: [dts({ rollupTypes: true })],
build: {
lib: {
entry: ['src/index.ts'],
name: '@scalar/openapi-parser',
formats: ['es'],
},
rollupOptions: {
external: ['@seriousme/openapi-schema-validator'],
},
},
test: {
coverage: {
Expand Down
Loading

0 comments on commit 1861b05

Please sign in to comment.