Skip to content

Commit

Permalink
public release
Browse files Browse the repository at this point in the history
  • Loading branch information
salza80 committed Jul 30, 2024
1 parent d604666 commit 2b6482c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"private": false,
"version": "0.0.0",
"type": "module",
"main": "dist/index.cjs",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"dev": "vite",
"size": "size-limit",
Expand All @@ -20,7 +19,7 @@
"limit": "10 kB"
},
{
"path": "dist/index.cjs",
"path": "dist/index.js",
"limit": "10 kB"
}
],
Expand Down
14 changes: 8 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ export default [
{
format: 'esm',
file: 'dist/index.mjs',
exports: 'named',
plugins: [terser()]
},
{
format: 'cjs',
file: 'dist/index.cjs',
file: 'dist/index.js',
exports: 'named',
plugins: [terser()]
}
],
plugins: [
del({ targets: 'dist/*' }),
peerDepsExternal(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: 'tsconfig.node.json',
check: false,
Expand All @@ -31,11 +37,7 @@ export default [
declarationMap: true,
}
}
}),
peerDepsExternal(),
nodeResolve(),
commonjs(),
del({ targets: 'dist/*' })
})
]
}
]

0 comments on commit 2b6482c

Please sign in to comment.