Skip to content

Commit

Permalink
Add NPM package metadata (microsoft#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir Morozov <[email protected]>
  • Loading branch information
vmoroz and vmoroz authored Apr 2, 2023
1 parent 3d38bb7 commit 7144921
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
14 changes: 13 additions & 1 deletion src/node-api-dotnet/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@
"description": "Node-API for .Net code generator",
"main": "index.js",
"bin": "index.js",
"author": "Microsoft",
"license": "MIT",
"author": "Microsoft",
"dependencies": {
"node-api-dotnet": "0.1.0"
},
"keywords": [
"Node-API",
"NAPI",
"generator",
".Net",
"dotnet"
],
"repository": "github:microsoft/node-api-dotnet",
"homepage": "https://github.com/microsoft/node-api-dotnet#readme",
"bugs": {
"url": "https://github.com/microsoft/node-api-dotnet/issues"
}
}
2 changes: 2 additions & 0 deletions src/node-api-dotnet/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function packMainPackage() {

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

generateTargetFrameworkScriptFiles(packageStageDir);

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

copyScriptFiles(packageStageDir, 'generator', 'index.js');
copyScriptFiles(packageStageDir, '../..', 'README.md');

copyFrameworkSpecificBinaries(
[ 'net6.0' ],
Expand Down
17 changes: 14 additions & 3 deletions src/node-api-dotnet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@
"version": "0.1.0",
"description": "Node-API bindings for .Net",
"main": "index.js",
"license": "MIT",
"author": "Microsoft",
"scripts": {
},
"author": "Microsoft",
"license": "MIT",
"types": "./index.d.ts"
"types": "./index.d.ts",
"keywords": [
"Node-API",
"NAPI",
".Net",
"dotnet"
],
"repository": "github:microsoft/node-api-dotnet",
"homepage": "https://github.com/microsoft/node-api-dotnet#readme",
"bugs": {
"url": "https://github.com/microsoft/node-api-dotnet/issues"
}
}

0 comments on commit 7144921

Please sign in to comment.