Skip to content

Commit

Permalink
chore: update rollup type
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBonnet committed Jul 5, 2024
1 parent 90b23f7 commit 758ab5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
example
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "qovery-react-xtermjs",
"name": "react-xtermjs",
"version": "1.0.0",
"main": "/dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "rollup -c",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
12 changes: 3 additions & 9 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default [
format: 'iife',
name: 'version',
plugins: [terser()],
exports: 'default',
},
],
plugins: [
Expand All @@ -29,17 +28,12 @@ export default [
commonjs(),
typescript({
tsconfig: './tsconfig.json',
declaration: true,
declarationDir: 'dist',
rootDir: 'src',
}),
postcss({ extensions: ['.css'], inject: true, extract: false }),
],
external: ['react', 'react-dom', 'react/jsx-runtime'],
},
{
input: 'src/index.d.ts',
plugins: [dts()],
output: {
file: 'dist/index.d.ts',
format: 'es',
},
},
]

0 comments on commit 758ab5c

Please sign in to comment.