happy-rusty 1.0.7 → 1.0.8

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.
Files changed (3) hide show
  1. package/README.cn.md +18 -3
  2. package/README.md +18 -3
  3. package/package.json +13 -13
package/README.cn.md CHANGED
@@ -1,3 +1,8 @@
1
+ [![NPM version](http://img.shields.io/npm/v/happy-rusty.svg)](https://npmjs.org/package/happy-rusty)
2
+ [![JSR Version](https://jsr.io/badges/@happy-js/happy-rusty)](https://jsr.io/@happy-js/happy-rusty)
3
+ [![JSR Score](https://jsr.io/badges/@happy-js/happy-rusty/score)](https://jsr.io/@happy-js/happy-rusty/score)
4
+ [![Build Status](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml/badge.svg)](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml)
5
+
1
6
  # 在JavaScript中使用Rust特性
2
7
 
3
8
  ## 部分支持的特性
@@ -9,16 +14,26 @@
9
14
 
10
15
  ## 安装
11
16
 
12
- 通过 [JSR](https://jsr.io/@happy-js/happy-rusty) (**推荐**)
17
+ pnpm
18
+ ```
19
+ pnpm add happy-rusty
20
+ ```
21
+
22
+ yarn
13
23
  ```
14
- npx jsr add @happy-js/happy-rusty
24
+ yarn add happy-rusty
15
25
  ```
16
26
 
17
- 或者直接使用 npm
27
+ npm
18
28
  ```
19
29
  npm install --save happy-rusty
20
30
  ```
21
31
 
32
+ 通过 JSR
33
+ ```
34
+ jsr add @happy-js/happy-rusty
35
+ ```
36
+
22
37
  通过 deno
23
38
  ```
24
39
  deno add @happy-js/happy-rusty
package/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
  <a href="README.cn.md">[中文]</a>
3
3
  </p>
4
4
 
5
+ [![NPM version](http://img.shields.io/npm/v/happy-rusty.svg)](https://npmjs.org/package/happy-rusty)
6
+ [![JSR Version](https://jsr.io/badges/@happy-js/happy-rusty)](https://jsr.io/@happy-js/happy-rusty)
7
+ [![JSR Score](https://jsr.io/badges/@happy-js/happy-rusty/score)](https://jsr.io/@happy-js/happy-rusty/score)
8
+ [![Build Status](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml/badge.svg)](https://github.com/jiangjie/happy-rusty/actions/workflows/test.yml)
9
+
5
10
  # Use Rust features in JavaScript happily
6
11
 
7
12
  ## Partial supported
@@ -9,13 +14,18 @@
9
14
  * [option](https://doc.rust-lang.org/core/option/index.html)
10
15
  * [result](https://doc.rust-lang.org/core/result/index.html)
11
16
 
12
- ## More is coming
17
+ ### More is coming
13
18
 
14
19
  ## Installation
15
20
 
16
- Via [JSR](https://jsr.io/@happy-js/happy-rusty) (**recommand**)
21
+ via pnpm
22
+ ```
23
+ pnpm add happy-rusty
24
+ ```
25
+
26
+ or via yarn
17
27
  ```
18
- npx jsr add @happy-js/happy-rusty
28
+ yarn add happy-rusty
19
29
  ```
20
30
 
21
31
  or just from npm
@@ -23,6 +33,11 @@ or just from npm
23
33
  npm install --save happy-rusty
24
34
  ```
25
35
 
36
+ via JSR
37
+ ```
38
+ jsr add @happy-js/happy-rusty
39
+ ```
40
+
26
41
  for deno
27
42
  ```
28
43
  deno add @happy-js/happy-rusty
package/package.json CHANGED
@@ -3,13 +3,12 @@
3
3
  "description": "Porting some excellent design implementations from Rust to JavaScript.",
4
4
  "author": "jiang115jie@gmail.com",
5
5
  "license": "GPL-3.0",
6
- "version": "1.0.7",
6
+ "version": "1.0.8",
7
7
  "type": "module",
8
- "source": "./src/mod.ts",
9
- "main": "./dist/main.cjs",
10
- "module": "./dist/main.mjs",
11
- "types": "./dist/types.d.ts",
12
- "exports": "./src/mod.ts",
8
+ "source": "src/mod.ts",
9
+ "main": "dist/main.cjs",
10
+ "module": "dist/main.mjs",
11
+ "types": "dist/types.d.ts",
13
12
  "files": [
14
13
  "LICENSE",
15
14
  "README.md",
@@ -20,12 +19,12 @@
20
19
  ],
21
20
  "sideEffects": false,
22
21
  "scripts": {
23
- "check": "npx tsc --noEmit",
24
- "lint": "npx eslint src/",
25
- "prebuild": "npx rimraf dist && npm run check && npm run lint",
26
- "build": "npx rollup --config rollup.config.mjs",
27
- "test": "bun test",
28
- "prepublishOnly": "npm run build"
22
+ "check": "pnpm exec tsc --noEmit",
23
+ "lint": "pnpm exec eslint src/",
24
+ "prebuild": "pnpm exec rimraf dist && pnpm run check && pnpm run lint",
25
+ "build": "pnpm exec rollup --config rollup.config.mjs",
26
+ "test": "bun test --coverage",
27
+ "prepublishOnly": "pnpm run build"
29
28
  },
30
29
  "repository": {
31
30
  "type": "git",
@@ -51,5 +50,6 @@
51
50
  "rollup-plugin-dts": "^6.1.0",
52
51
  "rollup-plugin-esbuild": "^6.1.1",
53
52
  "typescript": "^5.4.5"
54
- }
53
+ },
54
+ "packageManager": "pnpm@9.1.1+sha512.14e915759c11f77eac07faba4d019c193ec8637229e62ec99eefb7cf3c3b75c64447882b7c485142451ee3a6b408059cdfb7b7fa0341b975f12d0f7629c71195"
55
55
  }