You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> bat .\jsr.json -pp
{
"name": "...",
"version": "...",
"license": "MIT",
"include": [
"./build_bg.wasm",
"./build.js",
"./build.d.ts",
"./main.js"
],
"exports": {
"./uninitialised": "./build.js",
".": "./main.js"
}
}
> deno publish --allow-dirty --allow-slow-types
Check file:///C:/.../pkg/build.js
Check file:///C:/.../pkg/main.js
Warning Publishing a library with slow types is not recommended. This may lead to poor type checking performance for users of your package, may affect the quality of automatic documentation generation, and your package will not be shipped with a .d.ts file for Node.js users.
error[excluded-module]: module in package's module graph was excluded from publishing --> C:\...\pkg\build.js = hint: remove the module from 'exclude' and/or 'publish.exclude' in the config file or use 'publish.exclude' with a negative glob to unexclude from gitignore info: excluded modules referenced via a package export will error at runtime due to not existing in the package docs: https://jsr.io/go/excluded-moduleerror[excluded-module]: module in package's module graph was excluded from publishing
--> C:\...\pkg\main.js
= hint: remove the module from 'exclude' and/or 'publish.exclude'in the config file or use 'publish.exclude' with a negative glob to unexclude from gitignore
info: excluded modules referenced via a package export will error at runtime due to not existing in the package
docs: https://jsr.io/go/excluded-module
error: Found 2 problems
Two things:
The fact this exclusion comes from .gitignoreshould be in these error messages. The hint is incorrect.
How do I solve this without removing the .gitignore in the directory chain. The values in the include field should take precedence and/or deno publish should take a --ignore-git-ignore option.
The text was updated successfully, but these errors were encountered:
I think a top level "include" has no effect at the moment, but it might work to move that under "publish": { "include": [...] } also. We've been meaning to implement a top level include in jsr.json, but haven't gotten around to it.
Running the following
Two things:
.gitignore
should be in these error messages. The hint is incorrect..gitignore
in the directory chain. The values in theinclude
field should take precedence and/ordeno publish
should take a--ignore-git-ignore
option.The text was updated successfully, but these errors were encountered: