Skip to content

Commit

Permalink
Cleans up garaga_rs npm configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer committed Sep 5, 2024
1 parent 4050002 commit b461d00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
24 changes: 0 additions & 24 deletions tools/npm/garaga_rs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tools/npm/garaga_rs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@rollup/plugin-typescript": "^11.1.6",
"rollup": "^4.21.2",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-node-externals": "^7.1.3",
"tslib": "^2.7.0",
"typescript": "^5.5.4"
},
Expand Down
14 changes: 6 additions & 8 deletions tools/npm/garaga_rs/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import typescript from '@rollup/plugin-typescript';
import dts from 'rollup-plugin-dts';
import node_externals from 'rollup-plugin-node-externals';

export default [
{
input: './src/node/index.ts',
output: [
{
file: 'dist/index.mjs',
format: 'esm',
file: 'dist/index.cjs',
format: 'cjs',
sourcemap: true,
},
{
file: 'dist/index.cjs',
format: 'cjs',
file: 'dist/index.mjs',
format: 'esm',
sourcemap: true,
},
],
plugins: [node_externals(), typescript()],
plugins: [typescript()],
},
{
input: './src/node/index.ts',
Expand All @@ -26,7 +25,6 @@ export default [
format: 'esm',
sourcemap: false,
},
plugins: [node_externals(), typescript(), dts()],
external: [/^lib/],
plugins: [typescript(), dts()],
},
];

0 comments on commit b461d00

Please sign in to comment.