oclif 3.6.2 → 3.6.4
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.
package/.oclif.manifest.json
CHANGED
package/lib/commands/manifest.js
CHANGED
|
@@ -17,16 +17,17 @@ async function fileExists(filePath) {
|
|
|
17
17
|
}
|
|
18
18
|
class Manifest extends core_1.Command {
|
|
19
19
|
async run() {
|
|
20
|
+
var _a;
|
|
20
21
|
const { flags } = await this.parse(Manifest);
|
|
21
22
|
try {
|
|
22
23
|
fs.unlinkSync('oclif.manifest.json');
|
|
23
24
|
}
|
|
24
|
-
catch (
|
|
25
|
+
catch (_b) { }
|
|
25
26
|
const { args } = await this.parse(Manifest);
|
|
26
27
|
const root = path.resolve(args.path);
|
|
27
28
|
const packageJson = fs.readJSONSync('package.json');
|
|
28
29
|
let jitPluginManifests = [];
|
|
29
|
-
if (flags.jit && packageJson.oclif.jitPlugins) {
|
|
30
|
+
if (flags.jit && ((_a = packageJson.oclif) === null || _a === void 0 ? void 0 : _a.jitPlugins)) {
|
|
30
31
|
this.debug('jitPlugins: %s', packageJson.oclif.jitPlugins);
|
|
31
32
|
const tmpDir = os.tmpdir();
|
|
32
33
|
const promises = Object.entries(packageJson.oclif.jitPlugins).map(async ([jitPlugin, version]) => {
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Command, Flags} from '@oclif/core'
|
|
1
|
+
import {Args, Command, Flags} from '@oclif/core'
|
|
2
2
|
<%_ const klass = _.upperFirst(_.camelCase(name)) _%>
|
|
3
3
|
|
|
4
4
|
export default class <%- klass %> extends Command {
|
|
@@ -15,7 +15,9 @@ export default class <%- klass %> extends Command {
|
|
|
15
15
|
force: Flags.boolean({char: 'f'}),
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
static args =
|
|
18
|
+
static args = {
|
|
19
|
+
file: Args.string({description: 'file to read'}),
|
|
20
|
+
}
|
|
19
21
|
|
|
20
22
|
public async run(): Promise<void> {
|
|
21
23
|
const {args, flags} = await this.parse(<%- klass %>)
|