1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-12-26 00:15:54 +00:00

Point package module at twemoji.esm.js; remove old file

This commit is contained in:
Nathan Downs 2019-05-29 13:45:23 -07:00
parent 68306e0278
commit a46d6f11d4
3 changed files with 1 additions and 27 deletions

File diff suppressed because one or more lines are too long

22
esm.sh
View File

@ -1,22 +0,0 @@
#!/usr/bin/env bash
if [ ! -f "$1" ] || [ "$2" = "" ]; then
echo '
usage example:
./esm.sh ./path/module.js modname
will append:
export default modname;
at the end of:
./path/esm.js
'
else
cp "$1" "$(dirname "$1")/esm.js"
echo "
export default $2;
" >> "$(dirname "$1")/esm.js"
echo "
exported $2 as default
"
fi

View File

@ -29,7 +29,7 @@
"url": "git://github.com/twitter/twemoji.git"
},
"main": "./2/twemoji.npm.js",
"module": "./2/esm.js",
"module": "./2/twemoji.esm.js",
"unpkg": "./2/twemoji.min.js",
"scripts": {
"test": "phantomjs ./2/test/testrunner.js"