diff --git a/.changeset/lazy-books-roll.md b/.changeset/lazy-books-roll.md new file mode 100644 index 0000000..7ef6081 --- /dev/null +++ b/.changeset/lazy-books-roll.md @@ -0,0 +1,5 @@ +--- +"banana-converter": patch +--- + +public dir is now not a part of build diff --git a/src/bananaConverter/index.ts b/src/bananaConverter/index.ts index 0cb8dfc..36acb0a 100644 --- a/src/bananaConverter/index.ts +++ b/src/bananaConverter/index.ts @@ -1,5 +1,3 @@ -import "./style.css"; - const conversions = { banana: 1, inch: 7.0, diff --git a/src/bananaConverter/style.css b/src/bananaConverter/style.css deleted file mode 100644 index 148ec45..0000000 --- a/src/bananaConverter/style.css +++ /dev/null @@ -1,3 +0,0 @@ -:root { - --white: #fff; -} diff --git a/vite.config.ts b/vite.config.ts index adeb0bb..6af056c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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", }, }, - } + }; } -}) +});