Skip to content

NPM Package Question #23

@luisbadia

Description

@luisbadia

I have a question about the generated and published package. This package is used by Next.js through the eslint-config-next dependency, which in turn has as a dependency the eslint-import-resolver-typescript package, which is using the rspack-resolver package.

During the installation and compilation of Next.js, eslint is run to validate the code rules.

I'm doing all of this in a Docker image, based on Alpine using Node 18, installing only the necessary packages and skipping the optional ones.

npm i --omit=optional--ignore-scripts --quiet

So, since the optional packages don't exist, it's failing in index.js for their package.

Since they are necessary, why are they listed as optional?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions