migrate from yarn to npm (#148)

* migrate from yarn to npm

* fix unrelated prettier error
This commit is contained in:
ledhed2222
2021-10-13 16:11:55 -04:00
parent ba7594c51f
commit 869e6e2553
6 changed files with 14331 additions and 4634 deletions

View File

@@ -5,9 +5,9 @@ name: Node.js CI
on: on:
push: push:
branches: [ master ] branches: [master]
pull_request: pull_request:
branches: [ master ] workflow_dispatch:
jobs: jobs:
build_with_nvm: build_with_nvm:
@@ -23,10 +23,10 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: "${{ steps.nvm.outputs.NVMRC }}" node-version: "${{ steps.nvm.outputs.NVMRC }}"
- run: yarn install - run: npm install
- run: yarn run test - run: npm test
- run: yarn run lint - run: npm run lint
- run: yarn run compile - run: npm run compile
build: build:
@@ -42,7 +42,7 @@ jobs:
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: yarn install - run: npm install
- run: yarn run test - run: npm test
- run: yarn run lint - run: npm run lint
- run: yarn run compile - run: npm run compile

View File

@@ -98,10 +98,10 @@ Encode the transaction object for multi-signing.
Run unit tests with: Run unit tests with:
yarn test npm test
Use `--coverage` to generate and display code coverage information: Use `--coverage` to generate and display code coverage information:
yarn test --coverage npm test --coverage
This tells jest to output code coverage info in the `./coverage` directory, in addition to showing it on the command line. This tells jest to output code coverage info in the `./coverage` directory, in addition to showing it on the command line.

File diff suppressed because it is too large Load Diff

View File

@@ -55,6 +55,6 @@
}, },
"engines": { "engines": {
"node": ">=10.22.0", "node": ">=10.22.0",
"yarn": "^1.22.4" "npm": ">=7.0.0"
} }
} }

View File

@@ -11,7 +11,8 @@ let json = {
Account: "rUnFEsHjxqTswbivzL2DNHBb34rhAgZZZK", Account: "rUnFEsHjxqTswbivzL2DNHBb34rhAgZZZK",
PreviousTxnLgrSeq: 8, PreviousTxnLgrSeq: 8,
LedgerEntryType: "AccountRoot", LedgerEntryType: "AccountRoot",
PreviousTxnID: "0735A0B32B2A3F4C938B76D6933003E29447DB8C7CE382BBE089402FF12A03E5".toLowerCase(), PreviousTxnID:
"0735A0B32B2A3F4C938B76D6933003E29447DB8C7CE382BBE089402FF12A03E5".toLowerCase(),
Flags: 0, Flags: 0,
Sequence: 1, Sequence: 1,
Balance: "10000000000", Balance: "10000000000",

File diff suppressed because it is too large Load Diff