Skip to content

Commit ef7827b

Browse files
committed
address some PR review comments
Signed-off-by: karthik2804 <[email protected]>
1 parent ece6740 commit ef7827b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/build-tools/src/wasiDepsParser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function absolutizeWitPath(
6868
}
6969
}
7070

71-
// Recursively retrieves dependencies that contain a 'knitwit' config section
71+
// Recursively retrieves dependencies that contain a "witDependencies field in
72+
// config section of the package.json
7273
export function getPackagesWithWasiDeps(
7374
dir: string,
7475
visited: Set<string> = new Set(),

packages/build-tools/test/wasiDepsTest.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ import {
88
import { expect } from 'chai';
99
import sinon from 'sinon';
1010

11-
import { fileURLToPath } from 'url';
12-
import path from 'path';
13-
14-
const __filename = fileURLToPath(import.meta.url);
15-
const __dirname = path.dirname(__filename);
16-
1711
describe('readPackageJson', () => {
1812
let existsSyncStub, readFileSyncStub;
1913
beforeEach(() => {

0 commit comments

Comments
 (0)