@orielweb/api 0.4.14 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,11 +9,21 @@ import { invoke } from '@tauri-apps/api/core';
|
|
|
9
9
|
import { invoke } from '@orielweb/api/core';
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
>
|
|
12
|
+
```sh
|
|
13
|
+
npm install @orielweb/api
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
> **发布状态**:0.4.15 起发布到 npm(`@orielweb/api`,公开,MIT)。版本号与 NuGet 包
|
|
17
|
+
> `OrielWeb` 同步取自根 `Directory.Build.props`,两边始终是同一个 `X.Y.Z`。
|
|
18
|
+
>
|
|
19
|
+
> 发布走手动一步:`npm publish` 需要 2FA 或带 bypass 2FA 的 Granular Token,
|
|
20
|
+
> `npm login` 拿到的 token 直接发会 403。`prepublishOnly` 会先跑单测、类型检查、
|
|
21
|
+
> 重新生成 `types/` 并过 `npm run check:types` 闸门(`scripts/check-published-types.mjs`),
|
|
22
|
+
> 任一步红都不会上传。
|
|
23
|
+
>
|
|
24
|
+
> 不用 npm 也可以:`npm install <仓库路径>/packages/api`、workspace 引用,或像
|
|
25
|
+
> `samples/OrielDemo` 那样直接把 `src/*.js` 内嵌进产物(`OrielDemo.csproj` 的 vendor 段,
|
|
26
|
+
> **内嵌源码而不是复制副本**,所以不存在副本漂移)。
|
|
17
27
|
|
|
18
28
|
## 设计取舍
|
|
19
29
|
|