Skip to content

Commit 9ba9814

Browse files
committed
refactor: transition to node-libcurl and pnpm
1 parent 767b92b commit 9ba9814

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
node-version: ${{ matrix.node-version }}
3131

3232
- name: Install dependencies
33-
run: npm ci
33+
run: pnpm i
3434

3535
- name: Run ESLint
36-
run: npm run lint
36+
run: pnpm run lint
3737

3838
- name: Run tests with coverage
39-
run: npm test -- --coverage
39+
run: pnpm test -- --coverage
4040

4141
- name: Upload coverage reports to Codecov
4242
if: github.ref_name == 'main'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"lint": "eslint './**/*.ts'",
1919
"lint:fix": "eslint --fix './**/*.ts'",
2020
"tsc": "tsc --noEmit",
21-
"build": "rm -rf dist && npm run build:esm && npm run build:cjs",
21+
"build": "rm -rf dist && pnpm run build:esm && pnpm run build:cjs",
2222
"build:esm": "tsc",
2323
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
24-
"prepublishOnly": "npm run build"
24+
"prepublishOnly": "pnpm run build"
2525
},
2626
"keywords": [
2727
"sync",

src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Curl, Easy } from 'easy-libcurl';
1+
import { Curl, Easy } from 'node-libcurl';
22
import { HttpVerb, Options, Response, GetBody } from './types';
33
import {
44
checkGetBodyStatus,

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IncomingHttpHeaders } from 'http';
2-
import { CurlOption, Easy } from 'easy-libcurl';
2+
import { CurlOption, Easy } from 'node-libcurl';
33

44
export type HttpVerb =
55
| 'GET'

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IncomingHttpHeaders } from 'http';
2-
import { CurlCode, Easy } from 'easy-libcurl';
2+
import { CurlCode, Easy } from 'node-libcurl';
33
import { HttpVerb, Options } from './types';
44
import { CurlError } from './errors';
55

tests/global/globalSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { startServer } from 'sync-dev-server';
22
import { HOST as host, PORT as port } from '../app/config';
33

44
module.exports = () => {
5-
const command = 'npm run start';
5+
const command = 'pnpm start';
66
globalThis.server = startServer(command, {
77
host,
88
port,

0 commit comments

Comments
 (0)