Skip to content
Permalink
Browse files

refactor(all): rewrote in typescript

* well here we go

* refactor(all-makers): rewrote in typescript

* now some publishers

* more publishers

* pretty much everything

* Finish typescript conversion with core tests

* Conflict resolution

* Ensure ts output is generated (forgot the tsconfig)

* Fix ES5 inclusion of fetch-mock

* Remove .vscode
  • Loading branch information
MarshallOfSound committed Apr 28, 2018
1 parent 129e4ab commit a3faa619699325963b23169f8e5e7f04ba2683cb
Showing with 3,385 additions and 1,822 deletions.
  1. +2 −1 .babelrc
  2. +4 −1 .gitignore
  3. +1 −0 mocha.opts
  4. +40 −9 package.json
  5. +4 −3 packages/api/cli/package.json
  6. +2 −2 packages/api/cli/src/{electron-forge-import.js → electron-forge-import.ts}
  7. +3 −3 packages/api/cli/src/{electron-forge-init.js → electron-forge-init.ts}
  8. +0 −24 packages/api/cli/src/electron-forge-install.js
  9. +41 −0 packages/api/cli/src/electron-forge-install.ts
  10. +2 −2 packages/api/cli/src/{electron-forge-lint.js → electron-forge-lint.ts}
  11. +4 −4 packages/api/cli/src/{electron-forge-make.js → electron-forge-make.ts}
  12. +3 −3 packages/api/cli/src/{electron-forge-package.js → electron-forge-package.ts}
  13. +3 −6 packages/api/cli/src/{electron-forge-publish.js → electron-forge-publish.ts}
  14. +4 −4 packages/api/cli/src/{electron-forge-start.js → electron-forge-start.ts}
  15. +1 −1 packages/api/cli/src/{electron-forge.js → electron-forge.ts}
  16. +12 −10 packages/api/cli/src/util/{check-system.js → check-system.ts}
  17. +1 −1 packages/api/cli/src/util/{terminate.js → terminate.ts}
  18. +4 −4 packages/api/cli/test/{check-system_spec.js → check-system_spec.ts}
  19. +8 −4 packages/api/core/package.json
  20. +50 −33 packages/api/core/src/api/{import.js → import.ts}
  21. +0 −28 packages/api/core/src/api/index.js
  22. +40 −0 packages/api/core/src/api/index.ts
  23. +2 −2 packages/api/core/src/api/init-scripts/{init-custom.js → init-custom.ts}
  24. +1 −1 packages/api/core/src/api/init-scripts/{init-directory.js → init-directory.ts}
  25. +1 −1 packages/api/core/src/api/init-scripts/{init-git.js → init-git.ts}
  26. +1 −1 packages/api/core/src/api/init-scripts/{init-npm.js → init-npm.ts}
  27. +6 −2 packages/api/core/src/api/init-scripts/{init-starter-files.js → init-starter-files.ts}
  28. +0 −45 packages/api/core/src/api/init.js
  29. +48 −0 packages/api/core/src/api/init.ts
  30. +60 −28 packages/api/core/src/api/{install.js → install.ts}
  31. +0 −58 packages/api/core/src/api/lint.js
  32. +47 −0 packages/api/core/src/api/lint.ts
  33. +67 −61 packages/api/core/src/api/{make.js → make.ts}
  34. +61 −41 packages/api/core/src/api/{package.js → package.ts}
  35. +0 −165 packages/api/core/src/api/publish.js
  36. +172 −0 packages/api/core/src/api/publish.ts
  37. +0 −98 packages/api/core/src/api/start.js
  38. +120 −0 packages/api/core/src/api/start.ts
  39. +1 −1 packages/api/core/src/util/{config-fn.js → config-fn.ts}
  40. +2 −2 packages/api/core/src/util/{deprecate.js → deprecate.ts}
  41. +1 −1 packages/api/core/src/util/{electron-version.js → electron-version.ts}
  42. +18 −15 packages/api/core/src/util/{forge-config.js → forge-config.ts}
  43. +0 −13 packages/api/core/src/util/hook.js
  44. +16 −0 packages/api/core/src/util/hook.ts
  45. +6 −1 packages/api/core/src/util/{install-dependencies.js → install-dependencies.ts}
  46. +1 −1 packages/api/core/src/util/{is-installed.js → is-installed.ts}
  47. +0 −19 packages/api/core/src/util/linux-config.js
  48. +4 −4 packages/api/core/src/util/{linux-installer.js → linux-installer.ts}
  49. +0 −13 packages/api/core/src/util/messages.js
  50. +11 −0 packages/api/core/src/util/messages.ts
  51. +3 −2 packages/api/core/src/util/{out-dir.js → out-dir.ts}
  52. +0 −9 packages/api/core/src/util/parse-archs.js
  53. +15 −0 packages/api/core/src/util/parse-archs.ts
  54. +17 −8 packages/api/core/src/util/{plugin-interface.js → plugin-interface.ts}
  55. +15 −8 packages/api/core/src/util/{publish-state.js → publish-state.ts}
  56. +1 −1 packages/api/core/src/util/{read-package-json.js → read-package-json.ts}
  57. +10 −1 packages/api/core/src/util/{rebuild.js → rebuild.ts}
  58. +9 −4 packages/api/core/src/util/{require-search.js → require-search.ts}
  59. +1 −1 packages/api/core/src/util/{resolve-dir.js → resolve-dir.ts}
  60. +1 −1 packages/api/core/src/util/{yarn-or-npm.js → yarn-or-npm.ts}
  61. +4 −4 packages/api/core/test/fast/{forge-config_spec.js → forge-config_spec.ts}
  62. +2 −1 packages/api/core/test/fast/{hook_spec.js → hook_spec.ts}
  63. +9 −7 packages/api/core/test/fast/{install-dependencies_spec.js → install-dependencies_spec.ts}
  64. +4 −3 packages/api/core/test/fast/{out-dir_spec.js → out-dir_spec.ts}
  65. 0 packages/api/core/test/fast/{parse-archs_spec.js → parse-archs_spec.ts}
  66. +24 −47 packages/api/core/test/fast/{publish_spec.js → publish_spec.ts}
  67. +1 −1 packages/api/core/test/fast/{read-package-json_spec.js → read-package-json_spec.ts}
  68. +2 −2 packages/api/core/test/fast/{require-search_spec.js → require-search_spec.ts}
  69. 0 packages/api/core/test/fast/{resolve-dir_spec.js → resolve-dir_spec.ts}
  70. +13 −13 packages/api/core/test/fast/{start_spec.js → start_spec.ts}
  71. +1 −1 packages/api/core/test/fast/{yarn-or-npm_spec.js → yarn-or-npm_spec.ts}
  72. +13 −14 packages/api/core/test/slow/{api_spec_slow.js → api_spec_slow.ts}
  73. 0 packages/api/core/test/slow/{install-dependencies_spec_slow.js → install-dependencies_spec_slow.ts}
  74. +14 −14 packages/api/core/test/slow/{install_spec_slow.js → install_spec_slow.ts}
  75. +4 −2 packages/api/core/test/slow/{rebuild_spec_slow.js → rebuild_spec_slow.ts}
  76. +18 −0 packages/api/core/typings/ambient.d.ts
  77. +6 −2 packages/installer/base/package.json
  78. +13 −7 packages/installer/base/src/{Installer.js → Installer.ts}
  79. +8 −3 packages/installer/base/test/{Installer_spec.js → Installer_spec.ts}
  80. +3 −1 packages/installer/darwin/package.json
  81. +7 −4 packages/installer/darwin/src/{InstallerDarwin.js → InstallerDarwin.ts}
  82. +6 −0 packages/installer/darwin/typings/ambient.d.ts
  83. +1 −0 packages/installer/deb/package.json
  84. +3 −5 packages/installer/deb/src/{InstallerDeb.js → InstallerDeb.ts}
  85. +1 −0 packages/installer/dmg/package.json
  86. +4 −6 packages/installer/dmg/src/{InstallerDMG.js → InstallerDMG.ts}
  87. +11 −6 packages/installer/dmg/src/util/{hdiutil.js → hdiutil.ts}
  88. +1 −0 packages/installer/exe/package.json
  89. +0 −15 packages/installer/exe/src/InstallerExe.js
  90. +13 −0 packages/installer/exe/src/InstallerExe.ts
  91. +1 −0 packages/installer/linux/package.json
  92. +0 −22 packages/installer/linux/src/InstallerLinux.js
  93. +24 −0 packages/installer/linux/src/InstallerLinux.ts
  94. +6 −0 packages/installer/linux/typings/ambient.d.ts
  95. +1 −0 packages/installer/rpm/package.json
  96. +3 −5 packages/installer/rpm/src/{InstallerRpm.js → InstallerRpm.ts}
  97. +1 −0 packages/installer/zip/package.json
  98. +5 −7 packages/installer/zip/src/{InstallerZip.js → InstallerZip.ts}
  99. +4 −2 packages/maker/appx/package.json
  100. +28 −0 packages/maker/appx/src/Config.ts
  101. +21 −11 packages/maker/appx/src/{MakerAppX.js → MakerAppX.ts}
  102. +0 −19 packages/maker/appx/src/util/author-name.js
  103. +19 −0 packages/maker/appx/src/util/author-name.ts
  104. +1 −1 packages/maker/appx/test/{MakerAppX_spec.js → MakerAppX_spec.ts}
  105. 0 packages/maker/appx/test/{author-name_spec.js → author-name_spec.ts}
  106. +39 −0 packages/maker/appx/typings/ambient.d.ts
  107. +4 −2 packages/maker/base/package.json
  108. +37 −19 packages/maker/base/src/{Maker.js → Maker.ts}
  109. +8 −3 packages/maker/base/test/{ensure-output_spec.js → ensure-output_spec.ts}
  110. +8 −3 packages/maker/deb/package.json
  111. +125 −0 packages/maker/deb/src/Config.ts
  112. +9 −5 packages/maker/deb/src/{MakerDeb.js → MakerDeb.ts}
  113. +29 −22 packages/maker/deb/test/{MakerDeb_spec.js → MakerDeb_spec.ts}
  114. +4 −2 packages/maker/dmg/package.json
  115. +30 −0 packages/maker/dmg/src/Config.ts
  116. +7 −3 packages/maker/dmg/src/{MakerDMG.js → MakerDMG.ts}
  117. +18 −15 packages/maker/dmg/test/{MakerDMG_spec.js → MakerDMG_spec.ts}
  118. +4 −2 packages/maker/flatpak/package.json
  119. +104 −0 packages/maker/flatpak/src/Config.ts
  120. +8 −4 packages/maker/flatpak/src/{MakerFlatpak.js → MakerFlatpak.ts}
  121. +22 −16 packages/maker/flatpak/test/{MakerFlatpak_spec.js → MakerFlatpak_spec.ts}
  122. +4 −2 packages/maker/rpm/package.json
  123. +79 −0 packages/maker/rpm/src/Config.ts
  124. +9 −4 packages/maker/rpm/src/{MakerRpm.js → MakerRpm.ts}
  125. +29 −22 packages/maker/rpm/test/{MakerRpm_spec.js → MakerRpm_spec.ts}
  126. +5 −3 packages/maker/snap/package.json
  127. +93 −0 packages/maker/snap/src/Config.ts
  128. +7 −3 packages/maker/snap/src/{MakerSnap.js → MakerSnap.ts}
  129. +18 −15 packages/maker/snap/test/{MakerSnap_spec.js → MakerSnap_spec.ts}
  130. +3 −1 packages/maker/squirrel/package.json
  131. +11 −5 packages/maker/squirrel/src/{MakerSquirrel.js → MakerSquirrel.ts}
  132. +4 −2 packages/maker/wix/package.json
  133. +8 −6 packages/maker/wix/src/{MakerWix.js → MakerWix.ts}
  134. +0 −19 packages/maker/wix/src/util/author-name.js
  135. +19 −0 packages/maker/wix/src/util/author-name.ts
  136. 0 packages/maker/wix/test/{author-name_spec.js → author-name_spec.ts}
  137. +10 −0 packages/maker/wix/typings/ambient.d.ts
  138. +3 −1 packages/maker/zip/package.json
  139. +10 −6 packages/maker/zip/src/{MakerZIP.js → MakerZIP.ts}
  140. +4 −2 packages/publisher/base/package.json
  141. +32 −12 packages/publisher/base/src/{Publisher.js → Publisher.ts}
  142. +0 −15 packages/publisher/base/test/Publisher_spec.js
  143. +20 −0 packages/publisher/base/test/Publisher_spec.ts
  144. +3 −1 packages/publisher/electron-release-server/package.json
  145. +6 −0 packages/publisher/electron-release-server/src/Config.ts
  146. +0 −127 packages/publisher/electron-release-server/src/PublisherERS.js
  147. +136 −0 packages/publisher/electron-release-server/src/PublisherERS.ts
  148. +4 −2 packages/publisher/github/package.json
  149. +12 −0 packages/publisher/github/src/Config.ts
  150. +0 −85 packages/publisher/github/src/PublisherGithub.js
  151. +111 −0 packages/publisher/github/src/PublisherGithub.ts
  152. +4 −1 packages/publisher/github/src/util/{github.js → github.ts}
  153. +13 −9 packages/publisher/github/test/{github_spec.js → github_spec.ts}
  154. +4 −1 packages/publisher/s3/package.json
  155. +8 −0 packages/publisher/s3/src/Config.ts
  156. +38 −19 packages/publisher/s3/src/{PublisherS3.js → PublisherS3.ts}
  157. +1 −0 packages/publisher/snapcraft/package.json
  158. +6 −0 packages/publisher/snapcraft/src/Config.ts
  159. +8 −5 packages/publisher/snapcraft/src/{PublisherSnapcraft.js → PublisherSnapcraft.ts}
  160. +4 −3 packages/utils/async-ora/package.json
  161. +2 −1 packages/utils/async-ora/src/{index.js → index.ts}
  162. +14 −6 packages/utils/async-ora/src/{ora-handler.js → ora-handler.ts}
  163. +0 −39 packages/utils/async-ora/src/ora.js
  164. +49 −0 packages/utils/async-ora/src/ora.ts
  165. +21 −14 packages/utils/async-ora/test/{ora-handler_spec.js → ora-handler_spec.ts}
  166. +87 −0 packages/utils/types/index.d.ts
  167. +21 −0 packages/utils/types/package.json
  168. +3 −0 packages/utils/types/src/index.ts
  169. +19 −0 tools/link-ts.ts
  170. +34 −0 tools/test-dist.ts
  171. +4 −0 tools/test-setup.js
  172. +23 −0 tsconfig.json
  173. +679 −319 yarn.lock
