Add no-cache option (#58)
This commit is contained in:
@@ -23,6 +23,7 @@ export type Input = {
|
||||
profile?: boolean;
|
||||
scope?: string;
|
||||
registryUrl?: string;
|
||||
noCache?: boolean;
|
||||
};
|
||||
|
||||
export type Output = {
|
||||
@@ -123,7 +124,10 @@ export default async (options: Input): Promise<Output> => {
|
||||
};
|
||||
|
||||
function isCacheEnabled(options: Input): boolean {
|
||||
const { customUrl, version } = options;
|
||||
const { customUrl, version, noCache } = options;
|
||||
if (noCache) {
|
||||
return false;
|
||||
}
|
||||
if (customUrl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user