Skip to content

Commit

Permalink
feat: add rollup v4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed Oct 6, 2023
1 parent baad4ed commit 6176ad7
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 26 deletions.
282 changes: 273 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"@types/node": "^20.8.0",
"@types/react": "^18.2.24",
"c8": "^8.0.1",
"rollup": "3.29.4",
"rollup": "^4.0.1",
"typescript": "5.2.2"
},
"peerDependencies": {
"rollup": "^3.29.4",
"rollup": "^3.29.4 || ^4",
"typescript": "^4.5 || ^5.0"
},
"optionalDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions tests/testcases/multiple-entries-cjs/expected.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// main-a.d.cts
export { A } from './main-b.d-e5346d3a.js';
export { A } from './main-b.d-FG8lOMpq.js';
// main-b.d.cts
export { B } from './main-b.d-e5346d3a.js';
// main-b.d-e5346d3a.d.ts
export { B } from './main-b.d-FG8lOMpq.js';
// main-b.d-FG8lOMpq.d.ts
interface A {}
interface B {}
export type { A, B };
6 changes: 3 additions & 3 deletions tests/testcases/multiple-entries-mjs/expected.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// main-a.d.mts
export { A } from './main-b.d-e5346d3a.mjs';
export { A } from './main-b.d-FG8lOMpq.mjs';
// main-b.d.mts
export { B } from './main-b.d-e5346d3a.mjs';
// main-b.d-e5346d3a.d.mts
export { B } from './main-b.d-FG8lOMpq.mjs';
// main-b.d-FG8lOMpq.d.mts
interface A {}
interface B {}
export type { A, B };
6 changes: 3 additions & 3 deletions tests/testcases/multiple-entries/expected.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// >main-a<.d.ts
export { A } from './main-b.d-e5346d3a.js';
export { A } from './main-b.d-FG8lOMpq.js';
// >main-b<.d.ts
export { B } from './main-b.d-e5346d3a.js';
// main-b.d-e5346d3a.d.ts
export { B } from './main-b.d-FG8lOMpq.js';
// main-b.d-FG8lOMpq.d.ts
interface A {}
interface B {}
export type { A, B };
6 changes: 3 additions & 3 deletions tests/testcases/using-mts-cts-files/expected.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// mts.d.ts
export { A } from './main-b-0fcfb715.js';
export { A } from './main-b-QmL8JJ4D.js';
// cts.d.ts
export { B } from './main-b-0fcfb715.js';
// main-b-0fcfb715.d.ts
export { B } from './main-b-QmL8JJ4D.js';
// main-b-QmL8JJ4D.d.ts
interface A {
}
interface B {
Expand Down
Loading

0 comments on commit 6176ad7

Please sign in to comment.