@@ -12,6 +12,7 @@
"node": "6"
}
}
]
],
"@babel/typescript"
]
}
@@ -1,4 +1,7 @@
node_modules
dist
yarn-error.log
packages/.old
packages/.old
**/tsconfig.json
!/tsconfig.json
.vscode
@@ -1,2 +1,3 @@
--require @babel/register
--require ../../../tools/test-setup.js
--timeout 800000
@@ -21,7 +21,10 @@
}
},
"scripts": {
"build": "bolt ws exec -- node_modules/.bin/babel src -d dist --quiet",
"clean": "bolt ws exec -- rimraf dist",
"prebuild": "bolt clean && ts-node tools/link-ts.ts && bolt ws exec -- node_modules/.bin/tsc --emitDeclarationOnly",
"build": "bolt ws exec -- node_modules/.bin/babel src -d dist --quiet --extensions \".ts\"",
"postbuild": "ts-node tools/test-dist",
"commit": "git-cz",
"docs:build": "cd docs && gitbook build",
"docs:install": "cd docs && gitbook install",
@@ -32,7 +35,7 @@
"dependencies": {
"@octokit/rest": "^15.2.6",
"aws-sdk": "^2.9.0",
"colors": "^1.1.2",
"colors": "^1.2.0",
"commander": "^2.9.0",
"cross-spawn": "^6.0.4",
"cross-spawn-promise": "^0.10.1",
@@ -68,12 +71,37 @@
"zip-folder": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.40",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.40",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"@babel/register": "^7.0.0-beta.40",
"@babel/cli": "^7.0.0-beta.44",
"@babel/core": "^7.0.0-beta.44",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.44",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.44",
"@babel/preset-env": "^7.0.0-beta.44",
"@babel/preset-typescript": "^7.0.0-beta.44",
"@babel/register": "^7.0.0-beta.44",
"@types/chai": "^4.1.2",
"@types/chai-as-promised": "^7.1.0",
"@types/cross-spawn": "^6.0.0",
"@types/debug": "^0.0.30",
"@types/electron-packager": "^10.1.0",
"@types/electron-winstaller": "^2.6.1",
"@types/fetch-mock": "^6.0.1",
"@types/form-data": "^2.2.1",
"@types/fs-extra": "^5.0.2",
"@types/glob": "^5.0.35",
"@types/inquirer": "^0.0.41",
"@types/lodash.merge": "^4.6.3",
"@types/lodash.template": "^4.4.3",
"@types/log-symbols": "^2.0.0",
"@types/mime-types": "^2.1.0",
"@types/mocha": "^5.1.0",
"@types/node": "^9.6.5",
"@types/node-fetch": "^1.6.8",
"@types/opn": "^5.1.0",
"@types/ora": "^1.3.4",
"@types/pify": "^3.0.1",
"@types/proxyquire": "^1.3.28",
"@types/semver": "^5.5.0",
"@types/sinon": "^4.3.1",
"asar": "^0.14.0",
"babel-eslint": "^7.0.0",
"chai": "^4.0.0",
@@ -95,7 +123,10 @@
"nodemon": "^1.11.0",
"nyc": "^11.0.0",
"proxyquire": "^2.0.1",
"sinon": "^4.1.2"
"rimraf": "^2.6.2",
"sinon": "^4.1.2",
"ts-node": "^6.0.0",
"typescript": "^2.8.1"
},
"optionalDependencies": {
"electron-installer-debian": "^0.8.0",
@@ -12,7 +12,7 @@
"electron-forge-vscode-win": "script/vscode.cmd"
},
"scripts": {
"test": "mocha test/**/*_spec.js test/**/**/*_spec.js --opts ../../../mocha.opts"
"test": "mocha --require ts-node/register test/**/*_spec.ts test/**/**/*_spec.ts --opts ../../../mocha.opts"
},
"devDependencies": {
"chai": "^4.0.0",
@@ -21,13 +21,14 @@
"dependencies": {
"@electron-forge/async-ora": "6.0.0-beta.3",
"@electron-forge/core": "6.0.0-beta.3",
"colors": "^1.1.2",
"colors": "^1.2.0",
"commander": "^2.9.0",
"debug": "^3.0.0",
"fs-extra": "^5.0.0",
"inquirer": "^5.0.0",
"semver": "^5.3.0"
},
"engines": {
"node": ">= 6.0"
}
}
}
@@ -1,4 +1,4 @@
import { import as importAPI } from '@electron-forge/core';
import { api } from '@electron-forge/core';

