Skip to content

Commit

Permalink
add compareVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Jun 14, 2023
1 parent ebe9666 commit 6649a70
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22,439 deletions.
20 changes: 0 additions & 20 deletions build/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,6 @@ export const alias = {
'js-cool': resolve(__dirname, '..')
}

export function generateExternal(
{ name, input, isFull = false }: { name: string; input: string; isFull?: boolean },
externals: string[] = []
) {
const { dependencies = {}, devDependencies = {}, peerDependencies = {} } = pkg
return (id: string) => {
const pkgs: string[] = Object.keys(peerDependencies)
if (!isFull) {
pkgs.push(...Object.keys(dependencies), ...Object.keys(devDependencies))
}
return [...new Set(pkgs)].some(
pkg =>
id === pkg ||
id.startsWith(`${pkg}/`) ||
(id !== input && id.includes(`packages/${name}`)) ||
externals.includes(id)
)
}
}

export const reporter = (opt: any, outputOptions: any, info: any) =>
`${chalk.cyan(
chalk.bold(
Expand Down
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

Loading

0 comments on commit 6649a70

Please sign in to comment.