@oclif/core
Advanced tools
Comparing version 4.0.0-beta.10 to 4.0.0-beta.11
@@ -11,3 +11,3 @@ export type { AlphabetLowercase, AlphabetUppercase } from './alphabet'; | ||
export type { Arg, BooleanFlag, CustomOptions, Deprecation, Flag, FlagDefinition, OptionFlag } from './parser'; | ||
export type { OclifConfiguration, PJSON, S3, S3Templates, UserPJSON } from './pjson'; | ||
export type { LinkedPlugin, OclifConfiguration, PJSON, S3, S3Templates, UserPJSON, UserPlugin } from './pjson'; | ||
export type { Options, Plugin, PluginOptions } from './plugin'; | ||
@@ -14,0 +14,0 @@ export type { S3Manifest } from './s3-manifest'; |
@@ -282,8 +282,5 @@ import { HelpOptions } from './help'; | ||
}; | ||
export type PluginTypes = { | ||
root: string; | ||
} | UserPlugin | LinkedPlugin; | ||
export type UserPJSON = { | ||
oclif: { | ||
plugins?: PluginTypes[]; | ||
plugins?: (UserPlugin | LinkedPlugin)[]; | ||
}; | ||
@@ -290,0 +287,0 @@ private?: boolean; |
@@ -318,5 +318,3 @@ "use strict"; | ||
input: v, | ||
})))) | ||
// eslint-disable-next-line unicorn/no-await-expression-member | ||
.map((v) => validateOptions(i.inputFlag.flag, v)), | ||
})))).map((v) => validateOptions(i.inputFlag.flag, v)), | ||
}; | ||
@@ -323,0 +321,0 @@ } |
@@ -6,2 +6,3 @@ "use strict"; | ||
const promises_1 = require("node:fs/promises"); | ||
const util_1 = require("./util"); | ||
/** | ||
@@ -47,3 +48,11 @@ * Parser for Args.directory and Flags.directory. Checks that the provided path | ||
exports.fileExists = fileExists; | ||
const cache = new Map(); | ||
class ProdOnlyCache extends Map { | ||
set(key, value) { | ||
if ((0, util_1.isProd)() ?? false) { | ||
super.set(key, value); | ||
} | ||
return this; | ||
} | ||
} | ||
const cache = new ProdOnlyCache(); | ||
async function readJson(path) { | ||
@@ -50,0 +59,0 @@ if (cache.has(path)) { |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "4.0.0-beta.10", | ||
"version": "4.0.0-beta.11", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
396794
9994
1
105