Skip to content

Commit

Permalink
update rollup packages & fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Nov 17, 2023
1 parent 409411e commit 45ead79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@types/crypto-js": "^4.1.1",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.18",
"dotenv": "^16.0.3",
"jest": "^29.4.2",
"prettier": "^2.8.3",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
},
Expand Down
12 changes: 6 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const { join } = require('path');
const json = require('rollup-plugin-json');
const resolve = require('rollup-plugin-node-resolve');
const babel = require('rollup-plugin-babel');
const json = require('@rollup/plugin-json');
const resolve = require('@rollup/plugin-node-resolve');
const babel = require('@rollup/plugin-babel');
const typescript = require('@rollup/plugin-typescript');

module.exports = {
input: join('src', 'index.ts'),
Expand All @@ -20,12 +21,11 @@ module.exports = {
{ file: join('dist', 'buckaroo.esm.js'), format: 'es' },
],
plugins: [
typescript(),
json(),
resolve({
extensions: ['.ts'],
customResolveOptions: {
moduleDirectory: 'src',
},
moduleDirectories: ['src'],
preferBuiltins: true,
}),
babel({
Expand Down

0 comments on commit 45ead79

Please sign in to comment.