teamix-evo 0.18.1 → 0.18.3

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.
@@ -2739,7 +2739,8 @@ async function detectProjectState2(cwd) {
2739
2739
  const absCwd = path15.resolve(cwd);
2740
2740
  const teamixDir = getTeamixDir(absCwd);
2741
2741
  const hasTeamixDir = await fileExists(teamixDir);
2742
- if (hasTeamixDir) {
2742
+ const hasTeamixConfig = hasTeamixDir && await fileExists(path15.join(teamixDir, "config.json"));
2743
+ if (hasTeamixDir && hasTeamixConfig) {
2743
2744
  return {
2744
2745
  state: "teamix-evo",
2745
2746
  cwd: absCwd,
@@ -2802,7 +2803,7 @@ async function detectProjectState2(cwd) {
2802
2803
  }
2803
2804
  }
2804
2805
  }
2805
- if ("@alifd/next" in allDeps || "@ali/teamix-material" in allDeps) {
2806
+ if ("@alifd/next" in allDeps || "@ali/teamix-material" in allDeps || "@ali/teamix" in allDeps) {
2806
2807
  legacyLib = "fusion";
2807
2808
  } else if ("antd" in allDeps) {
2808
2809
  legacyLib = "antd";
@@ -3991,7 +3992,7 @@ var GITIGNORE_RULES2 = [
3991
3992
  var LEGACY_LIB_META = {
3992
3993
  fusion: {
3993
3994
  displayName: "Fusion Design",
3994
- imports: ["teamix/ui", "@alifd/next", "@ali/teamix-material"]
3995
+ imports: ["teamix/ui", "@alifd/next", "@ali/teamix-material", "@ali/teamix"]
3995
3996
  },
3996
3997
  antd: {
3997
3998
  displayName: "Ant Design",