Skip to content

Commit

Permalink
chore: change packages to aws-kms-packages (#433)
Browse files Browse the repository at this point in the history
* chore: change packages to aws-kms-packages

* chore: update cache key

* chore: use yarn workspaces

* chore: cleanup nodejs.yaml

* chore: add tmate

* chore: build aws-kms-signer

* Revert "chore: add tmate"

This reverts commit a594d8c.
  • Loading branch information
odanado authored Feb 26, 2022
1 parent 8462fbd commit f686cfd
Show file tree
Hide file tree
Showing 45 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ $ npm install aws-kms-provider

## Another packages

| | |
| ------------------------------------------------------- | --------------------------------------------- |
| [aws-kms-signer](packages/aws-kms-signer) | Signer using AWS KMS without web3.js provider |
| [aws-kms-ethers-signer](packages/aws-kms-ethers-signer) | Signer for ethers.js |
| | |
| --------------------------------------------------------------- | --------------------------------------------- |
| [aws-kms-signer](aws-kms-packages/aws-kms-signer) | Signer using AWS KMS without web3.js provider |
| [aws-kms-ethers-signer](aws-kms-packages/aws-kms-ethers-signer) | Signer for ethers.js |

## Examples

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/send-eth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Web3 from "web3";

import { KmsProvider } from "../packages/aws-kms-provider";
import { KmsProvider } from "../aws-kms-packages/aws-kms-provider";

const region = "us-east-1";
const keyId = "e9005048-475f-4767-9f2d-0d1fb0c89caf";
Expand Down
2 changes: 1 addition & 1 deletion examples/sign.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Web3 from "web3";

import { KmsProvider } from "../packages/aws-kms-provider";
import { KmsProvider } from "../aws-kms-packages/aws-kms-provider";

const region = "us-east-1";
const keyId = "e9005048-475f-4767-9f2d-0d1fb0c89caf";
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "root",
"version": "0.3.4",
"private": true,
"workspaces": [
"packages/*"
"packages/*",
"aws-kms-packages/*"
],
"repository": {
"type": "git",
"url": "https://github.com/odanado/aws-kms-provider"
},
"license": "MIT",
"scripts": {
"build": "yarn workspace aws-kms-signer build; yarn workspace aws-kms-provider build",
"build": "yarn workspace aws-kms-signer build; yarn workspaces run build",
"test": "run-p test:*",
"test:jest": "jest --coverage packages/aws-kms-signer packages/aws-kms-provider packages/aws-kms-ethers-signer",
"test:jest": "jest --coverage aws-kms-packages",
"test:vitest": "vitest run --coverage",
"test:lint": "eslint --ext .js,.ts --ignore-path .gitignore --max-warnings 0 .",
"test:format": "prettier --ignore-path .gitignore . --check",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/ethers-send-eth.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as ethers from "ethers";

import { KmsEthersSigner } from "../../packages/aws-kms-ethers-signer/src";
import { KmsEthersSigner } from "../../aws-kms-packages/aws-kms-ethers-signer/src";
import { getConfig } from "../config";

const { region, keyId, rpcUrl, privateKey } = getConfig();
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/web3-send-eth.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Web3 from "web3";

import { KmsProvider } from "../../packages/aws-kms-provider/src";
import { KmsProvider } from "../../aws-kms-packages/aws-kms-provider/src";
import { getConfig } from "../config";

const { region, keyId, rpcUrl, privateKey } = getConfig();
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/web3-sign.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Web3 from "web3";

import { KmsProvider } from "../../packages/aws-kms-provider/src";
import { KmsProvider } from "../../aws-kms-packages/aws-kms-provider/src";
import { getConfig } from "../config";

const { region, keyId, rpcUrl } = getConfig();
Expand Down
4 changes: 1 addition & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export default defineConfig({
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp}/**",
"packages/aws-kms-signer/**",
"packages/aws-kms-provider/**",
"packages/aws-kms-ethers-signer/**",
"aws-kms-packages/**",
"test/e2e/**",
],
},
Expand Down

0 comments on commit f686cfd

Please sign in to comment.