diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2022-03-16 20:25:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 01:25:44 +0100 |
commit | f7ab41583e2bb4425ce7ac89b123089d0f07836a (patch) | |
tree | 1a4bbe2052499f36a202270e950dae067343b3fc /ext/broadcast_channel/lib.rs | |
parent | 418c1eb4b3d65a9573030a074170a344723608de (diff) |
fix: cargo publish fails without absolute paths (#13993)
This reverts commit 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/broadcast_channel/lib.rs')
-rw-r--r-- | ext/broadcast_channel/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs index e228871b9..57287ffbc 100644 --- a/ext/broadcast_channel/lib.rs +++ b/ext/broadcast_channel/lib.rs @@ -15,6 +15,7 @@ use deno_core::Resource; use deno_core::ResourceId; use deno_core::ZeroCopyBuf; use std::cell::RefCell; +use std::path::PathBuf; use std::rc::Rc; #[async_trait] @@ -126,3 +127,8 @@ pub fn init<BC: BroadcastChannel + 'static>( }) .build() } + +pub fn get_declaration() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")) + .join("lib.deno_broadcast_channel.d.ts") +} |