Skip to content

Commit eeb3f5c

Browse files
🤖 configure(build): Upgrade build script.
1 parent fda1ad7 commit eeb3f5c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"test": "ava",
4-
"build": "./node_modules/.bin/aureooms-node-package-build",
4+
"build": "NODE_ENV=production microbundle",
55
"build-docs": "esdoc",
66
"lint": "true"
77
},
@@ -50,7 +50,7 @@
5050
"author": "aureooms",
5151
"name": "@aureooms/js-type",
5252
"homepage": "http://make-github-pseudonymous-again.github.io/js-type/",
53-
"main": "js/dist/type.js",
53+
"main": "dist/index.js",
5454
"license": "AGPL-3.0",
5555
"spm": {
5656
"main": "js/dist/type.js"
@@ -150,5 +150,17 @@
150150
"@babel/register"
151151
],
152152
"timeout": "1m"
153+
},
154+
"source": "src/index.js",
155+
"module": "dist/index.module.mjs",
156+
"umd:main": "dist/index.umd.js",
157+
"unpkg": "dist/index.umd.js",
158+
"exports": {
159+
".": {
160+
"browser": "./dist/index.module.mjs",
161+
"umd": "./dist/index.umd.js",
162+
"require": "./dist/index.js",
163+
"default": "./dist/index.modern.mjs"
164+
}
153165
}
154166
}

0 commit comments

Comments
 (0)