Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type SelectMethod = (context: { projectRoot: string; force: boolean }) => Promise;
type EnabledMethod = (context: { projectRoot: string; force: boolean }) => Promise;
type CustomizeOption = {
name: string;
type: 'custom' | 'required' | 'extra';
destinationPath: (projectRoot: string) => string;
templatePath?: string;
description: string;
onSelectAsync: SelectMethod;
onEnabledAsync: EnabledMethod;
};
const generatedTag = `@generated: @expo/next-adapter@${
require('@expo/next-adapter/package.json').version
}`;
function createJSTag(): string {
return `// ${generatedTag}`;
}
function createBashTag(): string {
return `# ${generatedTag}`;
}
async function copyFileAsync(
from: string,
to: string,
force: boolean,
tag?: string
): Promise {