@eide/foir-cli 0.22.0 → 0.23.0

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/cli.js CHANGED
@@ -5627,11 +5627,7 @@ function registerPushCommand(program2, globalOpts) {
5627
5627
  false
5628
5628
  ).option(
5629
5629
  "--publish",
5630
- "Promote updated models, operations, auth providers, and profile schema to the published channel after the push. New resources auto-publish; this flag covers updates, which are otherwise left as drafts.",
5631
- false
5632
- ).option(
5633
- "--publish-tokens",
5634
- "Promote applied design tokens to the published channel after the push. Without this flag, tokens land on the draft channel and the storefront keeps serving the last published snapshot.",
5630
+ "Promote updated models, operations, auth providers, profile schema, and design tokens to the published channel after the push. New resources auto-publish; this flag covers updates, which are otherwise left as drafts.",
5635
5631
  false
5636
5632
  ).option("--env <path>", "Path to .env file (default: .env)").action(
5637
5633
  withErrorHandler(
@@ -5693,7 +5689,7 @@ function registerPushCommand(program2, globalOpts) {
5693
5689
  tenantId: resolved?.project.tenantId,
5694
5690
  projectId: resolved?.project.id,
5695
5691
  force: opts.force ?? false,
5696
- publishDesignTokens: opts.publishTokens ?? false
5692
+ publishDesignTokens: opts.publish ?? false
5697
5693
  });
5698
5694
  } catch (e) {
5699
5695
  if (e instanceof PushConflictError) {
@@ -5756,6 +5752,7 @@ function registerPushCommand(program2, globalOpts) {
5756
5752
  if (publishCounts.authProviders)
5757
5753
  lines.push(`${publishCounts.authProviders} auth providers`);
5758
5754
  if (publishCounts.profileSchema) lines.push("profile schema");
5755
+ if (summary.designTokensPublished) lines.push("design tokens");
5759
5756
  console.log();
5760
5757
  if (lines.length > 0) {
5761
5758
  console.log(
@@ -5766,7 +5763,7 @@ function registerPushCommand(program2, globalOpts) {
5766
5763
  chalk6.dim(" Nothing to publish (no resources were updated).")
5767
5764
  );
5768
5765
  }
5769
- } else if (summary.updatedModelIds.length + summary.updatedOperationIds.length + summary.updatedAuthProviderIds.length > 0 || summary.profileSchemaUpdated) {
5766
+ } else if (summary.updatedModelIds.length + summary.updatedOperationIds.length + summary.updatedAuthProviderIds.length > 0 || summary.profileSchemaUpdated || summary.designTokensUpdated) {
5770
5767
  console.log();
5771
5768
  console.log(
5772
5769
  chalk6.dim(
@@ -385,7 +385,7 @@ interface ApplyConfigInput {
385
385
  /**
386
386
  * W3C-formatted design tokens document for this project. Reconciled by
387
387
  * `foir push` — the document is applied verbatim to the draft channel.
388
- * Add `--publish-tokens` to promote draft → published in the same push.
388
+ * Add `--publish` to promote draft → published in the same push.
389
389
  */
390
390
  designTokens?: ApplyConfigDesignTokensInput;
391
391
  [key: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eide/foir-cli",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Universal platform CLI for Foir platform",
5
5
  "type": "module",
6
6
  "publishConfig": {