@pob/version 5.2.0 → 6.0.0

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 (37) hide show
  1. package/LICENSE +21 -15
  2. package/README.md +147 -10
  3. package/dist/index-node.mjs +1482 -0
  4. package/dist/index-node.mjs.map +1 -0
  5. package/package.json +78 -19
  6. package/src/commands/version.test.ts +120 -0
  7. package/src/commands/version.ts +956 -0
  8. package/src/index.ts +13 -0
  9. package/src/missing-types.d.ts +10 -0
  10. package/src/pm/BunPackageManager.ts +29 -0
  11. package/src/pm/PackageManager.ts +90 -0
  12. package/src/pm/PnpmPackageManager.ts +23 -0
  13. package/src/pm/YarnPackageManager.ts +44 -0
  14. package/src/utils/UsageError.ts +6 -0
  15. package/src/utils/bumpTypeUtils.test.ts +65 -0
  16. package/src/utils/bumpTypeUtils.ts +111 -0
  17. package/src/utils/conventionalChangelogUtils.test.ts +762 -0
  18. package/src/utils/conventionalChangelogUtils.ts +104 -0
  19. package/src/utils/conventionalCommitConfigUtils.ts +19 -0
  20. package/src/utils/execCommand.ts +214 -0
  21. package/src/utils/generatorUtils.ts +11 -0
  22. package/src/utils/gitUtils.ts +193 -0
  23. package/src/utils/githubUtils.ts +120 -0
  24. package/src/utils/mapUtils.ts +7 -0
  25. package/src/utils/mapWorkspaces.test.ts +89 -0
  26. package/src/utils/packageDependenciesUtils.test.ts +25 -0
  27. package/src/utils/packageDependenciesUtils.ts +80 -0
  28. package/src/utils/packageUtils.test.ts +32 -0
  29. package/src/utils/packageUtils.ts +129 -0
  30. package/src/utils/updateChangelog.ts +39 -0
  31. package/src/utils/workspaceUtils.ts +142 -0
  32. package/.editorconfig +0 -13
  33. package/.eslintrc.json +0 -7
  34. package/CHANGELOG.md +0 -125
  35. package/generate-index.js +0 -13
  36. package/lib/index.d.ts +0 -8
  37. package/lib/index.js +0 -5
package/generate-index.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const fs = require('fs');
4
-
5
- fs.writeFileSync(
6
- require.resolve('./lib/index.js'),
7
- `'use strict';
8
-
9
- const pkg = require('../package.json');
10
-
11
- module.exports = { version: pkg.version, date: ${Date.now()} };
12
- `
13
- );
package/lib/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- interface Version {
2
- version: string;
3
- date: number;
4
- }
5
-
6
- declare const version: Version;
7
-
8
- export = version;
package/lib/index.js DELETED
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const pkg = require('../package.json');
4
-
5
- module.exports = { version: pkg.version, date: 1581081701634 };