Skip to content

Commit

Permalink
Rearranged package.json to have it more readable (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai authored Jun 27, 2023
1 parent bb57d77 commit c140525
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Decentralized Web Node (DWN) SDK

Code Coverage
![Statements](https://img.shields.io/badge/statements-97.35%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-94.25%25-brightgreen.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-93.97%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-97.35%25-brightgreen.svg?style=flat)
![Statements](https://img.shields.io/badge/statements-97.31%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-94.17%25-brightgreen.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-93.68%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-97.31%25-brightgreen.svg?style=flat)

## Introduction

Expand Down
92 changes: 51 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
"name": "@tbd54566975/dwn-sdk-js",
"version": "0.0.35",
"description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/",
"repository": {
"type": "git",
"url": "git+https://github.com/TBD54566975/dwn-sdk-js.git"
},
"license": "Apache-2.0",
"homepage": "https://github.com/TBD54566975/dwn-sdk-js#readme",
"bugs": {
"url": "https://github.com/TBD54566975/dwn-sdk-js/issues"
},
"contributors": [
{
"name": "Daniel Buchner",
"url": "https://github.com/csuwildcat"
},
{
"name": "Diane Huxley",
"url": "https://github.com/diehuxx"
},
{
"name": "Henry Tsai",
"url": "https://github.com/thehenrytsai"
},
{
"name": "Moe Jangda",
"url": "https://github.com/mistermoe"
}
],
"type": "module",
"types": "./dist/types/src/index.d.ts",
"engines": {
Expand Down Expand Up @@ -33,24 +60,6 @@
"./dist/esm/src/index.js": "./dist/esm/src/index.js",
"./dist/cjs/src/index.js": "./dist/esm/src/index.js"
},
"scripts": {
"build:esm": "tsc",
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build": "npm run clean && npm run compile-validators && npm run build:esm && npm run build:cjs && npm run bundle",
"bundle": "node ./build/create-browser-bundle.cjs",
"clean": "rimraf dist && rimraf generated/*",
"compile-validators": "node ./build/compile-validators.js",
"lint": "eslint . --ext .ts --max-warnings 0",
"lint:fix": "eslint . --ext .ts --fix",
"make-coverage-badges": "istanbul-badges-readme",
"make-coverage-badges:ci": "npm run make-coverage-badges -- --ci",
"test:node": "npm run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\" && npm run make-coverage-badges",
"test:node:ci": "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",
"test:browser-debug": "npm run compile-validators && cross-env karma start karma.conf.debug.cjs",
"license-check": "license-report --only=prod > license-report.json && node ./build/license-check.cjs",
"publish:unstable": "./build/publish-unstable.sh"
},
"dependencies": {
"@ipld/dag-cbor": "9.0.1",
"@js-temporal/polyfill": "0.4.4",
Expand Down Expand Up @@ -79,13 +88,6 @@
"uuid": "8.3.2",
"varint": "6.0.0"
},
"overrides": {
"c8": {
"istanbul-lib-report": {
"make-dir": "^4.0.0"
}
}
},
"devDependencies": {
"@types/chai": "4.3.0",
"@types/chai-as-promised": "7.1.5",
Expand Down Expand Up @@ -134,21 +136,29 @@
"typescript": "4.8.2",
"util": "0.12.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TBD54566975/dwn-sdk-js.git"
},
"author": "Moe Jangda <[email protected]> (https://twitter.com/moe_jangda)",
"contributors": [
{
"name": "Daniel Buchner",
"email": "[email protected]",
"url": "https://twitter.com/csuwildcat"
"overrides": {
"c8": {
"istanbul-lib-report": {
"make-dir": "^4.0.0"
}
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/TBD54566975/dwn-sdk-js/issues"
},
"homepage": "https://github.com/TBD54566975/dwn-sdk-js#readme"
}
"scripts": {
"build:esm": "tsc",
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build": "npm run clean && npm run compile-validators && npm run build:esm && npm run build:cjs && npm run bundle",
"bundle": "node ./build/create-browser-bundle.cjs",
"clean": "rimraf dist && rimraf generated/*",
"compile-validators": "node ./build/compile-validators.js",
"lint": "eslint . --ext .ts --max-warnings 0",
"lint:fix": "eslint . --ext .ts --fix",
"make-coverage-badges": "istanbul-badges-readme",
"make-coverage-badges:ci": "npm run make-coverage-badges -- --ci",
"test:node": "npm run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\" && npm run make-coverage-badges",
"test:node:ci": "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",
"test:browser-debug": "npm run compile-validators && cross-env karma start karma.conf.debug.cjs",
"license-check": "license-report --only=prod > license-report.json && node ./build/license-check.cjs",
"publish:unstable": "./build/publish-unstable.sh"
}
}

0 comments on commit c140525

Please sign in to comment.