Closed vitran12 closed 3 months ago
The recent changes to the package.json
file enhance the project's build process. They introduce dedicated scripts for compiling TypeScript into ESM and CJS formats, automate the copying of styled system files, and ensure that Storybook is built before deployment. These updates streamline and organize the build pipeline, allowing for more efficient development and deployment workflows.
File | Change Summary |
---|---|
package.json |
Updated build script to generate code and copy styled system files. Added build:esm , build:cjs , copy:styled-system , and predeploy scripts. |
sequenceDiagram
participant Developer
participant PackageScript
participant TypeScriptCompiler as TypeScript Compiler
participant FileManager as File Manager
participant StorybookBuilder as Storybook Builder
Developer->>+PackageScript: Run build script
PackageScript->>TypeScriptCompiler: Compile to ESM
TypeScriptCompiler-->>PackageScript: ESM output
PackageScript->>TypeScriptCompiler: Compile to CJS
TypeScriptCompiler-->>PackageScript: CJS output
PackageScript->>FileManager: Copy styled system files
FileManager-->>PackageScript: Files copied
Developer->>+PackageScript: Run predeploy script
PackageScript->>StorybookBuilder: Build Storybook
StorybookBuilder-->>PackageScript: Storybook built
Amidst the bytes and scripts so grand,
Our build process now takes a stand!
With ESM and CJS in tow,
And styled files in a row,
Storybook shines where stories expand.
CodeRabbit cheers with a joyful band!
🐰✨🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What this PR does / why we need it:
Special notes for your reviewer:
Which issue(s) this PR fixes:
Fixes #
Checklist:
Summary by CodeRabbit
build:esm
andbuild:cjs
).predeploy
script to build Storybook before deployment.