Skip to content

Commit 7877e6f

Browse files
🤖 build: Configure microbundle to produce build.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/aureooms/rejuvenate/blob/eb1b209cd7aa675a642d48b2a788c2c6112779f7/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent 5826700 commit 7877e6f

File tree

4 files changed

+1420
-136
lines changed

4 files changed

+1420
-136
lines changed

.codeclimate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
exclude_patterns:
22
- doc/**
3-
- lib/**
3+
- dist/**
44
- test/**

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
!yarn.lock
33

44
# Generated files
5-
/lib
5+
/dist
66

77
# Dependency directory
88
node_modules

package.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,25 @@
2525
"satisfiability"
2626
],
2727
"sideEffects": false,
28-
"main": "lib/index.js",
28+
"source": "src/index.js",
29+
"main": "dist/index.js",
30+
"module": "dist/index.module.js",
31+
"esmodule": "dist/index.modern.js",
32+
"umd:main": "dist/index.umd.js",
33+
"unpkg": "dist/index.umd.js",
34+
"exports": {
35+
".": {
36+
"browser": "./dist/index.module.js",
37+
"umd": "./dist/index.umd.js",
38+
"require": "./dist/index.js",
39+
"default": "./dist/index.modern.js"
40+
}
41+
},
2942
"files": [
30-
"lib"
43+
"dist"
3144
],
3245
"scripts": {
33-
"build": "rm -rf lib && babel src -d lib",
46+
"build": "NODE_ENV=production microbundle",
3447
"build-docs": "esdoc",
3548
"build-gh-pages": "npm run build-docs",
3649
"commit-msg": "commitlint --edit",
@@ -52,7 +65,6 @@
5265
"@aureooms/js-array": "4.0.0",
5366
"@aureooms/js-compare": "2.0.1",
5467
"@aureooms/js-functools": "2.0.3",
55-
"@babel/cli": "7.13.14",
5668
"@babel/core": "7.13.15",
5769
"@babel/preset-env": "7.13.15",
5870
"@babel/register": "7.13.14",
@@ -70,6 +82,7 @@
7082
"esdoc-standard-plugin": "1.0.0",
7183
"fixpack": "4.0.0",
7284
"husky": "6.0.0",
85+
"microbundle": "0.13.0",
7386
"np": "7.4.0",
7487
"pinst": "2.1.6",
7588
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)