writeBundle(bundle) {
        for (let d of Object.values(bundle)) {
          if (d.isEntry) {
            const filePath = path.resolve(__dirname, "dist/bin", d.fileName);
            const mode = fs.statSync(filePath).mode;
            fs.chmodSync(filePath, mode | 0o100); // Same as `chmod u+x`
          }
        }
      }
WARNING: Don't use rollup's ES import/export here because otherwise file paths won't resolve correctly