Replies: 4 comments 9 replies
-
|
I think configFiles should cover this... These are files that are included when you initialize the registry. They can be optional or required. Take a look at the docs here and lmk if that works for you use case |
Beta Was this translation helpful? Give feedback.
-
|
I thought that the config files are copied over in your project when initialising the JSRepo? The files that I would like to copy over are block specific. I guess it would be like a block specific config file. |
Beta Was this translation helpful? Give feedback.
-
|
This has been implemented in #623 |
Beta Was this translation helpful? Give feedback.
-
|
I'm afraid I have encountered a new issue. I've done some digging and this line seems to be causing the issue: Every file response is parsed as a text file. This results in the zip file being corrupted when added to you project via the As a quick POC I added the following code locally: This works nicely at runtime but causes a lot of cascading typescript problems since most of the codebase makes the assumption that all files are text based. I don't think this will be a quick fix, this is the only solution I can think of right now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently creating a small registry to share AWS CDK stacks.
Often these stacks might depend on some non JS files/assets. In my case it is a lambda layer ZIP file.
If I understand the docs correctly, I don't think this is possible right now.
I'm guessing this would be somewhat related to the sidecar files referenced in this issue.
It would be sufficient for my use case that these assets are copied without any diffing for changes. Just a hard copy.
The hard part would be that these files are not referenced by any imports. Only by a string parameter containing the path in my case.
I would be open to create a PR given some pointers.
Beta Was this translation helpful? Give feedback.
All reactions