From c681b2fe2225ba5afee94fba19de63cef27d0afd Mon Sep 17 00:00:00 2001 From: "Tanner B. Hess Webber" Date: Sat, 13 Jan 2024 01:23:56 -0500 Subject: [PATCH] ci(release): fixes various issues from releasing 0.0.1 --- package.json | 6 +++--- vite.config.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) 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"], }, },