{"id":"egomoose/wally-package-access","name":"wally-package-access","scope":"egomoose","platform":"roblox","description":"Provides access to other wally dependencies as instances instead of requiring them","version":"0.2.1","latest":"0.2.1","versions":["0.1.0","0.1.1","0.1.2","0.2.0","0.2.1"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"29d69849d303b991bdf836f484cd0e24c44b46634ede4fea9c7899b26ee37d35","likes":0,"downloads":0,"install":"forest install egomoose/wally-package-access","url":"https://forest.dev/p/roblox/egomoose/wally-package-access","files":"https://api.forest.dev/ai/package/roblox/egomoose/wally-package-access/files","readme":"Provides access to other wally dependencies as instances instead of requiring them\r\n\r\nTo be clear you probably shouldn't be using this module unless you want some quick and hacky code. I'll give some context on why I decided to write this package anyways...\r\n\r\n### The Story\r\n\r\nLately I've been using this [package](https://github.com/sircfenner/StudioComponents). At the time of writing there's no public access to any of the constants. If I want to write a component that builds on top of this package I am unable to to use the same constants as the package. This left me with two options:\r\n\r\n1. Make a duplicate of the constants module and put it in my own project.\r\n2. Fork the repository, make the constants public, and publish my own version of the package.\r\n\r\nSuffice to say, I wasn't thrilled about doing either.\r\n\r\n### This package\r\n\r\nThis package helps solve that problem b/c it provides a dictionary of all the wally packages in the same folder where the key leads to the package as an instance instead of what's returned by require.\r\n\r\nFor example,\r\n\r\nIf my dependencies are:\r\n```\r\n[dependencies]\r\nStudioComponents = \"sircfenner/studiocomponents@0.1.1\"\r\nWallyPackageAccess = \"egomoose/wally-package-access@0.1.1\"\r\n```\r\n\r\nI could get access to the constants module now by doing the following:\r\n\r\n```Lua\r\nlocal WallyPackageAccess = require(Packages.WallyPackageAccess)\r\nlocal StudioComponentsModule = WallyPackageAccess.StudioComponents\r\n\r\nlocal Constants = require(StudioComponentsModule.Constants)\r\n```\r\n\r\n","readmeTruncated":false}