diff --git a/package.json b/package.json index 6d10662..e15082f 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "oas-composer", - "private": true, - "version": "0.0.0", + "version": "0.0.1", "repository": { "type": "github", - "url": "https://github.com/Tbhesswebber/oas-composer" + "url": "git+https://github.com/Tbhesswebber/oas-composer.git" }, "type": "module", "main": "./dist/main.cjs", "module": "./dist/main.js", "types": "./dist/main.d.ts", + "files": ["dist"], "scripts": { "dev": "vitest --watch", "build": "pnpm run compile && vite build", diff --git a/vite.config.ts b/vite.config.ts index 42b0da4..9bf5a1f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import dts from "vite-plugin-dts"; import { defineConfig } from "vitest/config"; const config = defineConfig({ - plugins: [dts({ include: ["src/api"] })], + plugins: [dts({ include: ["src/api"], exclude: "**/*.test.ts" })], build: { copyPublicDir: false, lib: { @@ -13,6 +13,7 @@ const config = defineConfig({ path.dirname(fileURLToPath(import.meta.url)), "src/api/main.ts", ), + fileName: "main", formats: ["es", "cjs"], }, },