Skip to content

Migrate to a pnpm monorepo #945

Closed
@pokey

Description

@pokey

The problem

All of the Cursorless code exists as part of the VSCode extension and has many references to vscode. We'd like to abstract away VSCode and turn Cursorless into a generic npm package to enable the following:

  • Extract cursorless core into a node.js server #435 to support Cursorless in other IDEs
  • Allow other applications (eg rango, MS Word plugin) to leverage the Cursorless engine
  • Embed Cursorless in Talon for OCR-based global hats
  • Support Cursorless VSCode on the web
  • Share code with our docs site, which would enable one source of truth between docs and code
  • Allow us to fake / mock pieces of VSCode to enable proper unit testing (today nearly all Cursorless tests are end-to-end)

The solution

We'd like to migrate to nx. Let's use pnpm

Experiments to run

  • When you do auto-import in VSCode, does it look at node_modules of the package containing the file you're doing auto-import from even if your VSCode workspace is opened to the root directory of the project?
  • When you do a rename, will it apply across package boundaries?

To discuss

  • What to do about type imports?

Todo

old We'll proceed as follows

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityImprovements to code qualityto discussPlan to discuss at meet-up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions