Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to generate documentation and publish when dep is @types/* #511

Open
o-az opened this issue May 14, 2024 · 0 comments
Open

Fails to generate documentation and publish when dep is @types/* #511

o-az opened this issue May 14, 2024 · 0 comments

Comments

@o-az
Copy link

o-az commented May 14, 2024

I'm trying to publish this: https://github.com/rehype-pretty/rehype-pretty-code/tree/master/packages/core

I run: pnpm dlx jsr@latest publish --allow-dirty and get the following:

error: Failed to publish @rehype-pretty/core@0.13.2

Caused by:
    Failed to publish @rehype-pretty/core at 0.13.2: failed to generate documentation: Failed resolving './hast' from 'file:///src/index.ts'.

    Stack backtrace:
       0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
       1: registry_api::docs::generate_docs
       2: registry_api::analysis::analyze_package_inner::{{closure}}::{{closure}}
       3: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
       4: <core::pin::Pin<P> as core::future::future::Future>::poll
       5: tokio::runtime::scheduler::current_thread::Context::enter
       6: tokio::runtime::context::scoped::Scoped<T>::set
       7: tokio::runtime::context::set_scheduler
       8: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
       9: tokio::runtime::context::runtime::enter_runtime
      10: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
      11: tokio::runtime::task::core::Core<T,S>::poll
      12: tokio::runtime::task::harness::Harness<T,S>::poll
      13: tokio::runtime::blocking::pool::Inner::run
      14: std::sys_common::backtrace::__rust_begin_short_backtrace
      15: core::ops::function::FnOnce::call_once{{vtable.shim}}
      16: std::sys::pal::unix::thread::Thread::new::thread_start
      17: <unknown>
      18: <unknown>
Child process exited with: 1

One of the package dependencies is @types/hast. The relevant import is here: https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/core/src/index.ts#L1

Is there something I need to do to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant