Skip to content

Commit bfd6382

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

File tree

4 files changed

+1557
-147
lines changed

4 files changed

+1557
-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: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,25 @@
2323
"shuffle"
2424
],
2525
"sideEffects": false,
26-
"main": "lib/index.js",
26+
"source": "src/index.js",
27+
"main": "dist/index.js",
28+
"module": "dist/index.module.js",
29+
"esmodule": "dist/index.modern.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+
},
2740
"files": [
28-
"lib"
41+
"dist"
2942
],
3043
"scripts": {
31-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
44+
"build": "NODE_ENV=production microbundle",
3245
"build-docs": "esdoc",
3346
"build-gh-pages": "npm run build-docs",
3447
"commit-msg": "commitlint --edit",
@@ -54,7 +67,6 @@
5467
"@aureooms/js-memory": "4.0.0",
5568
"@aureooms/js-operator": "1.0.2",
5669
"@aureooms/js-type": "1.0.4",
57-
"@babel/cli": "7.13.10",
5870
"@babel/core": "7.13.10",
5971
"@babel/preset-env": "7.13.10",
6072
"@babel/register": "7.13.8",
@@ -72,6 +84,7 @@
7284
"esdoc-standard-plugin": "1.0.0",
7385
"fixpack": "4.0.0",
7486
"husky": "6.0.0",
87+
"microbundle": "0.13.0",
7588
"np": "7.4.0",
7689
"pinst": "2.1.6",
7790
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)