Skip to content

Commit

Permalink
build: move makefile scripts to package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Nov 15, 2022
1 parent 41a6c99 commit 9bad14e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
testEnvironment: 'node',
// Ignore the auto generated code for code coverage
roots: ['<rootDir>'],
coveragePathIgnorePatterns: ['/interfaces/'],
coveragePathIgnorePatterns: ['src/gen/'],
modulePaths: [compilerOptions.baseUrl],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths,/*, { prefix: '<rootDir>/' } */),
};
10 changes: 0 additions & 10 deletions makefile

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@nitric/sdk",
"description": "Nitric NodeJS client sdk",
"nitric": "v0.20.0-rc.2",
"author": "Nitric <https://github.com/nitrictech>",
"repository": "https://github.com/nitrictech/node-sdk",
"main": "lib/index.js",
Expand All @@ -19,7 +20,8 @@
"license:header:add": "license-check-and-add add -f ./licenseconfig.json",
"license:header:check": "license-check-and-add check -f ./licenseconfig.json",
"license:check": "licensee --production",
"gen:proto": "mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./contracts ./contracts/**/*.proto ./contracts/proto/**/*/*.proto"
"download:contracts": "curl -L https://github.com/nitrictech/nitric/releases/download/${npm_package_nitric}/contracts.tgz -o contracts.tgz && tar xvzf contracts.tgz && rm contracts.tgz",
"gen:proto": "yarn run download:contracts && mkdir -p ./src/gen && grpc_tools_node_protoc --ts_out=service=grpc-node,mode=grpc-js:./src/gen --js_out=import_style=commonjs,binary:./src/gen --grpc_out=grpc_js:./src/gen -I ./contracts ./contracts/**/*.proto ./contracts/proto/**/*/*.proto"
},
"contributors": [
"Jye Cusch <jye.cusch@nitric.io>",
Expand Down

0 comments on commit 9bad14e

Please sign in to comment.