UNPKG

@tokens-studio/sdk

Version:
10 lines 493 B
import { prompt as _prompt } from '@tokens-studio/cli-kit'; // We wrap prompt in a wrapper to check for test env, so we don't have to deal with STDIN manipulation in our tests. export const prompt = async (questions, options, fallback) => { if (process.env.CI || process.env.NODE_ENV === 'test') { return { [fallback.name]: fallback.value }; } // @ts-expect-error not actually infinite return _prompt(questions, options, fallback); }; //# sourceMappingURL=prompt.js.map