-
Notifications
You must be signed in to change notification settings - Fork 172
/
package.json
31 lines (31 loc) · 1.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "@multiavatar/multiavatar",
"version": "1.0.7",
"description": "Multicultural Avatar Generator",
"author": "Gie Katon <[email protected]> (http://giekaton.com/)",
"repository": {
"type": "git",
"url": "https://github.com/multiavatar/Multiavatar.git"
},
"type": "module",
"main": "./dist/commonjs/index.js",
"exports": {
".": "./dist/commonjs/index.js",
"./esm": "./dist/esm/index.js"
},
"module": "./dist/esm/index.js",
"scripts": {
"build": "node -e \"const fs = require('fs'); if (!fs.existsSync('./dist')){ fs.mkdirSync('./dist'); } if (!fs.existsSync('./dist/commonjs')){ fs.mkdirSync('./dist/commonjs'); } if (!fs.existsSync('./dist/esm')){ fs.mkdirSync('./dist/esm'); } const package = '{ \"\"type\"\": \"\"commonjs\"\" }'; fs.writeFileSync('./dist/commonjs/package.json', package); const s = fs.readFileSync('multiavatar.min.js', 'utf8'); const commonjs = s + ' module.exports = multiavatar;'; fs.writeFileSync('./dist/commonjs/index.js', commonjs); const esm = s + ' export default multiavatar;'; fs.writeFileSync('./dist/esm/index.js', esm); \""
},
"keywords": [
"avatar",
"profile",
"picture",
"image",
"generator",
"maker",
"creator"
],
"homepage": "https://multiavatar.com",
"license": "SEE LICENSE IN LICENSE"
}