Skip to content

Commit

Permalink
Update rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Mar 12, 2024
1 parent 8e17c85 commit 248c728
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dist/*"
],
"scripts": {
"build": "rollup -c rollup.config.js",
"build": "rollup --failAfterWarnings -c rollup.config.js",
"test": "mocha --config mocha.json",
"test:ci": "mocha --config mocha.json -R mocha-junit-reporter -O mochaFile=test-results/results.xml",
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
Expand Down
8 changes: 6 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default [
input: './src/index.ts',
output: [
{
file: `${OUTPUT_DIR}/index.js`,
file: `${OUTPUT_DIR}/index.cjs`,
format: 'cjs',
sourcemap: true
sourcemap: false
}
],
plugins: [
Expand All @@ -27,6 +27,10 @@ export default [
}),
strip(),
mjsEntry() // https://nodejs.org/api/packages.html#packages_dual_commonjs_es_module_packages
],
external: [
'live-connect-common',
'js-cookie'
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"resolveJsonModule": true,
"strict": true,
"declaration": true,
"sourceMap": true,
"sourceMap": false,
"moduleResolution": "NodeNext",
"module": "NodeNext"
},
Expand Down

0 comments on commit 248c728

Please sign in to comment.