Skip to content

Commit

Permalink
Split SIWE into packages (spruceid#58)
Browse files Browse the repository at this point in the history
* breakinto packages

* changed dependencies

* renamed imports

* added lerna for monorepo management

* removed duplicate stuff

* make ethers a peer dependency

* build fixes

* removed redundant ts config

* publish testing

* revert version for auto version update

* fix registry

* downgraded node version for greater package compatibility

* test fix

* lerna changes

* v1.1.3

* set default registry for publishing

* mono repo notes

* added package metadata

* more metadata

* update dependency
  • Loading branch information
skgbafa authored Mar 25, 2022
1 parent da5bd2c commit 94a2147
Show file tree
Hide file tree
Showing 22 changed files with 7,169 additions and 6,405 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
docs
docs
.npmrc
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.10.0
14.19.0
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ Specification can be found [here](https://eips.ethereum.org/EIPS/eip-4361).

Our TypeScript library for Sign-In with Ethereum has not yet undergone a formal security
audit. We welcome continued feedback on the usability, architecture, and security
of this implementation.
of this implementation.

## Mono Repo Install and Build
Run `npm install` to install dependencies, then `npm bootstrap` to link the dependencies
in their respective packages. Afteward run `npm run build` to build the library.
Development can occur on the `package/*` level with tests being run on each package itself.

13 changes: 13 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": [
"packages/siwe",
"packages/siwe-parser"
],
"npmClient": "npm",
"command": {
"publish": {
"registry": "https://npm.pkg.github.com"
}
},
"version": "1.1.3"
}
25 changes: 0 additions & 25 deletions lib/parsers.test.ts

This file was deleted.

Loading

0 comments on commit 94a2147

Please sign in to comment.