DenoDDeno
Powered by
hewlothereH
Denoβ€’15mo agoβ€’
1 reply
hewlothere

"Publishing" deno packages to a web accessible S3 and resolve deno.json workspace members?

Heya, I would like to publish some packages internally in our company by basically uploading them to a web accessible S3 bucket.

For example, if I had:
-
@mycompany/foo
@mycompany/foo
, it might live at
s3.internal.mycompany.com/pkgs/mycompany/foo
s3.internal.mycompany.com/pkgs/mycompany/foo
and be located in the
packages/foo
packages/foo
folder
-
@mycompany-cli/bar
@mycompany-cli/bar
it might live at
s3.internal.mycompany.com/pkgs/mycompany-cli/bar
s3.internal.mycompany.com/pkgs/mycompany-cli/bar
and be located in the
scripts/bar
scripts/bar
folder

How can I publish the
@mycompany-cli/bar
@mycompany-cli/bar
package to the S3 bucket so that it can correctly resolve the imports from
@mycompany/foo
@mycompany/foo
to be the S3 bucket URL?

Is it possible to send a header or something that has an import map?
Or would importing from https://s3.internal.mycompany.com/pkgs/mycompany-cli/bar automatically try to find a deno.json file at https://s3.internal.mycompany.com/pkgs/mycompany-cli/bar/deno.json ?

I would have a web server in front of the S3 bucket so I can send custom headers if needed. Would appreciate a lot if someone can help πŸ™‚
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Importing from Deno Workspace to NPM workspace
Amin NAIRIAAmin NAIRI / help
16mo ago
Deno workspace with sveltekit(package.json) import native deno library dependency
SikiSSiki / help
2y ago
Configure a deno.json to disregard package.json?
danthemanDdantheman / help
8mo ago