Skip to content

Commit 3a6668a

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/f4f2f038c1728370f45204d13b52e4691640a5b4/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent dc30ae9 commit 3a6668a

File tree

4 files changed

+1433
-137
lines changed

4 files changed

+1433
-137
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

+16-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,24 @@
1919
"red-black tree"
2020
],
2121
"sideEffects": false,
22-
"main": "lib/index.js",
22+
"source": "src/index.js",
23+
"main": "dist/index.js",
24+
"module": "dist/index.module.js",
25+
"umd:main": "dist/index.umd.js",
26+
"unpkg": "dist/index.umd.js",
27+
"exports": {
28+
".": {
29+
"browser": "./dist/index.module.js",
30+
"umd": "./dist/index.umd.js",
31+
"require": "./dist/index.js",
32+
"default": "./dist/index.modern.js"
33+
}
34+
},
2335
"files": [
24-
"lib"
36+
"dist"
2537
],
2638
"scripts": {
27-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
39+
"build": "NODE_ENV=production microbundle",
2840
"build-docs": "esdoc",
2941
"build-gh-pages": "npm run build-docs",
3042
"commit-msg": "commitlint --edit",
@@ -46,7 +58,6 @@
4658
"@aureooms/js-compare": "2.0.0",
4759
"@aureooms/js-itertools": "5.1.0",
4860
"@aureooms/js-random": "2.0.0",
49-
"@babel/cli": "7.13.10",
5061
"@babel/core": "7.13.13",
5162
"@babel/preset-env": "7.13.12",
5263
"@babel/register": "7.13.8",
@@ -65,6 +76,7 @@
6576
"esdoc-standard-plugin": "1.0.0",
6677
"fixpack": "4.0.0",
6778
"husky": "5.2.0",
79+
"microbundle": "0.13.0",
6880
"np": "7.4.0",
6981
"pinst": "2.1.6",
7082
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)