Skip to content

Pack failed with tsdown 0.21.2 #826

@romainPrignon

Description

@romainPrignon

Reproduction link or steps

could not make it work on stackblitz (wasi,..)
vitejs-vite-ycyz3zsc.zip

What is expected?

  • no error message
  • build complete

What is actually happening?

yarn build
yarn run v1.22.22
warning package.json: No license field
$ tsdown
[tsdown] Node.js v22.14.0 is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js 22.18.0 or later.
ℹ tsdown v0.21.2 powered by rolldown v1.0.0-rc.9
ℹ config file: /tmp/rolldown/vitejs-vite-ycyz3zsc/tsdown.config.ts (unrun)
ℹ entry: src/index.ts
ℹ tsconfig: tsconfig.json
ℹ Build start
ℹ Cleaning 1 files
ℹ [CJS] dist/index.cjs  0.00 kB │ gzip: 0.02 kB
ℹ [CJS] 1 files, total: 0.00 kB
ℹ [CJS] dist/index.d.cts  0.01 kB │ gzip: 0.03 kB
ℹ [CJS] 1 files, total: 0.01 kB
✔ Build complete in 961ms
ℹ [ESM] dist/index.mjs    0.01 kB │ gzip: 0.03 kB
ℹ [ESM] dist/index.d.mts  0.01 kB │ gzip: 0.03 kB
ℹ [ESM] 2 files, total: 0.02 kB
✔ Build complete in 963ms

 ERROR  Pack failed: Error: Failed to find packed tarball file in /tmp/tsdown-pack-LWcKjg. Command output:
{
  "stdout": "success Wrote tarball to \"/tmp/rolldown/vitejs-vite-ycyz3zsc/pack-failed-v1.0.0.tgz\".\n",
  "stderr": "warning package.json: No license field\nwarning package.json: No license field\n"
}

``


### Any additional comments?

works fine with tsdown 0.16.0

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions