mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +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
@@ -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,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",
|
||||
|
||||
Reference in New Issue
Block a user