@tbd54566975/dwn-sdk-js

v0.2.18-unstable-2024-03-06-02-15-fa409f9
A reference implementation of https://identity.foundation/decentralized-web-node/spec/

lint

eslint . --ext .ts --max-warnings 0

build

npm run clean && npm run compile-validators && npm run build:esm && npm run build:cjs && npm run bundle

clean

rimraf dist && rimraf generated/*

madge

madge --circular ./src/index.ts

bundle

node ./build/create-browser-bundle.cjs

lint:fix

eslint . --ext .ts --fix

build:cjs

npm run build:esm && node build/create-cjs-bundle.cjs && echo '{"type": "commonjs"}' > ./dist/cjs/package.json

build:esm

tsc

test:node

npm run compile-validators && tsc && c8 mocha "dist/esm/tests/**/*.spec.js"

test:browser

npm run compile-validators && cross-env karma start karma.conf.cjs

license-check

license-report --only=prod > license-report.json && node ./build/license-check.cjs

publish:unstable

./build/publish-unstable.sh

compile-validators

node ./build/compile-validators.js

test:browser-debug

npm run compile-validators && cross-env karma start karma.conf.debug.cjs
npm i @tbd54566975/[email protected]

Metadata

Downloads