Skip to content

Commit

Permalink
feat: update the bundled serve-d and dcd
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 19, 2021
1 parent 0e44047 commit 2b312a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,9 @@
},
"package-deps": [
"atom-ide-base"
]
],
"bundledDependencies": {
"serve-d": "0.7.0-beta.7",
"dcd": "0.13.6"
}
}
8 changes: 5 additions & 3 deletions scripts/get-servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import decompress from "decompress"
// @ts-ignore
import decompressTarxz from "decompress-tarxz"

import { bundledDependencies } from "../package.json"

const assetPlatformToNodePlatform: Record<string, string | undefined> = {
windows: "win32",
osx: "darwin",
Expand All @@ -25,7 +27,7 @@ export async function getServeD(distFolderRoot: string) {
/* username */ "Pure-D",
/* repo */ "serve-d",
/* download folder */ distFolderRoot,
/* filter release */ undefined,
/* filter release */ (asset) => asset.tag_name.includes(bundledDependencies["serve-d"]),
/* filter asset */ undefined, // (asset) => asset.name.indexOf(platform) >= 0,
true,
true
Expand All @@ -48,8 +50,8 @@ export async function getDCD(distFolderRoot: string) {
/* username */ "dlang-community",
/* repo */ "DCD",
/* download folder */ distFolderRoot,
/* filter release */ undefined,
/* filter asset */ undefined, // (asset) => asset.name.indexOf(platform) >= 0,
/* filter release */ (asset) => asset.tag_name.includes(bundledDependencies.dcd),
/* filter asset */ undefined, // (asset) => asset.name.includes(process.platform),
true,
true
)
Expand Down
3 changes: 1 addition & 2 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
"inlineSources": true,
"preserveSymlinks": true,
"removeComments": true,
"jsx": "react",
"jsxFactory": "etch.dom",
"lib": ["ES2018", "dom"],
"target": "ES2018",
"allowJs": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": false,
Expand Down

0 comments on commit 2b312a8

Please sign in to comment.