Skip to content

Commit

Permalink
Develop (#19)
Browse files Browse the repository at this point in the history
* Feature/add-components (#9)

* add:some components

* update:For simplicity, dropped the use of numbers.

* fix:lint

* update:version

* update:Context name (#13)

* update:Context name (#13)

* add:release workflow (#15)

* fix:external-dependencies (#16)

* fix:external-dependencies

* chore:update readme

* refactor:re-export

* chore:change version

* hotfix:invalid filename (#18)

* update:package version
  • Loading branch information
bmthd authored May 28, 2024
1 parent 804ada0 commit 3aead13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "midashi",
"version": "0.3.1",
"version": "0.3.2",
"description": "React component for headings",
"keywords": [
"react",
Expand Down
6 changes: 2 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ import dts from "vite-plugin-dts";
import react from "@vitejs/plugin-react";
import { name } from "./package.json";

const formattedName = name.match(/[^/]+$/)?.[0] ?? name;

export default defineConfig({
plugins: [dts(), react()],
build: {
lib: {
entry: resolve(__dirname, "./lib/index.ts"),
name: "midashi",
name,
formats: ["es", "umd"],
fileName: (format) => `${formattedName}.${format}.js`,
fileName: "index",
},
rollupOptions: {
external: ["react", "react/jsx-runtime"],
Expand Down

0 comments on commit 3aead13

Please sign in to comment.