Skip to content

Commit 9e6c125

Browse files
committed
Polish npm package
1 parent b00070e commit 9e6c125

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
Scramjet Framework TypeScript (`pre-v5`)
1+
Scramjet Framework TypeScript
22
==================
33
<p align="center">
4+
<a href="https://badge.fury.io/js/@scramjet%2Fframework">
5+
<img src="https://badge.fury.io/js/@scramjet%2Fframework.svg" alt="npm version" height="18">
6+
</a>
47
<a><img src="https://github.com/scramjetorg/framework-js/actions/workflows/test.yml/badge.svg?branch=main" alt="Tests" /></a>
58
<a href="https://snyk.io/test/github/scramjetorg/framework-js">
69
<img src="https://snyk.io/test/github/scramjetorg/framework-js/badge.svg" alt="Known Vulnerabilities" />

package.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,19 @@
6767
"include": "build/src/",
6868
"exclude": "build/test/**/*.js"
6969
},
70-
"private": true
70+
"private": true,
71+
"keywords": [
72+
"react",
73+
"javascript",
74+
"typescript",
75+
"event-stream",
76+
"stream",
77+
"es6",
78+
"promise",
79+
"data-stream",
80+
"reactive-programming",
81+
"spark-streaming",
82+
"stream2",
83+
"transformations"
84+
]
7185
}

scripts/prepare-package.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ const { readFileSync, writeFileSync } = require("fs");
77
const packagePath = join(__dirname, "..", "package.json");
88
const packageContents = readFileSync(packagePath, "utf8");
99

10-
const { name, version, description, author, license } = JSON.parse(packageContents);
10+
const { name, version, description, author, license, keywords } = JSON.parse(packageContents);
1111
const newPackage = {
1212
name,
1313
version,
1414
description,
1515
main: "index.js",
1616
author,
17-
license
17+
license,
18+
keywords
1819
};
1920

2021
writeFileSync(join(__dirname, "../dist/", "package.json"), JSON.stringify(newPackage, null, " "));

0 commit comments

Comments
 (0)