From 248c728dd953cea2220f714ff63f34b50008fc6e Mon Sep 17 00:00:00 2001 From: Maxim Schuwalow Date: Tue, 12 Mar 2024 11:59:29 +0100 Subject: [PATCH] Update rollup --- package.json | 2 +- rollup.config.js | 8 ++++++-- tsconfig.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 201958f..6d8f4b2 100644 --- a/package.json +++ b/package.json @@ -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'", diff --git a/rollup.config.js b/rollup.config.js index fc242f7..1296009 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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: [ @@ -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' ] }, { diff --git a/tsconfig.json b/tsconfig.json index 92a20d5..9202f49 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "resolveJsonModule": true, "strict": true, "declaration": true, - "sourceMap": true, + "sourceMap": false, "moduleResolution": "NodeNext", "module": "NodeNext" },