Skip to content

Commit 4b2ffe4

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

File tree

4 files changed

+1429
-152
lines changed

4 files changed

+1429
-152
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
@@ -18,12 +18,25 @@
1818
"set"
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+
"esmodule": "dist/index.modern.js",
25+
"umd:main": "dist/index.umd.js",
26+
"unpkg": "dist/index.umd.js",
27+
"exports": {
28+
".": {
29+
"browser": "./dist/index.module.js",
30+
"umd": "./dist/index.umd.js",
31+
"require": "./dist/index.js",
32+
"default": "./dist/index.modern.js"
33+
}
34+
},
2235
"files": [
23-
"lib"
36+
"dist"
2437
],
2538
"scripts": {
26-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
39+
"build": "NODE_ENV=production microbundle",
2740
"build-docs": "esdoc",
2841
"build-gh-pages": "npm run build-docs",
2942
"commit-msg": "commitlint --edit",
@@ -48,7 +61,6 @@
4861
},
4962
"devDependencies": {
5063
"@aureooms/js-red-black-tree": "9.0.0",
51-
"@babel/cli": "7.14.3",
5264
"@babel/core": "7.14.3",
5365
"@babel/preset-env": "7.14.2",
5466
"@babel/register": "7.13.16",
@@ -70,6 +82,7 @@
7082
"esdoc-standard-plugin": "1.0.0",
7183
"fixpack": "4.0.0",
7284
"husky": "6.0.0",
85+
"microbundle": "0.13.0",
7386
"np": "7.5.0",
7487
"pinst": "2.1.6",
7588
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)