Skip to content

Commit ee41863

Browse files
authored
Merge pull request #1134 from duffelhq/fix-build
fix: update Rollup and add TypeScript plugin
2 parents f5516d6 + bf1e6cb commit ee41863

File tree

3 files changed

+34
-323
lines changed

3 files changed

+34
-323
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"@rollup/plugin-commonjs": "25.0.8",
7474
"@rollup/plugin-node-resolve": "15.3.1",
7575
"@rollup/plugin-terser": "0.4.4",
76+
"@rollup/plugin-typescript": "^12.3.0",
7677
"@types/jest": "29.5.14",
7778
"@typescript-eslint/eslint-plugin": "6.7.5",
7879
"@typescript-eslint/parser": "6.7.5",
@@ -87,11 +88,10 @@
8788
"lint-staged": "15.5.2",
8889
"nock": "13.5.6",
8990
"prettier": "3.5.3",
90-
"rollup": "4.59.0",
91+
"rollup": "3",
9192
"rollup-plugin-dts-bundle": "^1.0.0",
9293
"rollup-plugin-inject-process-env": "1.3.1",
9394
"rollup-plugin-peer-deps-external": "2.2.4",
94-
"rollup-plugin-typescript2": "0.36.0",
9595
"semantic-release": "22.0.12",
9696
"ts-jest": "29.4.6",
9797
"ts-node": "10.9.2",

rollup.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import terser from '@rollup/plugin-terser'
22
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
33
import resolve from '@rollup/plugin-node-resolve'
44
import commonjs from '@rollup/plugin-commonjs'
5-
import typescript from 'rollup-plugin-typescript2'
5+
import typescript from '@rollup/plugin-typescript'
66
import dtsBundle from 'rollup-plugin-dts-bundle'
77
import injectProcessEnv from 'rollup-plugin-inject-process-env'
8-
import packageJson from './package.json' assert { type: 'json' }
8+
import packageJson from './package.json' with { type: 'json' }
99

1010
const globals = {
1111
...packageJson.dependencies,
@@ -30,13 +30,13 @@ export default [
3030
],
3131
plugins: [
3232
peerDepsExternal(),
33+
typescript({
34+
tsconfig: './tsconfig.json',
35+
}),
3336
resolve({
3437
preferBuiltins: true,
3538
}),
3639
commonjs(),
37-
typescript({
38-
clean: true,
39-
}),
4040
dtsBundle({
4141
bundle: {
4242
name: packageJson.name,

0 commit comments

Comments
 (0)