Skip to content

Commit 221918a

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/67ba7d5e9b38c8944d42909a3a30b0710559b446/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent cd9ac3f commit 221918a

File tree

4 files changed

+1499
-160
lines changed

4 files changed

+1499
-160
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
@@ -51,12 +51,24 @@
5151
"subtraction"
5252
],
5353
"sideEffects": false,
54-
"main": "lib/index.js",
54+
"source": "src/index.js",
55+
"main": "dist/index.js",
56+
"module": "dist/index.module.js",
57+
"umd:main": "dist/index.umd.js",
58+
"unpkg": "dist/index.umd.js",
59+
"exports": {
60+
".": {
61+
"browser": "./dist/index.module.js",
62+
"umd": "./dist/index.umd.js",
63+
"require": "./dist/index.js",
64+
"default": "./dist/index.modern.js"
65+
}
66+
},
5567
"files": [
56-
"lib"
68+
"dist"
5769
],
5870
"scripts": {
59-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
71+
"build": "NODE_ENV=production microbundle",
6072
"build-docs": "esdoc",
6173
"build-gh-pages": "npm run build-docs",
6274
"commit-msg": "commitlint --edit",
@@ -85,7 +97,6 @@
8597
"@aureooms/js-operator": "1.0.2",
8698
"@aureooms/js-random": "2.0.0",
8799
"@aureooms/js-string": "1.0.0",
88-
"@babel/cli": "7.13.10",
89100
"@babel/core": "7.13.10",
90101
"@babel/preset-env": "7.13.12",
91102
"@babel/register": "7.13.8",
@@ -103,6 +114,7 @@
103114
"esdoc-standard-plugin": "1.0.0",
104115
"fixpack": "4.0.0",
105116
"husky": "5.2.0",
117+
"microbundle": "0.13.0",
106118
"np": "7.4.0",
107119
"pinst": "2.1.6",
108120
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)