import path from 'path';
import program from 'commander';
@@ -20,7 +20,7 @@ import './util/terminate';
})
.parse(process.argv);

await importAPI({
await api.import({
dir,
interactive: true,
});
@@ -1,4 +1,4 @@
import { init } from '@electron-forge/core';
import { api, InitOptions } from '@electron-forge/core';

import path from 'path';
import program from 'commander';
@@ -22,12 +22,12 @@ import './util/terminate';
})
.parse(process.argv);

const initOpts = {
const initOpts: InitOptions = {
dir,
interactive: true,
copyCIFiles: !!program.copyCiFiles,
};
if (program.template) initOpts.template = program.template;

await init(initOpts);
await api.init(initOpts);
})();

This file was deleted.

@@ -0,0 +1,41 @@
import { api, InstallAsset } from '@electron-forge/core';
import inquirer from 'inquirer';

import program from 'commander';

import './util/terminate';

(async () => {
let repo!: string;

program
.version(require('../package.json').version)
.arguments('[repository]')
.option('--prerelease', 'Fetch prerelease versions')
.action((repository) => {
repo = repository;
})
.parse(process.argv);

const chooseAsset = async (assets: InstallAsset[]) => {
const choices: { name: string, value: string }[] = [];
assets.forEach((asset) => {
choices.push({ name: asset.name, value: asset.id });
});
const { assetID } = await inquirer.createPromptModule()<{ assetID: string }>({
type: 'list',
name: 'assetID',
message: 'Multiple potential assets found, please choose one from the list below:'.cyan,
choices,
});

return assets.find(asset => asset.id === assetID)!;
}

await api.install({
repo,
interactive: true,
chooseAsset,
prerelease: program.prerelease,
});
})();
@@ -1,4 +1,4 @@
import { lint } from '@electron-forge/core';
import { api } from '@electron-forge/core';

