Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsr updating unwanted files #741

Open
Megakuul opened this issue Sep 26, 2024 · 0 comments
Open

jsr updating unwanted files #741

Megakuul opened this issue Sep 26, 2024 · 0 comments

Comments

@Megakuul
Copy link

I am trying to publish a sveltekit adapter to jsr, but I have encountered a problem. The adapter relies on some js files (shims.js & lambda-handler.js) that serve as the basis for the adapter and are compiled by the adapter itself (using esbuild). When I upload the js files, jsr modifies their imports (probably because they are not specified in the package.json) by converting them to deno-like paths, for example:

import { installPolyfills } from '@sveltejs/kit/node/polyfills'; -> import { installPolyfills } from 'npm:@sveltejs/kit@^2.5.28/node/polyfills';

It also adds ./ prefix to my import macros:

import 'SHIMS'; -> import './SHIMS';

These files are not part of the package's js code and are not intended to be included or processed in this way. Instead, they are like assets that need to be included in the package.

Is there a way to include those js files in the package without processing them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant