Skip to content

chore(pie-design-tokens): DSW-4183 move package to monorepo#3028

Merged
siggerzz merged 5 commits into
mainfrom
dsw-4183-pie-design-tokens
Jul 17, 2026
Merged

chore(pie-design-tokens): DSW-4183 move package to monorepo#3028
siggerzz merged 5 commits into
mainfrom
dsw-4183-pie-design-tokens

Conversation

@siggerzz

@siggerzz siggerzz commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Describe your changes (can list changeset entries if preferable)

  • Migrates the pie-design-tokens package to the monorepo
  • Fixes a bug in pie-token-map that allowed committed generated files to be out of date with source
Screenshot 2026-07-16 at 16 24 44 Screenshot 2026-07-16 at 16 24 04

NPM Snapshot publishing:
Screenshot 2026-07-16 at 16 55 28

Screenshot 2026-07-16 at 16 27 57

Modifying a global token value and running pie-docs locally
Screenshot 2026-07-17 at 10 55 25

Author Checklist (complete before requesting a review, do not delete any)

  • I have performed a self-review of my code.
  • I have added thorough tests where applicable (unit / component / visual).
  • I have reviewed the PIE Storybook/PIE Docs PR preview.
  • I have reviewed visual test updates properly before approving.
  • If changes will affect consumers of the package, I have created a changeset entry.
  • If a changeset file has been created, I have tested these changes in PIE Aperture using the /test-aperture command.

Not-applicable Checklist items

Please move any Author checklist items that do not apply to this pull request here.


Reviewer checklists (complete before approving)

Mark items as [-] N/A if not applicable.

Reviewer 1

  • I have reviewed the PIE Storybook/PIE Docs PR preview.
  • I have verified that all acceptance criteria for this ticket have been completed.

Reviewer 2

  • I have reviewed the PIE Storybook/PIE Docs PR preview.
  • I have verified that all acceptance criteria for this ticket have been completed.

@siggerzz
siggerzz requested a review from a team as a code owner July 16, 2026 14:34
@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 735e781

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@justeat/pie-design-tokens Patch
@justeattakeaway/pie-docs Patch
@justeattakeaway/pie-storybook Patch
@justeattakeaway/pie-css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/tools/pie-design-tokens/design-changelog.md Outdated
Comment thread packages/tools/pie-design-tokens/compare-csv.js Fixed
Comment thread packages/tools/pie-design-tokens/package.json Outdated
Comment thread packages/tools/pie-token-map/src/generated/color-map.ts
@siggerzz

Copy link
Copy Markdown
Contributor Author

/snapit

@pie-design-system-app

Copy link
Copy Markdown
Contributor

Starting a new snapshot build. You can view the logs here.

Comment thread package.json
@pie-design-system-app

Copy link
Copy Markdown
Contributor

@siggerzz Your snapshots have been published to npm!

Test the snapshots by updating your package.json with the newly-published versions:

Note

If you have more than one of these packages installed, we suggest using the new snapshots for all of them to help avoid version conflicts.

yarn up @justeattakeaway/pie-css@0.0.0-snapshot-release-20260716155412 --mode=update-lockfile
yarn up @justeat/pie-design-tokens@0.0.0-snapshot-release-20260716155412 --mode=update-lockfile

Then finally:

yarn install

@siggerzz

Copy link
Copy Markdown
Contributor Author

/test-aperture

@pie-design-system-app

Copy link
Copy Markdown
Contributor

Starting a new snapshot build. You can view the logs here.

@pie-design-system-app

Copy link
Copy Markdown
Contributor

@siggerzz Your snapshots have been published to npm!

Test the snapshots by updating your package.json with the newly-published versions:

Note

If you have more than one of these packages installed, we suggest using the new snapshots for all of them to help avoid version conflicts.

yarn up @justeattakeaway/pie-css@0.0.0-snapshot-release-20260716155855 --mode=update-lockfile
yarn up @justeat/pie-design-tokens@0.0.0-snapshot-release-20260716155855 --mode=update-lockfile

Then finally:

yarn install

@pie-design-system-app

Copy link
Copy Markdown
Contributor

🚀 Aperture PR created: justeattakeaway/pie-aperture#527

App deployments will appear under the Deployments section of this PR shortly!

