From bdd24081ab9cedac2c8ae5eb3f4117bc5e785ec2 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 20 Feb 2019 12:54:26 -0600 Subject: [PATCH] Get version from vscode's package.json --- packages/vscode/src/fill/package.ts | 4 ++-- tsconfig.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vscode/src/fill/package.ts b/packages/vscode/src/fill/package.ts index 80707eb1..8d6ff3f8 100644 --- a/packages/vscode/src/fill/package.ts +++ b/packages/vscode/src/fill/package.ts @@ -1,2 +1,2 @@ -// TODO: obtain this in a reasonable way. -export default { name: "vscode", version: "1.31.1" }; +import * as packageJson from "../../../../lib/vscode/package.json"; +export default { name: "vscode", version: packageJson.version }; diff --git a/tsconfig.json b/tsconfig.json index 21aab767..df8a3b2e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "declaration": true, "sourceMap": true, "strict": true, + "resolveJsonModule": true, "experimentalDecorators": true, "plugins": [ {