Giter Club home page Giter Club logo

Comments (6)

dshimkoski avatar dshimkoski commented on May 27, 2024 10

@jaimesangcap You can use nohoist to get around this problem.

For example, in a package.json:

{
  "private": true,
  "workspaces": {
    "packages": [
      "packages/*"
    ],
    "nohoist": [
      "**/@bahmutov/add-typescript-to-cypress",
      "**/@bahmutov/add-typescript-to-cypress/**"
    ]
  }
}

from add-typescript-to-cypress.

bahmutov avatar bahmutov commented on May 27, 2024

from add-typescript-to-cypress.

jaimesangcap avatar jaimesangcap commented on May 27, 2024

Thank you for super quick response 😄

I'm just new to js/nodejs/npm world but I'm very willing to take a stab on this one.

from add-typescript-to-cypress.

bahmutov avatar bahmutov commented on May 27, 2024

Yeah, look at this file https://github.com/bahmutov/add-typescript-to-cypress/blob/master/src/add-plugin.js that is executed postinstall

from add-typescript-to-cypress.

jaimesangcap avatar jaimesangcap commented on May 27, 2024

the postinstall works now, I've used lerna without yarn workspace integration. I will send a PR for the docs

from add-typescript-to-cypress.

mkaraula avatar mkaraula commented on May 27, 2024

I ran across this Issue today. I use lerna without yarn workspaces and therefore can't use nohoist in my package.json

I made it work with
npx lerna bootstrap --hoist --nohoist="@bahmutov/add-typescript-to-cypress"

But I would still prefer to have this fixed within this package. But I am not sure how tell it prior to installing it where the cypress folder is actually located. Any ideas how such a fix could look like?

from add-typescript-to-cypress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.