npm-update-package 0.6.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +102 -16
  2. package/dist/app.js +1 -1
  3. package/dist/github/PullRequestBodyCreator.js +29 -0
  4. package/dist/github/PullRequestCreator.js +5 -5
  5. package/dist/github/PullRequestTitleCreator.js +22 -0
  6. package/dist/github/RemoteBranchExistenceChecker.js +0 -1
  7. package/dist/github/index.js +5 -1
  8. package/dist/main.js +4 -0
  9. package/dist/options/Options.js +6 -2
  10. package/dist/options/initOptions.js +10 -1
  11. package/package.json +11 -7
  12. package/.eslintignore +0 -3
  13. package/.eslintrc.js +0 -23
  14. package/.github/FUNDING.yml +0 -2
  15. package/.github/renovate.json +0 -15
  16. package/.github/workflows/eslint.yml +0 -14
  17. package/.github/workflows/test.yml +0 -19
  18. package/.husky/pre-commit +0 -4
  19. package/.nvmrc +0 -1
  20. package/dist/github/createPullRequestBody.js +0 -19
  21. package/dist/github/createPullRequestTitle.js +0 -10
  22. package/jest.config.ts +0 -11
  23. package/lint-staged.config.js +0 -4
  24. package/npm-update-package.code-workspace +0 -8
  25. package/src/app.ts +0 -5
  26. package/src/bin.ts +0 -20
  27. package/src/git/BranchNameCreator.test.ts +0 -17
  28. package/src/git/BranchNameCreator.ts +0 -19
  29. package/src/git/CommitMessageCreator.test.ts +0 -17
  30. package/src/git/CommitMessageCreator.ts +0 -19
  31. package/src/git/Committer.ts +0 -49
  32. package/src/git/Git.ts +0 -55
  33. package/src/git/GitRepository.test.ts +0 -61
  34. package/src/git/GitRepository.ts +0 -57
  35. package/src/git/index.ts +0 -5
  36. package/src/github/Branch.ts +0 -4
  37. package/src/github/GitHub.ts +0 -27
  38. package/src/github/PullRequest.ts +0 -3
  39. package/src/github/PullRequestCreator.ts +0 -57
  40. package/src/github/RemoteBranchExistenceChecker.ts +0 -15
  41. package/src/github/Repository.ts +0 -3
  42. package/src/github/createGitHub.ts +0 -18
  43. package/src/github/createOctokit.ts +0 -28
  44. package/src/github/createPullRequestBody.test.ts +0 -64
  45. package/src/github/createPullRequestBody.ts +0 -17
  46. package/src/github/createPullRequestTitle.test.ts +0 -42
  47. package/src/github/createPullRequestTitle.ts +0 -8
  48. package/src/github/index.ts +0 -7
  49. package/src/logger/LogLevel.ts +0 -8
  50. package/src/logger/Logger.ts +0 -1
  51. package/src/logger/createLogger.ts +0 -10
  52. package/src/logger/index.ts +0 -6
  53. package/src/main.ts +0 -122
  54. package/src/ncu/Ncu.ts +0 -43
  55. package/src/ncu/NcuOutdatedPackages.ts +0 -6
  56. package/src/ncu/NcuOutdatedPackagesConverter.ts +0 -25
  57. package/src/ncu/OutdatedPackage.ts +0 -9
  58. package/src/ncu/PackageVersion.test.ts +0 -25
  59. package/src/ncu/PackageVersion.ts +0 -40
  60. package/src/ncu/UpdateType.ts +0 -9
  61. package/src/ncu/index.ts +0 -7
  62. package/src/ncu/isNcuOutdatedPackages.ts +0 -6
  63. package/src/ncu/toUpdateType.test.ts +0 -21
  64. package/src/ncu/toUpdateType.ts +0 -18
  65. package/src/options/Options.ts +0 -26
  66. package/src/options/index.ts +0 -2
  67. package/src/options/initOptions.ts +0 -44
  68. package/src/package-json/Package.ts +0 -24
  69. package/src/package-json/PackageDependencies.ts +0 -10
  70. package/src/package-json/PackageJsonParser.ts +0 -19
  71. package/src/package-json/PackageJsonReader.ts +0 -27
  72. package/src/package-json/index.ts +0 -3
  73. package/src/package-manager/Npm.ts +0 -19
  74. package/src/package-manager/PackageManager.ts +0 -4
  75. package/src/package-manager/PackageManagerName.ts +0 -8
  76. package/src/package-manager/Yarn.ts +0 -19
  77. package/src/package-manager/createPackageManager.ts +0 -21
  78. package/src/package-manager/index.ts +0 -8
  79. package/src/processors/OutdatedPackageProcessor.ts +0 -109
  80. package/src/processors/OutdatedPackagesProcessor.ts +0 -32
  81. package/src/processors/Result.ts +0 -7
  82. package/src/processors/index.ts +0 -2
  83. package/src/terminal/Terminal.ts +0 -30
  84. package/src/terminal/index.ts +0 -1
  85. package/src/terminal/isExecaReturnValue.ts +0 -30
  86. package/tsconfig.base.json +0 -3
  87. package/tsconfig.build.json +0 -13
  88. package/tsconfig.json +0 -9
@@ -1,30 +0,0 @@
1
- import type { ExecaReturnValue } from 'execa'
2
- import {
3
- boolean,
4
- intersection,
5
- number,
6
- partial,
7
- string,
8
- type
9
- } from 'io-ts'
10
-
11
- const ExecaReturnValueType = intersection([
12
- type({
13
- command: string,
14
- escapedCommand: string,
15
- exitCode: number,
16
- failed: boolean,
17
- timedOut: boolean,
18
- killed: boolean,
19
- isCanceled: boolean
20
- }),
21
- partial({
22
- signal: string,
23
- signalDescription: string
24
- })
25
- ])
26
-
27
- // TODO: add test
28
- export const isExecaReturnValue = (value: unknown): value is ExecaReturnValue => {
29
- return ExecaReturnValueType.is(value)
30
- }
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@tsconfig/node12/tsconfig.json"
3
- }
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "./tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src"
6
- },
7
- "include": [
8
- "src/**/*.ts"
9
- ],
10
- "exclude": [
11
- "**/*.test.ts"
12
- ]
13
- }
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.base.json",
3
- "compilerOptions": {
4
- "types": [
5
- "node",
6
- "jest"
7
- ]
8
- }
9
- }