@cparra/apexdocs 3.2.1 → 3.3.0-alpha.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.
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var logger$1 = require('../logger-DIyKhj0a.js');
4
+ var logger$1 = require('../logger-C3kCwNpQ.js');
5
5
  var cosmiconfig = require('cosmiconfig');
6
6
  var yargs = require('yargs');
7
7
  var E = require('fp-ts/Either');
8
8
  var cosmiconfigTypescriptLoader = require('cosmiconfig-typescript-loader');
9
9
  var _function = require('fp-ts/function');
10
10
  require('fp-ts/TaskEither');
11
+ require('simple-git');
11
12
  require('js-yaml');
12
13
  require('path');
13
14
  require('fp-ts/Task');
@@ -20,6 +21,8 @@ require('fp-ts/boolean');
20
21
  require('fs');
21
22
  require('fp-ts/lib/TaskEither');
22
23
  require('minimatch');
24
+ require('node:path');
25
+ require('node:fs');
23
26
  require('chalk');
24
27
 
25
28
  function _interopNamespaceDefault(e) {
@@ -133,7 +136,18 @@ const changeLogOptions = {
133
136
  type: "string",
134
137
  alias: "p",
135
138
  demandOption: true,
136
- describe: "The directory location of the previous version of the source code."
139
+ describe: "The directory location of the previous version of the source code. If previousGitReference is provided, this value should be the directory in which the Apex source code resides within the repository."
140
+ },
141
+ // TODO: Validate that if previousGitReference is provided, repoPath is also provided.
142
+ repoPath: {
143
+ type: "string",
144
+ alias: "g",
145
+ describe: "The path to the git repository. Must be provided if previousGitReference is provided."
146
+ },
147
+ previousGitReference: {
148
+ type: "string",
149
+ alias: "r",
150
+ describe: "The git reference of the previous version of the source code."
137
151
  },
138
152
  currentVersionDir: {
139
153
  type: "string",
package/dist/index.d.ts CHANGED
@@ -40,6 +40,8 @@ type UserDefinedOpenApiConfig = {
40
40
  type UserDefinedChangelogConfig = {
41
41
  targetGenerator: 'changelog';
42
42
  previousVersionDir: string;
43
+ repoPath?: string;
44
+ previousGitReference?: string;
43
45
  currentVersionDir: string;
44
46
  targetDir: string;
45
47
  fileName: string;
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var logger = require('./logger-DIyKhj0a.js');
3
+ var logger = require('./logger-C3kCwNpQ.js');
4
4
  var E = require('fp-ts/Either');
5
5
  require('fp-ts/function');
6
6
  require('fp-ts/TaskEither');
7
+ require('simple-git');
7
8
  require('js-yaml');
8
9
  require('path');
9
10
  require('fp-ts/Task');
@@ -16,6 +17,8 @@ require('fp-ts/boolean');
16
17
  require('fs');
17
18
  require('fp-ts/lib/TaskEither');
18
19
  require('minimatch');
20
+ require('node:path');
21
+ require('node:fs');
19
22
  require('chalk');
20
23
 
21
24
  function _interopNamespaceDefault(e) {