Skip to content

Commit cdfa88a

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

File tree

4 files changed

+1431
-137
lines changed

4 files changed

+1431
-137
lines changed

.codeclimate.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,24 @@
2626
"rational"
2727
],
2828
"sideEffects": false,
29-
"main": "lib/index.js",
29+
"source": "src/index.js",
30+
"main": "dist/index.js",
31+
"module": "dist/index.module.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+
},
3042
"files": [
31-
"lib"
43+
"dist"
3244
],
3345
"scripts": {
34-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
46+
"build": "NODE_ENV=production microbundle",
3547
"build-docs": "esdoc",
3648
"build-gh-pages": "npm run build-docs",
3749
"commit-msg": "commitlint --edit",
@@ -57,7 +69,6 @@
5769
"@aureooms/js-integer-big-endian": "11.0.1",
5870
"@aureooms/js-number": "3.1.0",
5971
"@aureooms/js-prime": "4.0.0",
60-
"@babel/cli": "7.13.10",
6172
"@babel/core": "7.13.10",
6273
"@babel/preset-env": "7.13.12",
6374
"@babel/register": "7.13.8",
@@ -77,6 +88,7 @@
7788
"fixpack": "4.0.0",
7889
"husky": "5.2.0",
7990
"int": "0.2.0",
91+
"microbundle": "0.13.0",
8092
"np": "7.4.0",
8193
"pinst": "2.1.6",
8294
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)