An open source design system that's fully customizable and agent ready
TypeScript
cli: drop the unused gpt-tokenizer peer (#6508)
Joeyc13ef6bc576e
diff --git a/.changeset/cli-drop-gpt-tokenizer-peer.md b/.changeset/cli-drop-gpt-tokenizer-peer.mdnew file mode 100644index 0000000000..b0db2693c9--- /dev/null+++ b/.changeset/cli-drop-gpt-tokenizer-peer.md@@ -0,0 +1,7 @@+---+'@astryxdesign/cli': patch+---++[fix] Drop `gpt-tokenizer` from the CLI's peer dependencies. Nothing in the CLI imports it, but npm and pnpm install a required peer by default, so every install of the CLI pulled in about 53 MB it never used.++@josephfarinadiff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 8eeafcfcc6..942711a52d 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -117,8 +117,7 @@"@astryxdesign/charts": "*","@astryxdesign/core": "*","@astryxdesign/lab": "*",- "@astryxdesign/theme-neutral": "*",- "gpt-tokenizer": "^3.4.0"+ "@astryxdesign/theme-neutral": "*"},"peerDependenciesMeta": {"@astryxdesign/charts": {@@ -142,7 +141,6 @@"@heroicons/react": "^2.2.0","@stylexjs/stylex": "catalog:","@types/babel__core": "^7.20.5",- "gpt-tokenizer": "^3.4.0","lucide-react": "^1.18.0","recharts": "^3.9.2"}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2111f4eec4..ed96dec930 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -806,9 +806,6 @@ importers:'@types/babel__core':specifier: ^7.20.5version: 7.20.5- gpt-tokenizer:- specifier: ^3.4.0- version: 3.4.0lucide-react:specifier: ^1.18.0version: 1.23.0([email protected])@@ -4976,9 +4973,6 @@ packages:resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-wxFLnhIXTDjYebd9A9pGl3e31ZpSypbpIJSOswbgop5jLte/AsZVDvjlbEuVFlsqZixVKqbcoNmRlFDf6pz/UQ==}-resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}@@ -10820,8 +10814,6 @@ snapshots:- [email protected]: {}-