Skip to content

Commit 866a723

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/17001e676fa44361155baf8a8e44894908dd6c6d/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent 01f54f6 commit 866a723

File tree

4 files changed

+1467
-147
lines changed

4 files changed

+1467
-147
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
@@ -18,12 +18,24 @@
1818
"mapping"
1919
],
2020
"sideEffects": false,
21-
"main": "lib/index.js",
21+
"source": "src/index.js",
22+
"main": "dist/index.js",
23+
"module": "dist/index.module.js",
24+
"umd:main": "dist/index.umd.js",
25+
"unpkg": "dist/index.umd.js",
26+
"exports": {
27+
".": {
28+
"browser": "./dist/index.module.js",
29+
"umd": "./dist/index.umd.js",
30+
"require": "./dist/index.js",
31+
"default": "./dist/index.modern.js"
32+
}
33+
},
2234
"files": [
23-
"lib"
35+
"dist"
2436
],
2537
"scripts": {
26-
"build": "rm -rf lib && babel src -d lib",
38+
"build": "NODE_ENV=production microbundle",
2739
"build-docs": "esdoc",
2840
"build-gh-pages": "npm run build-docs",
2941
"commit-msg": "commitlint --edit",
@@ -41,7 +53,6 @@
4153
"dependencies": {},
4254
"devDependencies": {
4355
"@aureooms/js-itertools": "5.0.1",
44-
"@babel/cli": "7.13.10",
4556
"@babel/core": "7.13.10",
4657
"@babel/polyfill": "7.12.1",
4758
"@babel/preset-env": "7.13.10",
@@ -60,6 +71,7 @@
6071
"esdoc-standard-plugin": "1.0.0",
6172
"fixpack": "4.0.0",
6273
"husky": "5.1.3",
74+
"microbundle": "0.13.0",
6375
"np": "7.4.0",
6476
"pinst": "2.1.6",
6577
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)