Skip to content

Commit

Permalink
Remove some unused deps and dead code (#50367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Aug 19, 2022
1 parent 5969ae9 commit ef88fbb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 90 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const del = require("del");
const rename = require("gulp-rename");
const concat = require("gulp-concat");
const merge2 = require("merge2");
const mkdirp = require("mkdirp");
const { src, dest, task, parallel, series, watch } = require("gulp");
const { append, transform } = require("gulp-insert");
const { prependFile } = require("./scripts/build/prepend");
Expand All @@ -27,9 +26,10 @@ task("scripts").description = "Builds files in the 'scripts' folder.";
const cleanScripts = () => cleanProject("scripts");
cleanTasks.push(cleanScripts);

/** @type {{ libs: string[]; paths: Record<string, string | undefined>; }} */
const libraries = readJson("./src/lib/libs.json");
const libs = libraries.libs.map(lib => {
const relativeSources = ["header.d.ts"].concat(libraries.sources && libraries.sources[lib] || [lib + ".d.ts"]);
const relativeSources = ["header.d.ts", lib + ".d.ts"];
const relativeTarget = libraries.paths && libraries.paths[lib] || ("lib." + lib + ".d.ts");
const sources = relativeSources.map(s => path.posix.join("src/lib", s));
const target = `built/local/${relativeTarget}`;
Expand Down
81 changes: 0 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@octokit/rest": "latest",
"@types/async": "latest",
"@types/chai": "latest",
"@types/convert-source-map": "latest",
"@types/fs-extra": "^9.0.13",
"@types/glob": "latest",
"@types/gulp": "^4.0.9",
Expand All @@ -42,14 +41,12 @@
"@types/gulp-sourcemaps": "latest",
"@types/merge2": "latest",
"@types/microsoft__typescript-etw": "latest",
"@types/minimatch": "latest",
"@types/minimist": "latest",
"@types/mkdirp": "latest",
"@types/mocha": "latest",
"@types/ms": "latest",
"@types/node": "latest",
"@types/node-fetch": "^2.6.2",
"@types/q": "latest",
"@types/source-map-support": "latest",
"@types/xml2js": "^0.4.11",
"@typescript-eslint/eslint-plugin": "^5.28.0",
Expand All @@ -59,7 +56,6 @@
"azure-devops-node-api": "^11.1.1",
"chai": "latest",
"chalk": "^4.1.2",
"convert-source-map": "latest",
"del": "6.1.1",
"diff": "^5.1.0",
"eslint": "8.17.0",
Expand All @@ -84,11 +80,9 @@
"ms": "^2.1.3",
"node-fetch": "^2.6.7",
"prex": "^0.4.7",
"q": "latest",
"source-map-support": "latest",
"typescript": "^4.5.5",
"vinyl": "latest",
"vinyl-sourcemaps-apply": "latest",
"which": "^2.0.2",
"xml2js": "^0.4.23"
},
Expand Down
1 change: 0 additions & 1 deletion scripts/build/tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
const gulp = require("gulp");
const del = require("del");
const fs = require("fs");
const os = require("os");
Expand Down

0 comments on commit ef88fbb

Please sign in to comment.