import fs from 'fs';
import path from 'path';
@@ -21,7 +21,7 @@ import './util/terminate';
})
.parse(process.argv);

await lint({
await api.lint({
dir,
interactive: true,
});
@@ -1,4 +1,4 @@
import { make } from '@electron-forge/core';
import { api, MakeOptions } from '@electron-forge/core';

import fs from 'fs-extra';
import path from 'path';
@@ -27,7 +27,7 @@ export const getMakeOptions = () => {
})
.parse(process.argv);

const makeOpts = {
const makeOpts: MakeOptions = {
dir,
interactive: true,
skipPackage: program.skipPackage,
@@ -39,10 +39,10 @@ export const getMakeOptions = () => {
return makeOpts;
};

if (process.mainModule === module || global.__LINKED_FORGE__) {
if (process.mainModule === module || (global as any).__LINKED_FORGE__) {
(async () => {
const makeOpts = getMakeOptions();

await make(makeOpts);
await api.make(makeOpts);
})();
}
@@ -1,4 +1,4 @@
import { package as packageAPI } from '@electron-forge/core';
import { api, PackageOptions } from '@electron-forge/core';

import fs from 'fs-extra';
import path from 'path';
@@ -24,12 +24,12 @@ import './util/terminate';
})
.parse(process.argv);

const packageOpts = {
const packageOpts: PackageOptions = {
dir,
interactive: true,
};
if (program.arch) packageOpts.arch = program.arch;
if (program.platform) packageOpts.platform = program.platform;

await packageAPI(packageOpts);
await api.package(packageOpts);
})();
@@ -1,4 +1,4 @@
import { publish } from '@electron-forge/core';
import { api, PublishOptions } from '@electron-forge/core';

import fs from 'fs-extra';
import path from 'path';
@@ -12,7 +12,6 @@ import { getMakeOptions } from './electron-forge-make';
program
.version(require('../package.json').version)
.arguments('[cwd]')
.option('--tag', 'The tag to publish to on GitHub')
.option('--target [target[,target...]]', 'The comma-separated deployment targets, defaults to "github"')
.option('--dry-run', 'Triggers a publish dry run which saves state and doesn\'t upload anything')
.option('--from-dry-run', 'Attempts to publish artifacts from the last saved dry run')
@@ -27,17 +26,15 @@ import { getMakeOptions } from './electron-forge-make';
})
.parse(process.argv);

