Skip to content

Commit

Permalink
fix: fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Apr 6, 2023
1 parent b2a3618 commit 7a3ec4d
Show file tree
Hide file tree
Showing 7 changed files with 1,501 additions and 1,394 deletions.
4 changes: 2 additions & 2 deletions build/contant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const CLI_DIR_MAP = {
'@pr-checker/core': '../dist/cli/core/index[format]',
}

export const EXT_ENTRY = {
/* export const EXT_ENTRY = {
'extension/core': '../packages/extension/index.ts',
'extension/utils': '../utils/index.ts',
}
} */
4 changes: 2 additions & 2 deletions build/tsup-build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'tsup'
import { CLI_ENTRY, EXT_ENTRY } from './contant'
import { CLI_ENTRY } from './contant'
import type { Options } from 'tsup'

const baseConfig = {
Expand All @@ -21,6 +21,6 @@ function setConfig(entry: Record<string, string>) {
configOptions.push(config)
}
}
setConfig(EXT_ENTRY)
// setConfig(EXT_ENTRY)
setConfig(CLI_ENTRY)
export default defineConfig(configOptions)
3 changes: 2 additions & 1 deletion packages/cli/bin/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
import { run } from '../core'
// @ts-expect-error
import { run } from '@pr-checker/core'
const start = async() => {
try {
await run()
Expand Down
Loading

0 comments on commit 7a3ec4d

Please sign in to comment.