Skip to content
Snippets Groups Projects
  1. Jul 26, 2022
  2. Apr 19, 2022
  3. May 11, 2021
  4. May 10, 2021
  5. Apr 20, 2021
    • Reiter, Christoph's avatar
      getPackagePath: handle the current package not being installed · 9d17dc7e
      Reiter, Christoph authored
      In case we want to get the package path of the current package, but it
      isn't in node_modules (as is the case with yarn2) we need to find it
      ourselves.
      
      In case the package.json in the current dir has the same name we just use
      it as a base. This is after rollup lookup failed, so this is just a fallback.
      9d17dc7e
  6. Mar 08, 2021
  7. Jan 20, 2021
  8. Nov 17, 2020
  9. Jul 20, 2020
    • Reiter, Christoph's avatar
      Use the rollup resolve plugin for finding package asssets · 68a87639
      Reiter, Christoph authored
      Instead of hardcoding the paths of the node_modules directory we use the node-resolve
      plugin of rollup to find the root of the corresponding JS package and calcucate a path from
      there.
      
      Resolving a package requires calling an async function, so we have to use await in the rollup config.
      Luckily rollup supports configs wrapped in a promise, so we just have to wrap it in a function which returns
      a promise.
      68a87639
Loading