Skip to content

Commit 70cb4aa

Browse files
authored
IBLPLATFRM-302: Convert repo to pnpm (#81)
* chore: convert repo to pnpm * chore: swap instanbul with nyc * chore: install pnpm in workflow * chore: fix audit-ci dlx exact version * chore: remove dep audit-ci * chore: audit fix * chore: fix node type error
1 parent 56f8c49 commit 70cb4aa

File tree

7 files changed

+4319
-5183
lines changed

7 files changed

+4319
-5183
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
23+
- uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
2426
- name: Use Node.js ${{ matrix.node-version }}
2527
uses: actions/setup-node@v4
2628
with:
2729
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
30+
cache: 'pnpm'
2931

3032
- name: NPM Audit
31-
run: npx audit-ci
33+
run: pnpm dlx audit-ci@^7.1.0
3234

3335
- name: Install Node Modules
34-
run: npm ci
36+
run: pnpm i --frozen-lockfile
3537

3638
- name: Run Tests
37-
run: npm run test
39+
run: pnpm run test
3840

3941
- name: Run Lint Checks
40-
run: npm run lint
42+
run: pnpm run lint

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
coverage
33
dist
44
.idea/
5+
.nyc_output

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ This project lets you write executable contracts in JavaScript. It uses [request
2121
Install the `consumer-contracts` tool globally:
2222

2323
```
24-
npm install --global consumer-contracts
24+
pnpm install --global consumer-contracts
2525
```
2626

2727
Install the `consumer-contracts` module locally (this gives you access to the contract definition interface in your contract files):
2828

2929
```
30-
npm install --save-dev consumer-contracts
30+
pnpm install --save-dev consumer-contracts
3131
```
3232

3333
Create a `contracts` directory at the root of your project:

0 commit comments

Comments
 (0)