Skip to content

Commit 7144921

Browse files
authored
Add NPM package metadata (microsoft#78)
Co-authored-by: Vladimir Morozov <vmoroz@users.noreply.github.com>
1 parent 3d38bb7 commit 7144921

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

src/node-api-dotnet/generator/package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@
44
"description": "Node-API for .Net code generator",
55
"main": "index.js",
66
"bin": "index.js",
7-
"author": "Microsoft",
87
"license": "MIT",
8+
"author": "Microsoft",
99
"dependencies": {
1010
"node-api-dotnet": "0.1.0"
11+
},
12+
"keywords": [
13+
"Node-API",
14+
"NAPI",
15+
"generator",
16+
".Net",
17+
"dotnet"
18+
],
19+
"repository": "github:microsoft/node-api-dotnet",
20+
"homepage": "https://github.com/microsoft/node-api-dotnet#readme",
21+
"bugs": {
22+
"url": "https://github.com/microsoft/node-api-dotnet/issues"
1123
}
1224
}

src/node-api-dotnet/pack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function packMainPackage() {
5050

5151
// Copy script files to the staging dir.
5252
copyScriptFiles(packageStageDir, '.', 'init.js', 'index.d.ts');
53+
copyScriptFiles(packageStageDir, '../..', 'README.md');
5354

5455
generateTargetFrameworkScriptFiles(packageStageDir);
5556

@@ -98,6 +99,7 @@ function packGeneratorPackage() {
9899
const buildVersion = writePackageJson(packageStageDir, packageJson);
99100

100101
copyScriptFiles(packageStageDir, 'generator', 'index.js');
102+
copyScriptFiles(packageStageDir, '../..', 'README.md');
101103

102104
copyFrameworkSpecificBinaries(
103105
[ 'net6.0' ],

src/node-api-dotnet/package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,20 @@
33
"version": "0.1.0",
44
"description": "Node-API bindings for .Net",
55
"main": "index.js",
6+
"license": "MIT",
7+
"author": "Microsoft",
68
"scripts": {
79
},
8-
"author": "Microsoft",
9-
"license": "MIT",
10-
"types": "./index.d.ts"
10+
"types": "./index.d.ts",
11+
"keywords": [
12+
"Node-API",
13+
"NAPI",
14+
".Net",
15+
"dotnet"
16+
],
17+
"repository": "github:microsoft/node-api-dotnet",
18+
"homepage": "https://github.com/microsoft/node-api-dotnet#readme",
19+
"bugs": {
20+
"url": "https://github.com/microsoft/node-api-dotnet/issues"
21+
}
1122
}

0 commit comments

Comments
 (0)