Switch to npm link for using local libs#37
Merged
willeastcott merged 2 commits intomainfrom Jan 6, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR transitions from using module aliasing to using npm link for local library development, updating all imports to use the scoped @playcanvas/pcui package name and removing the build-time aliasing infrastructure.
Key changes:
- Removed Rollup alias plugin and related environment-based module resolution logic
- Updated all source file imports from
pcuito@playcanvas/pcui - Cleaned up TypeScript path mappings that are no longer needed
Reviewed changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Removed @rollup/plugin-alias and cross-env dependencies, and the develop:local script |
| rollup.config.mjs | Removed alias plugin configuration and environment-based path resolution logic |
| tsconfig.json | Removed paths mapping for pcui and playcanvas modules |
| src/*.ts (12 files) | Updated imports from pcui to @playcanvas/pcui across all source files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
slimbuck
approved these changes
Jan 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates how the
pcuilibrary is imported and simplifies the build configuration by removing module aliasing and related dependencies. The most significant changes are the switch to using the scoped@playcanvas/pcuipackage throughout the codebase and the removal of Rollup alias configuration and associated scripts.Dependency and build configuration changes:
@rollup/plugin-aliasandcross-envdependencies frompackage.json, along with thedevelop:localscript, simplifying the build setup. [1] [2]rollup.config.mjs, including the plugin import, alias entry definitions, and usage in the plugins array. [1] [2]Codebase-wide import updates:
pcuito use the scoped package@playcanvas/pcuiin every source file, ensuring consistency with the package name and future compatibility. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]