Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: egoist/tsup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.12.4
Choose a base ref
...
head repository: egoist/tsup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.12.5
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 4, 2022

  1. Copy the full SHA
    b7cf552 View commit details

Commits on Apr 12, 2022

  1. 1
    Copy the full SHA
    b3ad95f View commit details
Showing with 17 additions and 15 deletions.
  1. +2 −2 package.json
  2. +8 −8 pnpm-lock.yaml
  3. +1 −3 src/index.ts
  4. +6 −2 src/rollup.ts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -63,9 +63,9 @@
"svelte": "3.46.4",
"ts-essentials": "9.1.2",
"tsconfig-paths": "3.12.0",
"tsup": "5.12.2",
"tsup": "5.12.4",
"typescript": "4.6.3",
"vitest": "0.8.1",
"vitest": "0.8.4",
"wait-for-expect": "3.0.2"
},
"peerDependencies": {
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

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

4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -161,10 +161,8 @@ export async function build(_options: Options) {
})
worker.on('message', (data) => {
if (data === 'error') {
process.exitCode = 1
reject(new Error('Failed to bundle declaration files'))
reject(new Error('error occured in dts build'))
} else if (data === 'success') {
process.exitCode = 0
resolve()
}
})
8 changes: 6 additions & 2 deletions src/rollup.ts
Original file line number Diff line number Diff line change
@@ -243,8 +243,12 @@ const startRollup = async (options: NormalizedOptions) => {
if (options.watch) {
watchRollup(config)
} else {
await runRollup(config)
parentPort?.postMessage('success')
try {
await runRollup(config)
parentPort?.postMessage('success')
} catch (error) {
parentPort?.postMessage('error')
}
parentPort?.close()
}
}