# 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.
_1use JsValue::from_serde_2use 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"
}