diff --git a/crates/loro-wasm/deno.json b/crates/loro-wasm/deno.json deleted file mode 100644 index 6a96d5cb..00000000 --- a/crates/loro-wasm/deno.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "tasks": { - "release": "deno run -A ./scripts/build.ts release", - "dev": "deno run -A ./scripts/build.ts dev" - } -} diff --git a/crates/loro-wasm/package.json b/crates/loro-wasm/package.json index df60d8d5..13942a24 100644 --- a/crates/loro-wasm/package.json +++ b/crates/loro-wasm/package.json @@ -13,7 +13,8 @@ "main": "nodejs/loro_wasm.js", "module": "bundler/loro_wasm.js", "scripts": { - "build": "deno task release" + "release": "deno run -A ./scripts/build.ts release", + "dev": "deno run -A ./scripts/build.ts dev" }, "homepage": "https://loro.dev", "author": "", diff --git a/deno.jsonc b/deno.jsonc deleted file mode 100644 index aa43f9de..00000000 --- a/deno.jsonc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "tasks": { - "check-all": "cargo hack check --each-feature", - "build": "cargo build", - // to debug a single test use - // RUST_BACKTRACE=full DEBUG=* cargo test --package loro-internal --lib --features test_utils --features wasm -- fuzz::recursive::failed_tests::unknown --exact --nocapture &> debug.log - "test": "cargo nextest run --features=test_utils && cargo test --doc", - "test-all": "deno task test & deno task quick-fuzz & deno task test-wasm", - "test-wasm": "cd crates/loro-wasm && deno task dev && cd ../../loro-js && pnpm i && pnpm run test", - "release-wasm": "cd crates/loro-wasm && deno task release && cd ../../loro-js && pnpm i && pnpm build && pnpm run test", - "check": "cargo clippy --all-features", - "quick-fuzz": "cd crates/loro-internal && deno task quick-fuzz", - "fix": "cargo clippy --fix --features=test_utils", - "vet": "cargo vet" - } -} diff --git a/package.json b/package.json index 4701493d..a54a554b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,16 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "check-all": "cargo hack check --each-feature", + "build": "cargo build", + "test": "cargo nextest run --features=test_utils && cargo test --doc", + "test-all": "deno task test & deno task quick-fuzz & deno task test-wasm", + "test-wasm": "cd crates/loro-wasm && deno task dev && cd ../../loro-js && pnpm i && pnpm run test", + "release-wasm": "cd crates/loro-wasm && deno task release && cd ../../loro-js && pnpm i && pnpm build && pnpm run test", + "check": "cargo clippy --all-features", + "quick-fuzz": "cd crates/loro-internal && deno task quick-fuzz", + "fix": "cargo clippy --fix --features=test_utils", + "vet": "cargo vet" }, "keywords": [], "author": "",