[Fix] Version Bump, Checks, tests CQ
Some checks failed
CI / checks (push) Failing after 2m54s

This commit is contained in:
Alex Emmet 2026-08-13 21:18:55 +02:00
commit e939714557
34 changed files with 5752 additions and 628 deletions

View file

@ -1,6 +1,6 @@
{
"name": "mtp",
"version": "0.2.0",
"version": "0.3.0",
"description": "MTP TypeScript SDK",
"type": "module",
"packageManager": "pnpm@11.8.0",
@ -32,12 +32,16 @@
"Cargo.lock",
"dist/",
"README.md",
"codec/Cargo.lock",
"codec/Cargo.toml",
"codec/src/",
"common/Cargo.lock",
"common/Cargo.toml",
"common/src/",
"crypto/Cargo.lock",
"crypto/Cargo.toml",
"crypto/src/",
"type-map/Cargo.lock",
"type-map/Cargo.toml",
"type-map/build.rs",
"type-map/reserved.json",
@ -50,15 +54,19 @@
],
"scripts": {
"example": "pnpm install && pnpm run build:all && nix develop .#autoStart",
"build": "MTP_TYPE_MAPS=$PWD/example-type-maps.yaml RUSTFLAGS='--cfg web_sys_unstable_apis' wasm-pack build wasm --target web --out-dir pkg --release && tsc",
"clean": "rm -rf dist wasm/pkg mtp-*.tgz",
"build:wasm": "MTP_TYPE_MAPS=$PWD/example-type-maps.yaml wasm-pack build wasm --target web --out-dir pkg --release && rm -f wasm/pkg/.gitignore",
"build:ts": "rm -rf dist && tsc",
"build": "pnpm run build:wasm && pnpm run build:ts",
"pack": "pnpm run clean && pnpm run build && pnpm pack",
"build:all": "nix run .#build-all",
"dup": "jscpd --pattern '**/*.{rs,ts}' --ignore 'target/**' --ignore 'wasm/pkg/**' --ignore '.git/**' --min-lines 8 --min-tokens 80 --threshold 4 --reporters console --noTips .",
"test:e2e": "tsc && node test/e2ee.mjs",
"test:secrets": "tsc && node --test --test-isolation=none test/encrypted-secret.mjs",
"test:types": "tsc -p tsconfig.type-tests.json --noEmit",
"test:vite": "tsc && node test/vite-type-map.mjs",
"test": "pnpm run test:e2e && pnpm run test:secrets && pnpm run test:types && pnpm run test:vite",
"check:boundary": "node scripts/check-mtp-boundary.mjs"
"test:boundary": "node --test test/package-boundary.mjs",
"test": "pnpm run test:e2e && pnpm run test:secrets && pnpm run test:types && pnpm run test:vite && pnpm run test:boundary"
},
"devDependencies": {
"@types/node": "^26.0.1",