async setPastDate()

in packages/kotlin-webpack-plugin/plugin.js [225:236]


  async setPastDate() {
    // Hack around multiple recompilations on start: set past modify date
    const timestamp = 100;
    const output = this.options.output;

    const files = await fs.readdir(output);
    await Promise.all(
      files.map((file) =>
        fs.utimes(path.resolve(output, file), timestamp, timestamp)
      )
    );
  }