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:
parent
68306e0278
commit
a46d6f11d4
22
esm.sh
22
esm.sh
@ -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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user