Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: adds support for ESM and Deno #295

Merged
merged 26 commits into from
Aug 4, 2020
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
762343f
build: trying to target esm and cjs
bcoe Jul 27, 2020
2ff8f3f
share approch used for dual mode module
bcoe Jul 27, 2020
fdff3c0
feat!: support for ESM and Deno
bcoe Jul 30, 2020
7b25881
chore: fix spacing
bcoe Jul 30, 2020
a0d4446
chore: remove unused deps
bcoe Jul 30, 2020
53a02f0
chore: finished shimming deno
bcoe Jul 30, 2020
3ffbe28
chore: working on shimming deno
bcoe Jul 30, 2020
6f6e630
chore: fix up windows tests
bcoe Jul 30, 2020
af37a7f
chore: add deno to CI/CD
bcoe Jul 30, 2020
f170db8
chore: add unit tests for deno
bcoe Jul 30, 2020
5015beb
chore: checking in build seems like bad idea
bcoe Jul 30, 2020
72c8d18
chore: build library for deno
bcoe Jul 30, 2020
760f39d
Update scripts/replace-legacy-export.cjs
bcoe Jul 30, 2020
df420bb
Update package.json
bcoe Aug 1, 2020
482dee6
chore: addressing review
bcoe Aug 1, 2020
084ed03
chore: add browser tests
bcoe Aug 1, 2020
2abb990
chore: add browser tests
bcoe Aug 1, 2020
2396cb1
chore: only run typescript tests on Node 14
bcoe Aug 1, 2020
7f1380e
chore: fix and simplify linting rules
bcoe Aug 1, 2020
369bd46
chore: continuing to perfect structure
bcoe Aug 1, 2020
c05f030
build: 1:many source maps supported
bcoe Aug 3, 2020
a0f112c
chore: Deno now supports config files
bcoe Aug 4, 2020
43517c7
chore: add rough config for deno release
bcoe Aug 4, 2020
6c2d640
build: configure deno build
bcoe Aug 4, 2020
47aa246
chore: update README with deno and ESM examples
bcoe Aug 4, 2020
a040ec4
chore: remove 'bonus' html
bcoe Aug 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: checking in build seems like bad idea
bcoe committed Jul 30, 2020
commit 5015beb875ad0cebbc767f1dd77c23fd7ae64bf4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -5,3 +5,4 @@ node_modules
package-lock.json
./test/fixtures/package.json
coverage
build
3 changes: 0 additions & 3 deletions build/index-node.d.ts

This file was deleted.

25 changes: 0 additions & 25 deletions build/index-node.js

This file was deleted.

1 change: 0 additions & 1 deletion build/index-node.js.map

This file was deleted.

1,125 changes: 0 additions & 1,125 deletions build/index.cjs

This file was deleted.

129 changes: 0 additions & 129 deletions build/index.cjs.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions build/lib/common-types.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/common-types.js

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/common-types.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions build/lib/string-utils.d.ts

This file was deleted.

43 changes: 0 additions & 43 deletions build/lib/string-utils.js

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/string-utils.js.map

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/tokenize-arg-string.d.ts

This file was deleted.

36 changes: 0 additions & 36 deletions build/lib/tokenize-arg-string.js

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/tokenize-arg-string.js.map

This file was deleted.

156 changes: 0 additions & 156 deletions build/lib/yargs-parser-types.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/yargs-parser-types.js

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/yargs-parser-types.js.map

This file was deleted.

5 changes: 0 additions & 5 deletions build/lib/yargs.d.ts

This file was deleted.

1,024 changes: 0 additions & 1,024 deletions build/lib/yargs.js

This file was deleted.

1 change: 0 additions & 1 deletion build/lib/yargs.js.map

This file was deleted.

1 change: 0 additions & 1 deletion build/test/types.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions build/test/types.js

This file was deleted.

1 change: 0 additions & 1 deletion build/test/types.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion example.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {camelCase} from './build/lib/string-utils'
import parser from 'yargs-parser'
var parse = parser('--foo "-bar"')
console.log(parse)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"description": "the mighty option parser used by yargs",
"main": "build/index.cjs",
"exports": {
"import": "./build/lib/yargs.js",
"import": "./build/index-node.js",
"require": "./build/index.cjs"
},
"type": "module",