-
Notifications
You must be signed in to change notification settings - Fork 30
Migrate the repository tooling to Rolldown and isolated declarations. #1299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
filipsobol
merged 12 commits into
master
from
ci/4293-migrate-to-rolldown-and-isolated-declarations
May 21, 2026
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
52d3a67
Migrate the repository tooling to Rolldown and isolated declarations.
filipsobol 8c4b41f
Fix failing CI.
filipsobol 2ac6174
Address review feedback.
filipsobol 3e70509
Add tests for `plugin-declarations.js`.
filipsobol 805bfa6
Remove unnecessary `types` command.
filipsobol 115a813
Use `exclude` instead of `ignore` in `globSync` (as required by nativβ¦
filipsobol dd07c99
Update Rolldown to `v1.0.0`.
filipsobol 096c27b
Minor adjustments after rebasing to the latest `master` branch.
filipsobol 2045792
Fix TypeScript errors.
filipsobol deecee1
Add missing dev dependencies.
filipsobol 35dddf5
Merge remote-tracking branch 'origin/master' into ci/4293-migrate-to-β¦
filipsobol 83792da
Address declaration generation review comments.
filipsobol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /** | ||
| * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. | ||
| * For licensing, see LICENSE.md. | ||
| */ | ||
|
|
||
| import { defineConfig } from 'rolldown'; | ||
| import { declarationFilesPlugin } from '../../scripts/plugin-declarations.js'; | ||
| import pkg from './package.json' with { type: 'json' }; | ||
|
|
||
| const externals = [ | ||
| ...Object.keys( pkg.dependencies || {} ), | ||
| ...Object.keys( pkg.peerDependencies || {} ) | ||
| ]; | ||
|
|
||
| export default defineConfig( { | ||
| input: 'src/index.ts', | ||
| platform: 'node', | ||
| output: { | ||
| cleanDir: true, | ||
| format: 'esm', | ||
| dir: 'dist', | ||
| assetFileNames: '[name][extname]' | ||
| }, | ||
| plugins: [ | ||
| declarationFilesPlugin() | ||
| ], | ||
| external: id => externals.some( name => id.startsWith( name ) ) | ||
| } ); |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /** | ||
| * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. | ||
| * For licensing, see LICENSE.md. | ||
| */ | ||
|
|
||
| import { defineConfig } from 'rolldown'; | ||
| import { declarationFilesPlugin } from '../../scripts/plugin-declarations.js'; | ||
| import pkg from './package.json' with { type: 'json' }; | ||
|
|
||
| const externals = [ | ||
| ...Object.keys( pkg.dependencies || {} ), | ||
| ...Object.keys( pkg.peerDependencies || {} ) | ||
| ]; | ||
|
|
||
| export default defineConfig( { | ||
| input: { | ||
| index: 'src/index.ts', | ||
| template: 'src/template.ts' | ||
| }, | ||
|
filipsobol marked this conversation as resolved.
Outdated
|
||
| platform: 'node', | ||
| output: { | ||
| cleanDir: true, | ||
| format: 'esm', | ||
| dir: 'dist', | ||
| assetFileNames: '[name][extname]' | ||
| }, | ||
| external: id => externals.some( name => id.startsWith( name ) ), | ||
| plugins: [ | ||
| declarationFilesPlugin() | ||
| ] | ||
| } ); | ||
|
filipsobol marked this conversation as resolved.
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.