Add README and metadata to npm packages (#4406)

* Explicitly add readme to packages

* npm packages repository metadata

As specified in https://docs.npmjs.com/files/package.json#repository

CHANGELOG_BEGIN
CHANGELOG_END

* Bazel format

Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
This commit is contained in:
Andreas Herrmann 2020-02-05 17:01:36 +01:00 committed by GitHub
parent ef285456c9
commit 18db76bb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,7 @@ eslint_test(
pkg_npm(
name = "npm_package",
srcs = [
":README.md",
":package.json",
":tsconfig.json",
],

View File

@ -5,6 +5,11 @@
"description": "Client side API implementation for a DAML based ledger. This library implements the JSON based API for a DAML ledger documented in https://docs.daml.com/json-api/index.html.",
"keywords": ["daml", "API", "client"],
"homepage": "https://daml.com",
"repository": {
"type" : "git",
"url" : "https://github.com/digital-asset/daml.git",
"directory": "language-support/ts/daml-ledger"
},
"main": "index.js",
"types": "index.d.ts",
"license": "Apache-2.0",

View File

@ -43,6 +43,7 @@ eslint_test(
pkg_npm(
name = "npm_package",
srcs = [
":README.md",
":package.json",
":tsconfig.json",
],

View File

@ -4,6 +4,11 @@
"version": "0.0.0-SDKVERSION",
"description": "React framework to interact with a DAML ledger",
"homepage": "https://daml.com",
"repository": {
"type" : "git",
"url" : "https://github.com/digital-asset/daml.git",
"directory": "language-support/ts/daml-react"
},
"keywords": [
"daml",
"react",

View File

@ -43,6 +43,7 @@ eslint_test(
pkg_npm(
name = "npm_package",
srcs = [
":README.md",
":package.json",
":tsconfig.json",
],

View File

@ -5,6 +5,11 @@
"description": "Primitive types of the DAML language and their serialization.",
"keywords": ["daml", "API", "types", "serialization"],
"homepage": "https://daml.com",
"repository": {
"type" : "git",
"url" : "https://github.com/digital-asset/daml.git",
"directory": "language-support/ts/daml-types"
},
"main": "index.js",
"types": "index.d.ts",
"license": "Apache-2.0",