You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postinstall.js 341B

123456789
  1. // There doesn't appear to be a way to skip `postinstall`,
  2. // as doing `yarn --ignore-scripts` could prevent native packages from building:
  3. // https://github.com/yarnpkg/yarn/issues/4100
  4. const { execSync } = require("child_process");
  5. if (process.env.SKIP_YARN_POSTINSTALL !== "true") {
  6. execSync("yarnpkg build", { stdio: "inherit" });
  7. }