Skip to content

Commit 6e8e00c

Browse files
authored
Merge pull request #280 from expipiplus1/joe-nix-fix
vscode dependency -> @types/vscode
2 parents 2b078fa + 37bb418 commit 6e8e00c

File tree

3 files changed

+12
-194
lines changed

3 files changed

+12
-194
lines changed

default.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{ pkgs ? import <nixpkgs> {} }:
22
with pkgs;
3-
pkgs.mkYarnPackage {
4-
name = "vscode-haskell";
3+
4+
# Please run `yarn import` first to generate yarn.lock!
5+
pkgs.mkYarnPackage rec {
6+
name = "haskell";
57
src = ./.;
68
packageJSON = ./package.json;
79
yarnLock = ./yarn.lock;
810

911
installPhase = ''
1012
mkdir -p "$out/dist"
1113
yarn vscode:prepublish --output-path "$out/dist"
12-
mv deps/vscode-haskell/{package.json,hie-vscode.sh,hie-vscode.bat} "$out"
14+
mv deps/${name}/package.json "$out"
1315
'';
1416

1517
distPhase = ''

package-lock.json

Lines changed: 6 additions & 189 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171
"vscode:prepublish": "webpack --mode production",
172172
"compile": "webpack --mode none",
173173
"watch": "webpack --mode none --watch --info-verbosity verbose",
174-
"postinstall": "node ./node_modules/vscode/bin/install",
175174
"tslint": "tslint -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
176175
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
177176
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version"
@@ -188,6 +187,7 @@
188187
"@types/lru-cache": "^4.1.2",
189188
"@types/node": "^14.0.3",
190189
"@types/request-promise-native": "^1.0.17",
190+
"@types/vscode": "^1.48.0",
191191
"@types/yauzl": "^2.9.1",
192192
"husky": "^4.2.5",
193193
"prettier": "^2.0.5",
@@ -196,7 +196,6 @@
196196
"tslint": "^5.20.1",
197197
"tslint-loader": "^3.5.4",
198198
"typescript": "^3.9.5",
199-
"vscode": "^1.1.36",
200199
"webpack": "^4.42.1",
201200
"webpack-cli": "^3.3.11"
202201
},

0 commit comments

Comments
 (0)