Skip to content

Commit

Permalink
Fix build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisen committed Jan 9, 2023
1 parent 20abb3b commit b46e98f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
lib/
es/
dist
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"url": "https://github.com/woltapp/react-blurhash"
},
"homepage": "https://blurha.sh",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "es/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.js",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsup",
Expand Down
16 changes: 1 addition & 15 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@ export default defineConfig([
{
name: 'main',
entry: ['./src/index.ts'],
outDir: './lib',
format: ['cjs'],
legacyOutput: true,
sourcemap: true,
clean: true,
splitting: false,
dts: false,
minify: true,
},
{
name: 'esm',
entry: ['./src/index.ts'],
outDir: './es',
format: ['esm'],
format: ['cjs', 'esm'],
legacyOutput: true,
sourcemap: true,
clean: true,
Expand All @@ -28,7 +15,6 @@ export default defineConfig([
{
name: 'typedefs',
entry: ['./src/index.ts'],
outDir: './lib',
clean: false,
dts: {
only: true,
Expand Down

0 comments on commit b46e98f

Please sign in to comment.