do not export the SecureTemplateOptions
Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
@@ -19,7 +19,6 @@ import { resolvePackagePath } from '@backstage/backend-common';
|
||||
import {
|
||||
TemplateFilter as _TemplateFilter,
|
||||
TemplateGlobal as _TemplateGlobal,
|
||||
NunjucksConfigs,
|
||||
} from '@backstage/plugin-scaffolder-node';
|
||||
import fs from 'fs-extra';
|
||||
import { JsonValue } from '@backstage/types';
|
||||
@@ -105,14 +104,14 @@ export type TemplateFilter = _TemplateFilter;
|
||||
*/
|
||||
export type TemplateGlobal = _TemplateGlobal;
|
||||
|
||||
export interface SecureTemplaterOptions {
|
||||
interface SecureTemplaterOptions {
|
||||
/* Enables jinja compatibility and the "jsonify" filter */
|
||||
cookiecutterCompat?: boolean;
|
||||
/* Extra user-provided nunjucks filters */
|
||||
templateFilters?: Record<string, TemplateFilter>;
|
||||
/* Extra user-provided nunjucks globals */
|
||||
templateGlobals?: Record<string, TemplateGlobal>;
|
||||
nunjucksConfigs?: NunjucksConfigs;
|
||||
nunjucksConfigs?: { trimBlocks?: boolean; lstripBlocks?: boolean };
|
||||
}
|
||||
|
||||
export type SecureTemplateRenderer = (
|
||||
|
||||
@@ -163,12 +163,6 @@ export function initRepoAndPush(input: {
|
||||
commitHash: string;
|
||||
}>;
|
||||
|
||||
// @public (undocumented)
|
||||
export type NunjucksConfigs = {
|
||||
trimBlocks?: boolean;
|
||||
lstripBlocks?: boolean;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export const parseRepoUrl: (
|
||||
repoUrl: string,
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
export * from './actions';
|
||||
export * from './tasks';
|
||||
export * from './files';
|
||||
export type { TemplateFilter, TemplateGlobal, NunjucksConfigs } from './types';
|
||||
export type { TemplateFilter, TemplateGlobal } from './types';
|
||||
|
||||
@@ -23,6 +23,3 @@ export type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
|
||||
export type TemplateGlobal =
|
||||
| ((...args: JsonValue[]) => JsonValue | undefined)
|
||||
| JsonValue;
|
||||
|
||||
/** @public */
|
||||
export type NunjucksConfigs = { trimBlocks?: boolean; lstripBlocks?: boolean };
|
||||
|
||||
Reference in New Issue
Block a user