Skip to content

Commit 56a2ef2

Browse files
fix: use strict versions for all dependencies
Currently build of the extension fails as the versions of dependencies and devDependencies are not hardcoded and we receive version of `@types/lodash` that is incompatible with the TypeScript we are using. For `@types/lodash` we have the following dist-tags: ``` { latest: '4.14.122', 'ts2.0': '4.14.50', 'ts2.1': '4.14.56', 'ts2.2': '4.14.112', 'ts2.3': '4.14.112', 'ts2.4': '4.14.112', 'ts2.5': '4.14.112', 'ts2.6': '4.14.121', 'ts2.7': '4.14.121', 'ts2.8': '4.14.122', 'ts2.9': '4.14.122', 'ts3.0': '4.14.122', 'ts3.1': '4.14.122', 'ts3.2': '4.14.122', 'ts3.3': '4.14.122', 'ts3.4': '4.14.122' } ``` In our case we are using TypeScript 2.6.2, so set the version of `@types/lodash` to 4.14.121. Also set strict versions for all other dependencies (based on what has been installed in my local `node_modules` dir).
1 parent 9a9a46d commit 56a2ef2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,28 @@
2525
],
2626
"license": "SEE LICENSE IN LICENSE.txt",
2727
"dependencies": {
28-
"lodash": "^4.17.10",
29-
"semver": "^5.5.0",
28+
"lodash": "4.17.11",
29+
"semver": "5.6.0",
3030
"universal-analytics": "0.4.15",
31-
"uuid": "^3.2.1",
32-
"vscode-chrome-debug-core": "^3.23.11",
33-
"vscode-debugadapter": "^1.28.0-pre.2"
31+
"uuid": "3.3.2",
32+
"vscode-chrome-debug-core": "3.23.11",
33+
"vscode-debugadapter": "1.34.0"
3434
},
3535
"devDependencies": {
36-
"@types/lodash": "^4.14.109",
37-
"@types/mocha": "^5.2.1",
36+
"@types/lodash": "4.14.121",
37+
"@types/mocha": "5.2.6",
3838
"@types/node": "6.0.46",
39-
"@types/semver": "^5.5.0",
39+
"@types/semver": "5.5.0",
4040
"@types/universal-analytics": "0.4.1",
41-
"cpx": "^1.5.0",
42-
"mocha": "^5.2.0",
43-
"sinon": "^5.0.10",
41+
"cpx": "1.5.0",
42+
"mocha": "5.2.0",
43+
"sinon": "5.1.1",
4444
"tslint": "5.10.0",
45-
"tslint-eslint-rules": "^5.3.1",
45+
"tslint-eslint-rules": "5.4.0",
4646
"typescript": "2.6.2",
4747
"vsce": "~1.36.0",
4848
"vscode": "~1.1.10",
49-
"vscode-debugprotocol": "^1.28.0-pre.1"
49+
"vscode-debugprotocol": "1.34.0"
5050
},
5151
"scripts": {
5252
"clean": "git clean -fdx",
@@ -369,4 +369,4 @@
369369
}
370370
]
371371
}
372-
}
372+
}

0 commit comments

Comments
 (0)