# set registry config
npm config set @tufan-io:registry https://npm.pkg.github.com/tufan-io
# install the package
npm i @tufan-io/wasm-dmmf
We have ${something}_1
and ${something}_2
.
_1
use JsValue::from_serde_2
use serde_wasm_bindgen::to_value.
npm run build
npm run test
Since wasm-dmmf
is intended to used in browser, it is hard to test here.
So npm run test
will build it for node
and test it.
- Cargo.toml
dmmf = { git = "https://github.com/prisma/prisma-engines/", tag = "4.5.0" }
psl = { git = "https://github.com/prisma/prisma-engines/", tag = "4.5.0" }
- Package.json
"version": "4.5.0",
"dependencies": {
"@prisma/generator-helper": "^4.5.0"
}