diff --git a/sdk/servicebus/service-bus/src/util/constants.ts b/sdk/servicebus/service-bus/src/util/constants.ts index 44c6ecf7768e..603b161d2547 100644 --- a/sdk/servicebus/service-bus/src/util/constants.ts +++ b/sdk/servicebus/service-bus/src/util/constants.ts @@ -1,9 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +import { name, version } from "../../package.json"; + export const packageJsonInfo = { - name: "@azure/service-bus", - version: "1.0.0-preview.1" + name: name, + version: version }; export const messageDispositionTimeout = 20000; diff --git a/sdk/servicebus/service-bus/tsconfig.json b/sdk/servicebus/service-bus/tsconfig.json index cbbd6089e776..8f80f25e4663 100644 --- a/sdk/servicebus/service-bus/tsconfig.json +++ b/sdk/servicebus/service-bus/tsconfig.json @@ -30,7 +30,8 @@ /* Other options */ "newLine": "LF" /* Use the specified end of line sequence to be used when emitting files: "crlf" (windows) or "lf" (unix).”*/, - "allowJs": false /* Don't allow JavaScript files to be compiled.*/ + "allowJs": false /* Don't allow JavaScript files to be compiled.*/, + "resolveJsonModule": true }, "compileOnSave": true, "exclude": ["node_modules", "typings/**", "./samples/**/*.ts"],