Skip to content

feat(test): experiment unplugin with tgz published.#1779

Merged
samchon merged 13 commits into
masterfrom
test/experimental
Mar 11, 2026
Merged

feat(test): experiment unplugin with tgz published.#1779
samchon merged 13 commits into
masterfrom
test/experimental

Conversation

@samchon
Copy link
Copy Markdown
Owner

@samchon samchon commented Mar 10, 2026

This pull request introduces a new experiment workflow and directory structure for testing local tarball builds of packages, along with updates to package installation and documentation. The changes streamline the process of building, storing, and testing .tgz package tarballs, and add a dedicated experiment for the @typia/unplugin package. Additionally, several documentation and code comments are updated for clarity and correctness.

Experiment workflow and tarball management:

  • Added .github/workflows/experiments.yml to automate building tarballs and testing the unplugin experiment on Ubuntu CI, including dependency installation and running tests.
  • Moved and refactored tarball build script from website/build/tgz.js to experiments/tarballs/index.js, simplifying directory management and tarball output.
  • Added .gitignore to exclude .tgz files in experiments/tarballs, and a README.md describing the purpose of the directory. [1] [2]
  • Updated the root package.json to use the new tarball build script location.

Unplugin experiment setup:

  • Created experiments/unplugin with a package.json that installs @typia/unplugin and typia from locally built tarballs, and sets up testing with vitest.
  • Added a basic test file (src/is.spec.ts) to verify typia.is functionality.
  • Added a tsconfig.json with TypeScript and transformer plugin configuration.
  • Added vitest.config.mts to configure testing and plugin usage.

Documentation and code comment updates:

  • Updated example import paths in multiple packages/unplugin/src/* files to reference the new package scope (@ryoppippi/unplugin-typia) for clarity in documentation. [1] [2] [3] [4] [5] [6] [7] [8]
  • Fixed typos in code comments and documentation, such as "optiosn" and "alais". [1] [2]
  • Added a note about incorrect function typing in bun.ts.

Peer dependency update:

  • Changed typia peer dependency in packages/unplugin/package.json to use workspace versioning for better compatibility with local builds.

Code cleanup:

  • Removed unused Svelte language support code from packages/unplugin/src/core/languages/svelte.js.

@samchon samchon self-assigned this Mar 10, 2026
@samchon samchon added the enhancement New feature or request label Mar 10, 2026
@samchon samchon marked this pull request as ready for review March 10, 2026 16:16
Copilot AI review requested due to automatic review settings March 10, 2026 16:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new experiment workflow and directory structure for testing @typia/unplugin with locally-built tarballs. It moves the tarball build script from website/build/tgz.js to experiments/tarballs/index.js, creates a new experiments/unplugin project that installs packages from tarballs and runs vitest tests, and adds a GitHub Actions workflow to automate this. It also removes committed snapshot files from tests/test-unplugin (now gitignored), adds external to the tsdown config, removes compiled svelte language files, and updates documentation examples.

Changes:

  • Added experiments infrastructure: tarball build script relocation, unplugin experiment project with vitest setup, and CI workflow
  • Removed committed test snapshots from tests/test-unplugin (now auto-generated and gitignored), and cleaned up compiled output files (tsdown.config.js, tsdown.config.d.ts, svelte .js/.d.ts)
  • Updated documentation comment import paths across all unplugin entry files and added external config and workspace:^ peer dependency

Reviewed changes

Copilot reviewed 65 out of 69 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
.github/workflows/experiments.yml New CI workflow to build tarballs and test the unplugin experiment
experiments/tarballs/index.js Refactored tarball build script; copies to experiments/tarballs/ directly
experiments/tarballs/.gitignore Ignore generated .tgz files
experiments/tarballs/README.md Brief description of the tarballs directory
experiments/unplugin/package.json New experiment project installing from local tarballs
experiments/unplugin/vitest.config.mts Vitest config with UnpluginTypia plugin
experiments/unplugin/tsconfig.json TypeScript config for the experiment
experiments/unplugin/src/is.spec.ts Basic typia.is test
package.json Updated package:tgz script path
website/package.json Updated tarball dependency paths
packages/unplugin/package.json Changed typia peer dep to workspace:^
packages/unplugin/tsdown.config.ts Added external for typescript and typia
packages/unplugin/tsdown.config.js Removed compiled config output
packages/unplugin/tsdown.config.d.ts Removed compiled config type declarations
packages/unplugin/src/bun.ts Updated doc examples and added comment about incorrect typing
packages/unplugin/src/esbuild.ts Updated doc example import path
packages/unplugin/src/farm.ts Updated doc example import path
packages/unplugin/src/next.ts Updated doc example import path
packages/unplugin/src/rolldown.ts Updated doc example import path
packages/unplugin/src/rollup.ts Updated doc example import path
packages/unplugin/src/rspack.ts Updated doc example import path
packages/unplugin/src/vite.ts Updated doc example import path
packages/unplugin/src/webpack.ts Updated doc example import path
packages/unplugin/src/core/languages/svelte.js Removed compiled JS (TS source remains)
packages/unplugin/src/core/languages/svelte.d.ts Removed compiled declarations (TS source remains)
tests/test-unplugin/package.json Added repository/author/license metadata
tests/test-unplugin/.gitignore Added gitignore for auto-generated snapshots
tests/test-unplugin/tests/fixtures/__snapshots__/* Removed committed snapshot files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/unplugin/src/esbuild.ts Outdated
Comment thread experiments/unplugin/package.json
Comment thread packages/unplugin/src/rollup.ts Outdated
Comment thread packages/unplugin/src/rspack.ts Outdated
Comment thread packages/unplugin/src/next.ts Outdated
Comment thread packages/unplugin/src/bun.ts Outdated
Comment thread website/package.json
Comment thread packages/unplugin/src/vite.ts Outdated
Comment thread packages/unplugin/src/rolldown.ts Outdated
Comment thread packages/unplugin/src/webpack.ts Outdated
@samchon samchon merged commit 803b6f4 into master Mar 11, 2026
7 checks passed
@samchon samchon deleted the test/experimental branch March 11, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants