Skip to content

Change "svelte" path in package.json in root during dev and in package dir after npm run package #2242

@frederikhors

Description

@frederikhors

Describe the problem

When developing a package I would like to have "svelte": "src/lib/index.ts" in my package.json (using it with npm link) but when I build I would like it changed to "svelte": "index.js" in package dir.

Is this already possible and I don't know?

I'm using "@sveltejs/kit": "1.0.0-next.153" with it skeleton project.

Describe the proposed solution

Transform that path in package.json during npm run package.

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions