refactor: switch to npm (#343)

* allow tests to be run manually
This commit is contained in:
ledhed2222
2021-09-02 11:54:05 -04:00
parent 79a2c8f8f3
commit 569c75103c
7 changed files with 10382 additions and 3007 deletions

View File

@@ -8,6 +8,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
@@ -24,8 +25,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run test
- run: yarn run lint
- run: yarn run compile
- run: yarn run coverage
- run: npm install
- run: npm test
- run: npm run lint
- run: npm run compile
- run: npm run coverage

View File

@@ -1,7 +1,7 @@
# .gitignore
# Ignore package locks other than Yarn.
package-lock.json
# Ignore package locks other than npm
yarn.lock
npm-shrinkwrap.json
# Ignore vim swap files.

View File

@@ -5,7 +5,7 @@ node_js:
- 13
- 14
script:
- yarn compile
- yarn lint
- yarn test
- yarn coverage
- npm run compile
- npm run lint
- npm test
- npm run coverage

10366
packages/ripple-keypairs/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@
"compile": "tsc",
"test": "tsc && nyc mocha",
"lint": "eslint . --ext .ts --fix",
"prepublish": "yarn lint && yarn test",
"prepublish": "npm run lint && npm test",
"coverage": "nyc --reporter=lcov mocha && codecov"
},
"files": [
@@ -49,6 +49,7 @@
},
"license": "ISC",
"engines": {
"node": ">= 10"
"node": ">= 10",
"npm": ">=7.0.0"
}
}

View File

@@ -64,9 +64,7 @@ const secp256k1 = {
}
const ed25519 = {
deriveKeypair(
entropy: Uint8Array,
): {
deriveKeypair(entropy: Uint8Array): {
privateKey: string
publicKey: string
} {

File diff suppressed because it is too large Load Diff