feat(plugins): use @tauri-apps namespace on NPM (#368)

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
Lucas Fernandes Nogueira
2023-05-17 20:52:53 -03:00
committed by GitHub
parent caf8456864
commit 22991af9f4
72 changed files with 435 additions and 419 deletions
+4 -4
View File
@@ -30,11 +30,11 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa
> Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use.
```sh
pnpm add tauri-plugin-positioner-api
pnpm add @tauri-apps/plugin-positioner
# or
npm add tauri-plugin-positioner-api
npm add @tauri-apps/plugin-positioner
# or
yarn add tauri-plugin-positioner-api
yarn add @tauri-apps/plugin-positioner
```
Or through git:
@@ -69,7 +69,7 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript
import { move_window, Position } from "tauri-plugin-positioner-api";
import { move_window, Position } from "@tauri-apps/plugin-positioner";
move_window(Position.TopRight);
```
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "tauri-plugin-positioner-api",
"name": "@tauri-apps/plugin-positioner",
"version": "0.2.7",
"description": "Position your windows at well-known locations.",
"license": "MIT or APACHE-2.0",