Skip to content

Commit

Permalink
2.1.1 (#204)
Browse files Browse the repository at this point in the history
By importing package.json to grab the version, Typescript changes the emitted folder structure so this change also fixes those issues
  • Loading branch information
southpolesteve authored Dec 5, 2018
1 parent cd749ee commit 4956e1a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"database",
"cloud"
],
"version": "2.1.0",
"version": "2.1.1",
"author": "Microsoft Corporation",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"main": "./lib/src/index.js",
"types": "./lib/src/index.d.ts",
"engine": {
"node": ">=6.0.0"
},
Expand All @@ -31,7 +31,7 @@
"webpack-prod": "webpack -p",
"build": "npm run clean && npm run check-format && npm run lint && npm run compile && npm run docs && npm run webpack",
"build-prod": "npm run clean && npm run check-format && npm run lint && npm run compile-prod && npm run docs && npm run webpack-prod",
"test": "mocha -r ./src/test/common/setup.ts ./lib/test/ --recursive --timeout 100000 -i -g .*ignore.js",
"test": "mocha -r ./src/test/common/setup.ts ./lib/src/test/ --recursive --timeout 100000 -i -g .*ignore.js",
"test-ts": "mocha -r ts-node/register -r ./src/test/common/setup.ts ./src/test/**/*.spec.ts --recursive --timeout 100000 -i -g .*ignore.js",
"test-browser": "karma start ./karma.config.js --single-run",
"ci": "npm run build && npm run test && node ts-test.js"
Expand Down
4 changes: 3 additions & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { version } from "../../package.json";

export const Constants = {
MediaTypes: {
Any: "*/*",
Expand Down Expand Up @@ -176,7 +178,7 @@ export const Constants = {
CurrentVersion: "2018-06-18",

SDKName: "azure-cosmos-js",
SDKVersion: "2.0.5",
SDKVersion: version,

DefaultPrecisions: {
DefaultNumberHashPrecision: 3,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"removeComments": false,
"target": "es6",
"sourceMap": true,
"newLine": "LF"
"newLine": "LF",
"resolveJsonModule": true
},
"include": ["./src/**/*", "./test/**/*.spec.ts", "./samples/MultiRegionWrite/**.ts"],
"exclude": ["node_modules", "samples"]
Expand Down
3 changes: 3 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"member-ordering": false, // TODO: might want to look at this eventually...
"no-floating-promises": true,
"import-blacklist": [true, "assert", "util"]
},
"linterOptions": {
"exclude": ["*.json"]
}
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var path = require("path");
var webpack = require("webpack");

module.exports = (env, argv) => ({
entry: "./lib/index.js",
entry: "./lib/src/index.js",
node: {
buffer: true,
net: "mock",
Expand Down

0 comments on commit 4956e1a

Please sign in to comment.