Skip to content

Commit

Permalink
fix: public npm release (#8)
Browse files Browse the repository at this point in the history

* public release

* format

* add badge
  • Loading branch information
salza80 authored Jul 30, 2024
1 parent feff9ea commit 74935a0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A library for using TelemetryDeck in your React app.

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

[![Test and 🚀 Release](https://github.com/peerigon/telemetrydeck-vue/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/peerigon/telemetrydeck-vue/actions/workflows/test_and_release.yml)

## Installation

```shell
Expand Down
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
16 changes: 9 additions & 7 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 74935a0

Please sign in to comment.