Skip to content

Commit c8ba967

Browse files
committed
Remove jsonc dependency
This dependency was only used to parse package.json and this can be just as easily parsed by regular JSON object. jsonc can also parse JSON with comments, but there are no comments in package.json.
1 parent f5d2f0e commit c8ba967

3 files changed

Lines changed: 1 addition & 16 deletions

File tree

extensions/ql-vscode/gulpfile.ts/deploy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as fs from 'fs-extra';
2-
import * as jsonc from 'jsonc-parser';
32
import * as path from 'path';
43

54
export interface DeployedPackage {
@@ -28,7 +27,7 @@ async function copyPackage(sourcePath: string, destPath: string): Promise<void>
2827

2928
export async function deployPackage(packageJsonPath: string): Promise<DeployedPackage> {
3029
try {
31-
const packageJson: any = jsonc.parse(await fs.readFile(packageJsonPath, 'utf8'));
30+
const packageJson: any = JSON.parse(await fs.readFile(packageJsonPath, 'utf8'));
3231

3332
// Default to development build; use flag --release to indicate release build.
3433
const isDevBuild = !process.argv.includes('--release');

extensions/ql-vscode/package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,6 @@
11931193
"gulp-sourcemaps": "^3.0.0",
11941194
"gulp-typescript": "^5.0.1",
11951195
"husky": "~4.2.5",
1196-
"jsonc-parser": "^2.3.0",
11971196
"lint-staged": "~10.2.2",
11981197
"mocha": "^9.1.3",
11991198
"mocha-sinon": "~2.1.2",

0 commit comments

Comments
 (0)