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.
- package/dist/core/index.js +4 -3
- package/dist/core/index.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -8498,7 +8498,8 @@ async function detectProjectState(cwd) {
|
|
|
8498
8498
|
const absCwd = path36.resolve(cwd);
|
|
8499
8499
|
const teamixDir = getTeamixDir(absCwd);
|
|
8500
8500
|
const hasTeamixDir = await fileExists(teamixDir);
|
|
8501
|
-
|
|
8501
|
+
const hasTeamixConfig = hasTeamixDir && await fileExists(path36.join(teamixDir, "config.json"));
|
|
8502
|
+
if (hasTeamixDir && hasTeamixConfig) {
|
|
8502
8503
|
return {
|
|
8503
8504
|
state: "teamix-evo",
|
|
8504
8505
|
cwd: absCwd,
|
|
@@ -8561,7 +8562,7 @@ async function detectProjectState(cwd) {
|
|
|
8561
8562
|
}
|
|
8562
8563
|
}
|
|
8563
8564
|
}
|
|
8564
|
-
if ("@alifd/next" in allDeps || "@ali/teamix-material" in allDeps) {
|
|
8565
|
+
if ("@alifd/next" in allDeps || "@ali/teamix-material" in allDeps || "@ali/teamix" in allDeps) {
|
|
8565
8566
|
legacyLib = "fusion";
|
|
8566
8567
|
} else if ("antd" in allDeps) {
|
|
8567
8568
|
legacyLib = "antd";
|
|
@@ -9867,7 +9868,7 @@ var GITIGNORE_RULES2 = [
|
|
|
9867
9868
|
var LEGACY_LIB_META = {
|
|
9868
9869
|
fusion: {
|
|
9869
9870
|
displayName: "Fusion Design",
|
|
9870
|
-
imports: ["teamix/ui", "@alifd/next", "@ali/teamix-material"]
|
|
9871
|
+
imports: ["teamix/ui", "@alifd/next", "@ali/teamix-material", "@ali/teamix"]
|
|
9871
9872
|
},
|
|
9872
9873
|
antd: {
|
|
9873
9874
|
displayName: "Ant Design",
|
|
@@ -10213,7 +10214,7 @@ async function getLegacyLibVersion(cwd, legacyLib) {
|
|
|
10213
10214
|
const pkg = JSON.parse(pkgRaw);
|
|
10214
10215
|
const allDeps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
10215
10216
|
const libKeyMap = {
|
|
10216
|
-
fusion: ["@alifd/next", "@ali/teamix-material"],
|
|
10217
|
+
fusion: ["@alifd/next", "@ali/teamix-material", "@ali/teamix"],
|
|
10217
10218
|
antd: ["antd"],
|
|
10218
10219
|
element: ["element-ui", "element-plus"]
|
|
10219
10220
|
};
|