const publishOpts = {
const publishOpts: PublishOptions = {
dir,
interactive: true,
authToken: program.authToken,
tag: program.tag,
dryRun: program.dryRun,
dryRunResume: program.fromDryRun,
};
if (program.target) publishOpts.publishTargets = program.target.split(',');

publishOpts.makeOptions = getMakeOptions();

await publish(publishOpts);
await api.publish(publishOpts);
})();
@@ -1,4 +1,4 @@
import { start } from '@electron-forge/core';
import { api, StartOptions } from '@electron-forge/core';

import fs from 'fs-extra';
import path from 'path';
@@ -43,7 +43,7 @@ import './util/terminate';
console.log(" will pass the arguments '-d -f foo.txt' to the Electron app");
});

const opts = {
const opts: StartOptions = {
dir,
interactive: true,
enableLogging: !!program.enableLogging,
@@ -61,10 +61,10 @@ import './util/terminate';
if (program.appPath) opts.appPath = program.appPath;
if (appArgs) opts.args = appArgs;

const spawned = await start(opts);
const spawned = await api.start(opts);

await new Promise((resolve) => {
spawned.on('exit', (code) => {
spawned.on('exit', (code: number) => {
if (code !== 0) {
process.exit(code);
}
@@ -8,7 +8,7 @@ import './util/terminate';
import checkSystem from './util/check-system';

const originalSC = program.executeSubCommand.bind(program);
program.executeSubCommand = (argv, args, unknown) => {
program.executeSubCommand = (argv: string[], args: string[], unknown: string[]) => {
let indexOfDoubleDash = process.argv.indexOf('--');
indexOfDoubleDash = indexOfDoubleDash < 0 ? process.argv.length + 1 : indexOfDoubleDash;

0 comments on commit a3faa61

Please sign in to comment.
You can’t perform that action at this time.