Skip to content

Commit e0e22c1

Browse files
committed
fix: package.json file path error #4
Fixed by removing the current directory dot `.` - which is kind of redundant while using `__dirname` as well.
1 parent 6386f84 commit e0e22c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Configuration {
183183
* @returns {object} An object containing the extension id, name, and display name.
184184
*/
185185
public getExtensionNames(): {id: string; name: string; displayName: string} {
186-
const packageJSON = JSON.parse(fs.readFileSync(__dirname + "./../../package.json").toString());
186+
const packageJSON = JSON.parse(fs.readFileSync(__dirname + "/../../package.json").toString());
187187

188188
const displayName: string = packageJSON.displayName;
189189
const fullname: string = packageJSON.name;

0 commit comments

Comments
 (0)