-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add esm build with `index.mjs` output to fix #7 place builds and type defs in `lib` directory update changelog and version
- Loading branch information
1 parent
b540e18
commit 38faa2b
Showing
3 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
{ | ||
"name": "country-code-emoji", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "convert country codes (ISO 3166-1 alpha-2) to corresponding emoji flags (unicode regional indicator symbols)", | ||
"main": "lib/index.js", | ||
"repository": "github:thekelvinliu/country-code-emoji", | ||
"author": "kelvin liu <[email protected]>", | ||
"license": "MIT", | ||
"module": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"types": "lib/index.d.ts", | ||
"exports": { | ||
"import": "./src/index.js", | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.js" | ||
}, | ||
"homepage": "https://github.com/thekelvinliu/country-code-emoji#readme", | ||
"bugs": { | ||
"url": "https://github.com/thekelvinliu/country-code-emoji/issues" | ||
}, | ||
"scripts": { | ||
"build": "esbuild src/index.js --format=cjs --outdir=lib --target=node10", | ||
"clean": "rm -rf coverage lib types", | ||
"build": "yarn build:cjs && yarn build:esm", | ||
"build:cjs": "esbuild src/index.js --format=cjs --outdir=lib --target=node12", | ||
"build:esm": "esbuild src/index.js --format=esm --outfile=lib/index.mjs --target=node12", | ||
"clean": "rm -rf coverage lib", | ||
"lint": "eslint .", | ||
"prepublishOnly": "yarn build && yarn types", | ||
"reset": "rm -rf node_modules package-lock.json yarn.lock", | ||
|
@@ -41,8 +43,7 @@ | |
}, | ||
"files": [ | ||
"lib", | ||
"src", | ||
"types" | ||
"src" | ||
], | ||
"keywords": [ | ||
"country", | ||
|
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