@plasmicapp/cli 0.1.163 → 0.1.164

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.
@@ -319,8 +319,8 @@ function syncProject(context, opts, projectIdsAndTokens, projectId, componentIds
319
319
  });
320
320
  }
321
321
  yield sync_global_variants_1.syncGlobalVariants(context, projectBundle.projectConfig, projectBundle.globalVariants, projectBundle.checksums, opts.baseDir);
322
- syncCodeComponentsMeta(context, projectId, projectBundle.codeComponentMetas);
323
322
  yield syncProjectConfig(context, projectBundle.projectConfig, projectApiToken, projectVersion, dependencies, projectBundle.components, opts.forceOverwrite, !!opts.appendJsxOnMissingBase, summary, pendingMerge, projectBundle.checksums, opts.baseDir);
323
+ syncCodeComponentsMeta(context, projectId, projectBundle.codeComponentMetas);
324
324
  yield sync_styles_1.upsertStyleTokens(context, projectBundle.usedTokens);
325
325
  yield sync_icons_1.syncProjectIconAssets(context, projectId, projectVersion, projectBundle.iconAssets, projectBundle.checksums, opts.baseDir);
326
326
  yield sync_images_1.syncProjectImageAssets(context, projectId, projectVersion, projectBundle.imageAssets, projectBundle.checksums);
@@ -340,13 +340,11 @@ function syncProjectConfig(context, projectBundle, projectApiToken, version, dep
340
340
  return __awaiter(this, void 0, void 0, function* () {
341
341
  const defaultCssFilePath = file_utils_1.defaultResourcePath(context, projectBundle.projectName, projectBundle.cssFileName);
342
342
  const isNew = !context.config.projects.find((p) => p.projectId === projectBundle.projectId);
343
- // If latest, use that as the range, otherwise set to latest published (>=0.0.0)
344
- const versionRange = semver.isLatest(version) ? version : ">=0.0.0";
345
343
  const projectConfig = config_utils_1.getOrAddProjectConfig(context, projectBundle.projectId, config_utils_1.createProjectConfig({
346
344
  projectId: projectBundle.projectId,
347
345
  projectApiToken,
348
346
  projectName: projectBundle.projectName,
349
- version: versionRange,
347
+ version,
350
348
  cssFilePath: defaultCssFilePath,
351
349
  }));
352
350
  // Update missing/outdated props
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/cli",
3
- "version": "0.1.163",
3
+ "version": "0.1.164",
4
4
  "description": "plasmic cli for syncing local code with Plasmic designs",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -556,8 +556,6 @@ async function syncProject(
556
556
  opts.baseDir
557
557
  );
558
558
 
559
- syncCodeComponentsMeta(context, projectId, projectBundle.codeComponentMetas);
560
-
561
559
  await syncProjectConfig(
562
560
  context,
563
561
  projectBundle.projectConfig,
@@ -572,6 +570,7 @@ async function syncProject(
572
570
  projectBundle.checksums,
573
571
  opts.baseDir
574
572
  );
573
+ syncCodeComponentsMeta(context, projectId, projectBundle.codeComponentMetas);
575
574
  await upsertStyleTokens(context, projectBundle.usedTokens);
576
575
  await syncProjectIconAssets(
577
576
  context,
@@ -629,8 +628,6 @@ async function syncProjectConfig(
629
628
  (p) => p.projectId === projectBundle.projectId
630
629
  );
631
630
 
632
- // If latest, use that as the range, otherwise set to latest published (>=0.0.0)
633
- const versionRange = semver.isLatest(version) ? version : ">=0.0.0";
634
631
  const projectConfig = getOrAddProjectConfig(
635
632
  context,
636
633
  projectBundle.projectId,
@@ -638,7 +635,7 @@ async function syncProjectConfig(
638
635
  projectId: projectBundle.projectId,
639
636
  projectApiToken,
640
637
  projectName: projectBundle.projectName,
641
- version: versionRange,
638
+ version,
642
639
  cssFilePath: defaultCssFilePath,
643
640
  })
644
641
  );