Skip to content

Commit 48b290c

Browse files
F*** Weback
1 parent 76b330b commit 48b290c

13 files changed

+106
-1220
lines changed

.github/workflows/build.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ jobs:
1616
- uses: pnpm/action-setup@v4
1717
- run: pnpm install
1818
- run: pnpm build
19+
- run: pnpm test

Cargo.lock

+48-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ regex-lite = "0.1.6"
1515
wasm-bindgen = "0.2.100"
1616
serde = { version = "1.0", features = ["derive"] }
1717
serde-wasm-bindgen = "0.4"
18+
tsify = { version = "0.4.5", default-features = false, features = ["js"] }
1819

1920
[profile.release]
2021
opt-level = "s"

package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
{
22
"name": "@openrouter/markdown-wasm",
3-
"version": "0.1.2",
3+
"version": "0.2.0",
44
"packageManager": "[email protected]+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af",
55
"type": "module",
6-
"module": "dist/index.mjs",
7-
"types": "dist/index.d.ts",
6+
"module": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"import": "./dist/index.js",
11+
"types": "./dist/index.d.ts"
12+
}
13+
},
814
"files": [
915
"/dist"
1016
],
1117
"scripts": {
12-
"build": "cross-env TS_NODE_PROJECT=\"tsconfig.webpack-config.json\" webpack --config webpack.config.ts"
18+
"build": "cross-env RUSTC_BOOTSTRAP=1 wasm-pack build --out-dir dist --out-name index --release --no-pack --target bundler . -Z build-std=panic_abort,std -Z build-std-features=panic_immediate_abort",
19+
"test": "pnpm build && vitest run"
1320
},
1421
"repository": {
1522
"type": "git",
1623
"url": "https://github.com/OpenRouterTeam/markdown-wasm.git"
1724
},
1825
"devDependencies": {
1926
"@types/node": "^22.13.4",
20-
"@types/webpack": "^5.28.5",
21-
"@wasm-tool/wasm-pack-plugin": "^1.7.0",
22-
"bundle-declarations-webpack-plugin": "^5.1.1",
2327
"cross-env": "^7.0.3",
24-
"ts-loader": "^9.5.2",
2528
"ts-node": "^10.9.2",
2629
"typescript": "^5.7.3",
2730
"vite-plugin-top-level-await": "^1.5.0",
2831
"vite-plugin-wasm": "^3.4.1",
29-
"vitest": "^3.0.5",
30-
"webpack": "^5.98.0",
31-
"webpack-cli": "^6.0.1"
32+
"vitest": "^3.0.5"
3233
}
3334
}

0 commit comments

Comments
 (0)