Skip to content

linter: napi/oxlint2 package won't work when published #12522

@camc314

Description

@camc314

Here, we require some code from the parser package, however on user's systems consuming oxlint, these files will not exist.

const { TOKEN } = require('../../parser/raw-transfer/lazy-common.js'),
walkProgram = require('../../parser/generated/lazy/walk.js');

We need to either:

  • bundle the code to avoid this issue
  • copy the relevant files (build step??)
  • something else?

cc @overlookmotel

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions