Skip to content

Commit 1d202b7

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 28ce3ff commit 1d202b7

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
@@ -24,12 +24,24 @@
2424
"rational"
2525
],
2626
"sideEffects": false,
27-
"main": "lib/index.js",
27+
"source": "src/index.js",
28+
"main": "dist/index.js",
29+
"module": "dist/index.module.js",
30+
"umd:main": "dist/index.umd.js",
31+
"unpkg": "dist/index.umd.js",
32+
"exports": {
33+
".": {
34+
"browser": "./dist/index.module.js",
35+
"umd": "./dist/index.umd.js",
36+
"require": "./dist/index.js",
37+
"default": "./dist/index.modern.js"
38+
}
39+
},
2840
"files": [
29-
"lib"
41+
"dist"
3042
],
3143
"scripts": {
32-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
44+
"build": "NODE_ENV=production microbundle",
3345
"build-docs": "esdoc",
3446
"build-gh-pages": "npm run build-docs",
3547
"commit-msg": "commitlint --edit",
@@ -56,7 +68,6 @@
5668
"@aureooms/js-rational": "^4.0.1"
5769
},
5870
"devDependencies": {
59-
"@babel/cli": "7.13.10",
6071
"@babel/core": "7.13.10",
6172
"@babel/plugin-proposal-async-generator-functions": "7.13.8",
6273
"@babel/preset-env": "7.13.12",
@@ -76,6 +87,7 @@
7687
"esdoc-standard-plugin": "1.0.0",
7788
"fixpack": "4.0.0",
7889
"husky": "5.2.0",
90+
"microbundle": "0.13.0",
7991
"np": "7.4.0",
8092
"pinst": "2.1.6",
8193
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)