From f7ab41583e2bb4425ce7ac89b123089d0f07836a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 16 Mar 2022 20:25:44 -0400 Subject: fix: cargo publish fails without absolute paths (#13993) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88. Co-authored-by: Bartek IwaƄczuk --- ext/console/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/console/lib.rs') diff --git a/ext/console/lib.rs b/ext/console/lib.rs index 03b3a79c0..6c5bba9fa 100644 --- a/ext/console/lib.rs +++ b/ext/console/lib.rs @@ -2,6 +2,7 @@ use deno_core::include_js_files; use deno_core::Extension; +use std::path::PathBuf; pub fn init() -> Extension { Extension::builder() @@ -12,3 +13,7 @@ pub fn init() -> Extension { )) .build() } + +pub fn get_declaration() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_console.d.ts") +} -- cgit v1.2.3