Skip to content

Commit

Permalink
fix: Coffeescript adapter failing to load on Windows (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra authored Sep 25, 2023
1 parent 50fa216 commit a4219a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robot.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ class Robot {
if (Array.from(HUBOT_DEFAULT_ADAPTERS).indexOf(this.adapterName) > -1) {
this.adapter = this.requireAdapterFrom(path.resolve(path.join(__dirname, 'adapters', this.adapterName)))
} else if (['.js', '.cjs', '.coffee'].includes(ext)) {
this.adapter = this.requireAdapterFrom(pathToFileURL(path.resolve(adapterPath)).pathname)
this.adapter = this.requireAdapterFrom(path.resolve(adapterPath))
} else if (['.mjs'].includes(ext)) {
this.adapter = await this.importAdapterFrom(pathToFileURL(path.resolve(adapterPath)).href)
} else {
Expand Down

0 comments on commit a4219a0

Please sign in to comment.