Browse Source
Pass a Windows-aware Regex to `async-to-gen/register`
master
Matheus Fernandes
8 years ago
No known key found for this signature in database
GPG Key ID: DD07CA4EA7B65C4F
1 changed files with
2 additions and
1 deletions
-
bin/now.js
|
|
@ -11,9 +11,10 @@ const updateNotifier = require('update-notifier') |
|
|
|
const {error} = require('../lib/error') |
|
|
|
const pkg = require('../package') |
|
|
|
|
|
|
|
const pathSep = process.platform === 'win32' ? '\\\\' : '/' |
|
|
|
// Support for keywords "async" and "await"
|
|
|
|
require('async-to-gen/register')({ |
|
|
|
includes: /.*now(-cli)?\/(lib|bin).*/, |
|
|
|
includes: new RegExp(`.*now(-cli)?${pathSep}(lib|bin).*`), |
|
|
|
excludes: null |
|
|
|
}) |
|
|
|
|
|
|
|