Skip to content

Commit 0541226

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

File tree

4 files changed

+1629
-763
lines changed

4 files changed

+1629
-763
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
@@ -20,12 +20,24 @@
2020
"js"
2121
],
2222
"sideEffects": false,
23-
"main": "lib/index.js",
23+
"source": "src/index.js",
24+
"main": "dist/index.js",
25+
"module": "dist/index.module.js",
26+
"umd:main": "dist/index.umd.js",
27+
"unpkg": "dist/index.umd.js",
28+
"exports": {
29+
".": {
30+
"browser": "./dist/index.module.js",
31+
"umd": "./dist/index.umd.js",
32+
"require": "./dist/index.js",
33+
"default": "./dist/index.modern.js"
34+
}
35+
},
2436
"files": [
25-
"lib"
37+
"dist"
2638
],
2739
"scripts": {
28-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
40+
"build": "NODE_ENV=production microbundle",
2941
"build-docs": "esdoc",
3042
"build-gh-pages": "npm run build-docs",
3143
"commit-msg": "commitlint --edit",
@@ -48,7 +60,6 @@
4860
},
4961
"devDependencies": {
5062
"@aureooms/js-itertools": "4.1.0",
51-
"@babel/cli": "7.13.10",
5263
"@babel/core": "7.13.10",
5364
"@babel/preset-env": "7.13.10",
5465
"@babel/register": "7.13.8",
@@ -66,6 +77,7 @@
6677
"esdoc-standard-plugin": "1.0.0",
6778
"fixpack": "4.0.0",
6879
"husky": "5.1.3",
80+
"microbundle": "0.13.0",
6981
"np": "7.4.0",
7082
"pinst": "2.1.6",
7183
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)