Skip to content

Commit

Permalink
fix type & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed May 7, 2024
1 parent 9e88f89 commit a15e11a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion workspace/dev-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"magic-string": "^0.30.5",
"rollup": "^4.1.4",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-ts": "^3.4.5",
"rollup-plugin-prettier": "^4.1.1",
"rollup-plugin-ts": "^3.4.5",
"typescript": "^5.2.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions workspace/dev-compile/src/rollup/plugins/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ import type { RollupPlugin } from "../utils.js";
* @param {PackageInfo} pkg
* @returns {import("rollup").Plugin}
*/
export default function externals(pkg: PackageInfo, mode: 'development' | 'production'): RollupPlugin {
export default function externals(pkg: PackageInfo, mode: 'development' | 'production' | undefined): RollupPlugin {
const isExternal = external(pkg, mode);

return {
Expand All @@ -222,7 +222,7 @@ export default function externals(pkg: PackageInfo, mode: 'development' | 'produ
* @param {PackageInfo} pkg
* @returns
*/
function external(pkg: PackageInfo, mode: 'development' | 'production') {
function external(pkg: PackageInfo, mode: 'development' | 'production' | undefined) {
/**
* @param {string} id
* @returns {boolean}
Expand Down

0 comments on commit a15e11a

Please sign in to comment.