-
Notifications
You must be signed in to change notification settings - Fork 995
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds support for ESM and Deno (#1708)
BREAKING CHANGE: find-up replaced with escalade; export map added (limits importable files in Node >= 12); yarser-parser@19.x.x (new decamelize/camelcase implementation).
- Loading branch information
Showing
78 changed files
with
1,434 additions
and
1,639 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ node_modules/ | |
test.js | ||
coverage | ||
package-lock.json | ||
example.* | ||
.DS_Store | ||
.npmrc |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Bootstrap yargs for browser: | ||
import browserPlatformShim from './lib/platform-shims/browser.mjs' | ||
import { YargsWithShim } from './build/lib/yargs-factory.js' | ||
|
||
const Yargs = YargsWithShim(browserPlatformShim) | ||
|
||
export { Yargs } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Bootstrap yargs for Deno platform: | ||
import denoPlatformShim from './lib/platform-shims/deno.ts' | ||
import { YargsWithShim } from './build/lib/yargs-factory.js' | ||
import { YargsInstance as YargsType, Arguments } from './build/lib/yargs-factory.d.ts' | ||
|
||
const WrappedYargs = YargsWithShim(denoPlatformShim) | ||
|
||
function Yargs (args?: string[]): YargsType { | ||
return WrappedYargs(args) | ||
} | ||
|
||
export { | ||
Arguments, | ||
Yargs, | ||
YargsType | ||
} |
Oops, something went wrong.