Skip to content

Commit 74935a0

Browse files
authored
fix: public npm release (#8)
* public release * format * add badge
1 parent feff9ea commit 74935a0

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access=public

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ A library for using TelemetryDeck in your React app.
44

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

7+
[![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)
8+
79
## Installation
810

911
```shell

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"private": false,
44
"version": "0.0.0",
55
"type": "module",
6-
"main": "dist/index.cjs",
6+
"main": "dist/index.js",
77
"module": "dist/index.mjs",
8-
"types": "dist/index.d.ts",
98
"scripts": {
109
"dev": "vite",
1110
"size": "size-limit",
@@ -20,7 +19,7 @@
2019
"limit": "10 kB"
2120
},
2221
{
23-
"path": "dist/index.cjs",
22+
"path": "dist/index.js",
2423
"limit": "10 kB"
2524
}
2625
],

rollup.config.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ export default [
1212
{
1313
format: 'esm',
1414
file: 'dist/index.mjs',
15+
exports: 'named',
1516
plugins: [terser()]
1617
},
1718
{
1819
format: 'cjs',
19-
file: 'dist/index.cjs',
20+
file: 'dist/index.js',
21+
exports: 'named',
2022
plugins: [terser()]
2123
}
2224
],
2325
plugins: [
26+
del({ targets: 'dist/*' }),
27+
peerDepsExternal(),
28+
nodeResolve(),
29+
commonjs(),
2430
typescript({
2531
tsconfig: 'tsconfig.node.json',
2632
check: false,
@@ -31,11 +37,7 @@ export default [
3137
declarationMap: true,
3238
}
3339
}
34-
}),
35-
peerDepsExternal(),
36-
nodeResolve(),
37-
commonjs(),
38-
del({ targets: 'dist/*' })
40+
})
3941
]
4042
}
41-
]
43+
]

0 commit comments

Comments
 (0)