@plasmicapp/cli 0.1.341 → 0.1.342

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.
@@ -101,6 +101,10 @@ function removeMissingFilesFromLock(
101
101
  return knownProjects[project.projectId].globalContextsFilePath;
102
102
  case "splitsProvider":
103
103
  return knownProjects[project.projectId].splitsProviderFilePath;
104
+ case "projectModule":
105
+ return knownProjects[project.projectId].projectModuleFilePath;
106
+ case "styleTokensProvider":
107
+ return knownProjects[project.projectId].styleTokensProviderFilePath;
104
108
  }
105
109
  });
106
110
 
@@ -243,6 +247,30 @@ async function resolveMissingFilesInConfig(
243
247
  baseNameToFiles
244
248
  )) || project.splitsProviderFilePath;
245
249
 
250
+ if (!project.styleTokensProviderFilePath) {
251
+ project.styleTokensProviderFilePath = "";
252
+ }
253
+
254
+ // Try to find the file, otherwise recreate at either the specified path or default path (if both are falsey)
255
+ project.styleTokensProviderFilePath =
256
+ (await attemptToRestoreFilePath(
257
+ context,
258
+ project.styleTokensProviderFilePath,
259
+ baseNameToFiles
260
+ )) || project.styleTokensProviderFilePath;
261
+
262
+ if (!project.projectModuleFilePath) {
263
+ project.projectModuleFilePath = "";
264
+ }
265
+
266
+ // Try to find the file, otherwise recreate at either the specified path or default path (if both are falsey)
267
+ project.projectModuleFilePath =
268
+ (await attemptToRestoreFilePath(
269
+ context,
270
+ project.projectModuleFilePath,
271
+ baseNameToFiles
272
+ )) || project.projectModuleFilePath;
273
+
246
274
  project.images = await filterFiles(project.images, "filePath");
247
275
  project.icons = await filterFiles(project.icons, "moduleFilePath");
248
276