teamix-evo 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1724,7 +1724,8 @@ var initCommand2 = new Command7("init").description(
1724
1724
  });
1725
1725
  async function resolveIdesAndScope(args) {
1726
1726
  const { opts } = args;
1727
- if (opts.ide || opts.yes) {
1727
+ const isInteractive = Boolean(process.stdin.isTTY);
1728
+ if (opts.ide || opts.yes || !isInteractive) {
1728
1729
  const ides = opts.ide ? parseIdeList(opts.ide) : [...ALL_IDE_KINDS];
1729
1730
  const scope = parseScope(opts.scope);
1730
1731
  if (ides.length === 0) {
@@ -2959,7 +2960,8 @@ var initCommand3 = new Command15("init").description(
2959
2960
  }
2960
2961
  });
2961
2962
  async function resolveConfig(opts) {
2962
- if (opts.yes) {
2963
+ const isInteractive = Boolean(process.stdin.isTTY);
2964
+ if (opts.yes || !isInteractive) {
2963
2965
  return {
2964
2966
  aliases: {
2965
2967
  components: opts.components ?? DEFAULT_UI_ALIASES.components,
@@ -4313,7 +4315,8 @@ var initCommand4 = new Command30("init").description(
4313
4315
  );
4314
4316
  process.exit(1);
4315
4317
  }
4316
- if (!opts.yes) {
4318
+ const isInteractive = Boolean(process.stdin.isTTY);
4319
+ if (!opts.yes && isInteractive) {
4317
4320
  const shouldContinue = await prompts6.confirm({
4318
4321
  message: "\u5373\u5C06\u5B89\u88C5 ESLint + Stylelint token-discipline \u89C4\u5219\u96C6\u5E76\u751F\u6210\u914D\u7F6E\u6587\u4EF6\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F"
4319
4322
  });