Updated 16 Jul 2026, 16:02 UTC · PIE @ 96cdf05 · workflow run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates @justeat/pie-design-tokens into the PIE monorepo and updates related tooling so token-derived/generated artifacts and snapshot publishing workflows remain correct (including supporting packages published under both @justeat/* and @justeattakeaway/*).

Changes:

  • Added the @justeat/pie-design-tokens workspace package (scripts, build pipeline, platform overrides, metadata, and tests).
  • Updated pie-token-map generated maps + version to align with tokens 7.14.1.
  • Updated snapshot tooling to preserve package scopes and expanded tag parsing to match both @justeat/* and @justeattakeaway/*, plus CI verification for generated outputs.

Reviewed changes

Copilot reviewed 45 out of 51 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/tools/pie-token-map/src/generated/version.ts Bumps recorded tokens version to 7.14.1.
packages/tools/pie-token-map/src/generated/radius-map.ts Adds newly generated radius aliases (rounded-f, rounded-g).
packages/tools/pie-token-map/src/generated/color-map.ts Adds newly generated color alias (thirdparty-morrisons-container-primary).
packages/tools/pie-monorepo-utils/changeset-snapshot/utils.js Expands snapshot tag parsing to match both @justeat/* and @justeattakeaway/*.
packages/tools/pie-monorepo-utils/changeset-snapshot/test-aperture.js Preserves published package scope when building Aperture dispatch payload.
packages/tools/pie-monorepo-utils/tests/changeset-snapshot/test-aperture.spec.js Adds coverage ensuring scopes are preserved and comments match /snapit.
packages/tools/pie-monorepo-utils/tests/changeset-snapshot/create-and-publish.spec.js Adds coverage for @justeat/* packages in snapshot publish comments.
packages/tools/pie-design-tokens/turbo.json Adds turborepo task wiring for test:output dependency.
packages/tools/pie-design-tokens/README.md Introduces monorepo-local contributor guidance for the tokens package.
packages/tools/pie-design-tokens/platform/web.jsonc Adds/defines web platform overrides (e.g. numeric font weights).
packages/tools/pie-design-tokens/platform/ios.jsonc Adds/defines iOS platform overrides (e.g. font weight name suffixes).
packages/tools/pie-design-tokens/platform/android.jsonc Adds/defines Android platform overrides.
packages/tools/pie-design-tokens/package.json Adds workspace package manifest for @justeat/pie-design-tokens at 7.14.1.
packages/tools/pie-design-tokens/metadata/tokenCategories.json Adds token category structure metadata for consumers/docs.
packages/tools/pie-design-tokens/LICENSE Adds Apache-2.0 license file for the migrated package.
packages/tools/pie-design-tokens/jest.config.output.js Adds Jest config for output snapshot tests.
packages/tools/pie-design-tokens/jest.config.js Adds Jest config for unit tests (excluding output snapshots).
packages/tools/pie-design-tokens/index.js Adds build orchestrator entrypoint for compiling tokens to dist/.
packages/tools/pie-design-tokens/design-changelog.md Adds design-oriented changelog carried over with the package.
packages/tools/pie-design-tokens/csv_export.csv Adds CSV export used by comparison tooling.
packages/tools/pie-design-tokens/compare-csv.js Adds script to compare JSONC tokens with CSV export.
packages/tools/pie-design-tokens/CLAUDE.md Adds agent tooling pointer file.
packages/tools/pie-design-tokens/CHANGELOG.md Adds package changelog history through v7.14.1.
packages/tools/pie-design-tokens/build/tests/testObjects.js Adds shared test fixtures for build script tests.
packages/tools/pie-design-tokens/build/tests/output/distOutput.spec.js Adds snapshot tests for generated dist/* outputs.
packages/tools/pie-design-tokens/build/tests/helpers.spec.js Adds tests for build helpers (formatting/conversion/filtering).
packages/tools/pie-design-tokens/build/tests/compileToXml.spec.js Adds tests for XML compilation output.
packages/tools/pie-design-tokens/build/tests/compileToScss.spec.js Adds tests for SCSS compilation output.
packages/tools/pie-design-tokens/build/tests/compileToJson.spec.js Adds tests for JSON compilation output.
packages/tools/pie-design-tokens/build/tests/compileToCss.spec.js Adds tests for CSS + HSL output compilation.
packages/tools/pie-design-tokens/build/tests/snapshots/helpers.spec.js.snap Adds snapshots for helper test outputs.
packages/tools/pie-design-tokens/build/tests/snapshots/compileToXml.spec.js.snap Adds snapshots for XML compiler tests.
packages/tools/pie-design-tokens/build/tests/snapshots/compileToScss.spec.js.snap Adds snapshots for SCSS compiler tests.
packages/tools/pie-design-tokens/build/tests/snapshots/compileToJson.spec.js.snap Adds snapshots for JSON compiler tests.
packages/tools/pie-design-tokens/build/tests/snapshots/compileToCss.spec.js.snap Adds snapshots for CSS compiler tests.
packages/tools/pie-design-tokens/build/helpers.js Adds shared build helper utilities (formatting, platform overrides, conversions).
packages/tools/pie-design-tokens/build/compileToXml.js Adds XML build pipeline (Android colors export).
packages/tools/pie-design-tokens/build/compileToScss.js Adds SCSS build pipeline (web token exports).
packages/tools/pie-design-tokens/build/compileToJson.js Adds JSON build pipeline (alias resolution).
packages/tools/pie-design-tokens/build/compileToCss.js Adds CSS + HSL build pipeline (including dark-mode rules).
packages/tools/pie-design-tokens/AGENTS.md Adds agent/contributor guidance specific to tokens package.
packages/tools/pie-design-tokens/.eslintrc.js Adds lint overrides for Jest test files.
packages/tools/pie-design-tokens/.babelrc Adds Babel config stub for Jest tooling expectations.
package.json Switches tokens dependency to workspace and adds generate:verify/test:output turbo scripts.
.github/workflows/ci.yml Adds CI step to fail when committed generated files are out of date.
.cz-config.js Updates scope derivation to handle both @justeat/* and @justeattakeaway/*.
.changeset/polite-frogs-laugh.md Adds changeset entry for the tokens package migration.

Comment thread packages/tools/pie-design-tokens/build/tests/helpers.spec.js
Comment thread packages/tools/pie-design-tokens/build/tests/helpers.spec.js
Comment thread packages/tools/pie-design-tokens/package.json
Comment thread packages/tools/pie-design-tokens/README.md
Comment thread packages/tools/pie-design-tokens/index.js
Comment thread packages/tools/pie-design-tokens/AGENTS.md Outdated
@siggerzz
siggerzz force-pushed the dsw-4183-pie-design-tokens branch from 96cdf05 to 735e781 Compare July 17, 2026 09:28
@siggerzz
siggerzz merged commit a616d05 into main Jul 17, 2026
91 of 104 checks passed
@siggerzz
siggerzz deleted the dsw-4183-pie-design-tokens branch July 17, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants