-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
publishingProblems with publishingProblems with publishing
Description
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?
Metadata
Metadata
Assignees
Labels
publishingProblems with publishingProblems with publishing
Type
Projects
Status
Ready