Skip to content

Commit

Permalink
chore: fix logo in built folder
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
kaandesu committed Jan 19, 2024
1 parent 980af60 commit 4ccbd30
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-books-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"banana-converter": patch
---

public dir is now not a part of build
2 changes: 0 additions & 2 deletions src/bananaConverter/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "./style.css";

const conversions = {
banana: 1,
inch: 7.0,
Expand Down
3 changes: 0 additions & 3 deletions src/bananaConverter/style.css

This file was deleted.

31 changes: 16 additions & 15 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
import { defineConfig } from "vite";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
if (mode === 'live-demo') {
if (mode === "live-demo") {
return {
base: './',
base: "./",
test: {
globals: true,
},
resolve: {
alias: {
'~': resolve(__dirname, 'src', 'bananaConverter'),
"~": resolve(__dirname, "src", "bananaConverter"),
},
},
build: {
rollupOptions: {
input: ['index.html'],
input: ["index.html"],
},
},
}
};
} else {
return {
publicDir: false,
test: {
globals: true,
setupFiles: 'src/setupTests.ts',
includeSource: ['src/**/*.spec.ts', 'src/**/*.test.ts'],
setupFiles: "src/setupTests.ts",
includeSource: ["src/**/*.spec.ts", "src/**/*.test.ts"],
},
resolve: {
alias: {
'~': resolve(__dirname, 'src', 'bananaConverter'),
"~": resolve(__dirname, "src", "bananaConverter"),
},
},
build: {
lib: {
entry: resolve(__dirname, 'src/bananaConverter', 'index.ts'),
name: 'banana-converter',
fileName: 'banana-converter',
entry: resolve(__dirname, "src/bananaConverter", "index.ts"),
name: "banana-converter",
fileName: "banana-converter",
},
},
}
};
}
})
});

0 comments on commit 4ccbd30

Please sign in to comment.