mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
feat(plugins): use @tauri-apps namespace on NPM (#368)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
committed by
GitHub
parent
caf8456864
commit
22991af9f4
@@ -51,7 +51,7 @@ fn main() {
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import * as process from "tauri-plugin-process-api";
|
||||
import * as process from "@tauri-apps/plugin-process";
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
@@ -13,7 +13,7 @@ import { invoke } from "@tauri-apps/api/tauri";
|
||||
* Exits immediately with the given `exitCode`.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { exit } from 'tauri-plugin-process-api';
|
||||
* import { exit } from '@tauri-apps/plugin-process';
|
||||
* await exit(1);
|
||||
* ```
|
||||
*
|
||||
@@ -30,7 +30,7 @@ async function exit(code = 0): Promise<void> {
|
||||
* Exits the current instance of the app then relaunches it.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { relaunch } from 'tauri-plugin-process-api';
|
||||
* import { relaunch } from '@tauri-apps/plugin-process';
|
||||
* await relaunch();
|
||||
* ```
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tauri-plugin-process-api",
|
||||
"name": "@tauri-apps/plugin-process",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user