Skip to content

Commit 2047ff0

Browse files
committed
Improve NPM package to boost NPM search ranking
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 8c42739 commit 2047ff0

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
![JSON Schema](./assets/banner.png)
22

3+
![NPM Version](https://img.shields.io/npm/v/@sourcemeta/jsonschema)
4+
![GitHub branch status](https://img.shields.io/github/checks-status/sourcemeta/jsonschema/main)
5+
![GitHub Release](https://img.shields.io/github/v/release/sourcemeta/jsonschema)
6+
37
The command-line tool for working with [JSON Schema](https://json-schema.org),
48
the world most popular schema language. It is a comprehensive solution for
59
maintaining **repositories of schemas** and ensuring their quality, both during

npm-deploy.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ install -m 0755 "$OUTPUT/npm/artifacts/jsonschema-$VERSION-windows-x86_64/bin/js
4444
"$OUTPUT/npm/staging/jsonschema-windows-x86_64.exe"
4545
install -m 0644 "$(pwd)/README.markdown" "$OUTPUT/npm/staging/README.md"
4646

47+
# To boost NPM ranking
48+
# See https://github.com/npms-io/npms-analyzer/blob/master/lib/analyze/evaluate/quality.js
49+
install -m 0644 "$(pwd)/LICENSE" "$OUTPUT/npm/staging/LICENSE"
50+
install -m 0644 "$(pwd)/.gitignore" "$OUTPUT/npm/staging/.gitignore"
51+
echo "/build" > "$OUTPUT/npm/staging/.npmignore"
52+
4753
cat << EOF > "$OUTPUT/npm/staging/package.json"
4854
{
4955
"name": "@sourcemeta/jsonschema",
@@ -55,12 +61,18 @@ cat << EOF > "$OUTPUT/npm/staging/package.json"
5561
},
5662
"license": "AGPL-3.0",
5763
"homepage": "https://github.com/sourcemeta/jsonschema",
58-
"author": "Juan Cruz Viotti <jviotti@sourcemeta.com>",
64+
"author": {
65+
"email": "hello@sourcemeta.com",
66+
"name": "Sourcemeta",
67+
"url": "https://wwwsourcemeta.com"
68+
},
69+
"funding": "https://github.com/sponsors/sourcemeta",
5970
"keywords": [
6071
"jsonschema", "json", "schema", "json-schema",
6172
"cli", "\$ref", "dereference", "reference", "resolve",
62-
"json-pointer", "validator", "bundle",
63-
"lint", "format"
73+
"json-pointer", "validator", "validation", "bundle",
74+
"json-schema-validator", "json-schema-validation",
75+
"lint", "format", "draft"
6476
],
6577
"bugs": {
6678
"url": "https://github.com/sourcemeta/jsonschema/issues"

0 commit comments

Comments
 (0)