ironmark 0.1.0 → 1.0.0
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/package.json +25 -24
- package/wasm/pkg/ironmark_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ironmark",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Very fast markdown parser in Rust, consumable from JavaScript/TypeScript via WebAssembly",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -12,24 +12,33 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/ph1p/ironmark/issues"
|
|
14
14
|
},
|
|
15
|
-
"license": "MIT",
|
|
16
15
|
"repository": {
|
|
17
16
|
"type": "git",
|
|
18
17
|
"url": "https://github.com/ph1p/ironmark.git"
|
|
19
18
|
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "wasm/index.js",
|
|
23
|
+
"types": "wasm/index.d.ts",
|
|
20
24
|
"files": [
|
|
21
25
|
"wasm/pkg",
|
|
22
26
|
"wasm/index.js",
|
|
23
27
|
"wasm/index.d.ts",
|
|
24
28
|
"README.md"
|
|
25
29
|
],
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "npm run build:wasm",
|
|
32
|
+
"build:dev": "PATH=\"$PWD/.wasm-tools/bin:$HOME/.cargo/bin:$PATH\" cargo build -p ironmark-wasm --target wasm32-unknown-unknown && PATH=\"$PWD/.wasm-tools/bin:$HOME/.cargo/bin:$PATH\" wasm-bindgen --target bundler --out-dir wasm/pkg --out-name ironmark target/wasm32-unknown-unknown/debug/ironmark.wasm",
|
|
33
|
+
"build:wasm": "PATH=\"$PWD/.wasm-tools/bin:$HOME/.cargo/bin:$PATH\" cargo build -p ironmark-wasm --release --target wasm32-unknown-unknown && PATH=\"$PWD/.wasm-tools/bin:$HOME/.cargo/bin:$PATH\" wasm-bindgen --target bundler --out-dir wasm/pkg --out-name ironmark target/wasm32-unknown-unknown/release/ironmark.wasm && wasm-opt --enable-bulk-memory -O3 wasm/pkg/ironmark_bg.wasm -o wasm/pkg/ironmark_bg.wasm",
|
|
34
|
+
"check": "cargo fmt --check && cargo test --offline && oxlint && oxfmt --check .",
|
|
35
|
+
"clean": "rm -rf wasm/pkg .wasm-tools",
|
|
36
|
+
"fmt": "cargo fmt && oxfmt --write .",
|
|
37
|
+
"lint": "oxlint",
|
|
38
|
+
"release": "semantic-release",
|
|
39
|
+
"release:dry": "semantic-release --dry-run",
|
|
40
|
+
"setup:wasm": "PATH=\"$HOME/.cargo/bin:$PATH\" rustup target add wasm32-unknown-unknown && TMPDIR=/tmp PATH=\"$HOME/.cargo/bin:$PATH\" cargo install wasm-bindgen-cli --locked --root .wasm-tools",
|
|
41
|
+
"test": "cargo test --offline"
|
|
33
42
|
},
|
|
34
43
|
"devDependencies": {
|
|
35
44
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -42,21 +51,13 @@
|
|
|
42
51
|
"oxlint": "^1.50.0",
|
|
43
52
|
"semantic-release": "^25.0.3"
|
|
44
53
|
},
|
|
54
|
+
"packageManager": "pnpm@10.30.2",
|
|
45
55
|
"engines": {
|
|
46
56
|
"node": ">=18"
|
|
47
57
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"clean": "rm -rf wasm/pkg .wasm-tools",
|
|
55
|
-
"fmt": "cargo fmt && oxfmt --write .",
|
|
56
|
-
"lint": "oxlint",
|
|
57
|
-
"release": "semantic-release",
|
|
58
|
-
"release:dry": "semantic-release --dry-run",
|
|
59
|
-
"setup:wasm": "PATH=\"$HOME/.cargo/bin:$PATH\" rustup target add wasm32-unknown-unknown && TMPDIR=/tmp PATH=\"$HOME/.cargo/bin:$PATH\" cargo install wasm-bindgen-cli --locked --root .wasm-tools",
|
|
60
|
-
"test": "cargo test --offline"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public",
|
|
60
|
+
"registry": "https://registry.npmjs.org/"
|
|
61
|
+
},
|
|
62
|
+
"prepack": "npm run build"
|
|
63
|
+
}
|
|
Binary file
|