diff --git a/Cargo.toml b/Cargo.toml index 64f0e94..148d485 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] -authors = ["LongYinan "] edition = "2021" name = "napi-nodejs-resolver" version = "0.1.0" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/index.d.ts b/index.d.ts index dda8de9..ee7dbb2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -23,14 +23,12 @@ export interface RawResolverOptions { preferRelative?: boolean enableUnsafeCache?: boolean } -export interface ResolverInternal {} +export interface ResolverInternal { + +} export function create(options: RawResolverOptions): ExternalObject export interface ResolveResult { status: boolean path?: string } -export function resolve( - resolver: ExternalObject, - base_dir: string, - id: string, -): { status: boolean; path?: string } +export function resolve(resolver: ExternalObject, base_dir: string, id: string): {status: boolean, path?: string} diff --git a/package.json b/package.json index 67f9f8c..6f87020 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodejs-resolver", - "version": "0.0.3", + "version": "0.0.4", "description": "node binding for nodejs-resolver", "main": "index.js", "license": "MIT",