Skip to content

Change Request: Replace npm-prepare script with npm workspace feature #414

@lumirlumir

Description

@lumirlumir

Environment

ESLint version: HEAD
@eslint/markdown version: HEAD
Node version: 20.18.0
npm version: 10.9.2
Operating System: Windows 11

What problem do you want to solve?

In this issue, I would like to suggest replacing the npm-prepare.cjs script with the npm workspace feature.

Currently, the npm-prepare.cjs script is used to install dependencies as part of the prepare lifecycle hook for the examples directory.

However, the same behavior can be easily achieved using the Workspace feature in npm.

With the private: true field in the examples' package.json, it won't affect the current release process either.

Also, users can access the examples more easily from the project root by using npm test -w examples/react.

What do you think is the correct solution?

Remove npm-prepare.cjs and replace it with npm workspace feature.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions