jsr
jsr copied to clipboard
index.js and index.d.ts files are getting ignored when building a tarball
mcve
deno.json
{
"name": "@foo/bar",
"version": "1.0.0",
"exports": {
".": "./index.js"
}
}
index.js
export const foo = 123
index.d.ts
export const foo: number
expected result
the tarball gets built and published correctly
actual result
the --dry-run
output doesn't include these files:
Simulating publish of @foo/[email protected] with files:
file:///path/to/LICENSE (1.04KB)
file:///path/to/deno.json (88B)
Warning Aborting due to --dry-run
and actual publish errors out due to index.js not being present (linefeed for readability):
Failed to publish @foo/bar at 1.0.0: invalid 'exports' field in config file '/deno.json':
export '.' references entrypoint '/index.js' which does not exist