Explorar o código

fix(api): remove `currentDir` API from the `path` module

Lucas Nogueira %!s(int64=3) %!d(string=hai) anos
pai
achega
a08509c641
Modificáronse 3 ficheiros con 5 adicións e 17 borrados
  1. 5 0
      .changes/api-remove-current-dir.md
  2. 0 0
      core/tauri/scripts/bundle.js
  3. 0 17
      tooling/api/src/path.ts

+ 5 - 0
.changes/api-remove-current-dir.md

@@ -0,0 +1,5 @@
+---
+"api": "patch"
+---
+
+Removed the `currentDir` API from the `path` module.

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
core/tauri/scripts/bundle.js


+ 0 - 17
tooling/api/src/path.ts

@@ -412,22 +412,6 @@ async function videoDir(): Promise<string> {
   })
 }
 
-/**
- * Returns the path to the current working directory.
- *
- * @returns
- */
-async function currentDir(): Promise<string> {
-  return invokeTauriCommand<string>({
-    __tauriModule: 'Path',
-    message: {
-      cmd: 'resolvePath',
-      path: '',
-      directory: BaseDirectory.Current
-    }
-  })
-}
-
 /**
  * Returns the path to the suggested log directory.
  *
@@ -578,7 +562,6 @@ export {
   runtimeDir,
   templateDir,
   videoDir,
-  currentDir,
   logDir,
   BaseDirectory,
   sep,

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio