Skip to content

Commit

Permalink
fix(build): fix exporting package
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSzewczyk committed Dec 25, 2024
1 parent 18bb70a commit a913119
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
"license": "MIT",
"author": "Szum-Tech <szum.tech@gmail.com>",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"files": [
Expand Down
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ const tailwindcssConfig = {
tailwindFunctions: ["classNames", "clsx", "cn"]
};

export const config = { ...baseConfig, plugins, ...(hasTailwindcss ? tailwindcssConfig : {}) };

export default config;
/** @type {import('prettier').Config || import('prettier-plugin-tailwindcss').PluginOptions} */
export default { ...baseConfig, plugins, ...(hasTailwindcss ? tailwindcssConfig : {}) };
19 changes: 8 additions & 11 deletions tsup.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { defineConfig } from "tsup";

export default defineConfig([
{
entry: ["./src/**/*.js"],
outDir: "dist",
minify: true,
clean: true,
format: ["esm", "cjs"],
treeshake: true,
splitting: true
}
]);
export default defineConfig({
entry: ["./src/**/*.js"],
outDir: "dist",
minify: true,
clean: true,
format: ["esm", "cjs"],
treeshake: true
});

0 comments on commit a913119

Please sign in to comment.