Skip to content

Commit 58b7529

Browse files
committed
build: configure monorepo for WASM package
- Add wasm to Cargo workspace - Setup pnpm workspace with wasm directory - Add root package.json for development scripts - Update .gitignore for WASM build artifacts
1 parent 8783935 commit 58b7529

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ fuzz/corpus
1010
fuzz/artifacts
1111
fuzz/hfuzz_target
1212
fuzz/hfuzz_workspace
13+
node_modules/
14+
pnpm-lock.yaml
15+
pnpm-debug.log*

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rust-version = "1.56"
4141
version = "1.0.0"
4242

4343
[workspace]
44-
members = ["generate", "mdast_util_to_markdown"]
44+
members = ["generate", "mdast_util_to_markdown", "wasm"]
4545

4646
[workspace.dependencies]
4747
pretty_assertions = "1"

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "markdown-rs-monorepo",
3+
"private": true,
4+
"scripts": {
5+
"build": "pnpm -r build",
6+
"test": "pnpm -r test",
7+
"lint": "cargo fmt --all && cargo clippy --all-features --all-targets --workspace"
8+
},
9+
"packageManager": "[email protected]"
10+
}

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'wasm'

0 commit comments

Comments
 (0)