Skip to content

Commit 3add96d

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/make-github-pseudonymous-again/rejuvenate/blob/9b50c2a1d7e9ab7b4bc9c9ff88892e98c5f62244/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent df6d4fe commit 3add96d

File tree

4 files changed

+1459
-820
lines changed

4 files changed

+1459
-820
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: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,25 @@
2727
"structures"
2828
],
2929
"sideEffects": false,
30-
"main": "lib/index.js",
30+
"source": "src/index.js",
31+
"main": "dist/index.cjs",
32+
"module": "dist/index.module.js",
33+
"esmodule": "dist/index.modern.js",
34+
"umd:main": "dist/index.umd.js",
35+
"unpkg": "dist/index.umd.js",
36+
"exports": {
37+
".": {
38+
"browser": "./dist/index.module.js",
39+
"umd": "./dist/index.umd.js",
40+
"require": "./dist/index.cjs",
41+
"default": "./dist/index.modern.js"
42+
}
43+
},
3144
"files": [
32-
"lib"
45+
"dist"
3346
],
3447
"scripts": {
35-
"build": "rm -rf lib && babel src -d lib",
48+
"build": "NODE_ENV=production microbundle",
3649
"build-docs": "esdoc",
3750
"build-gh-pages": "npm run build-docs",
3851
"commit-msg": "commitlint --edit",
@@ -49,8 +62,9 @@
4962
},
5063
"dependencies": {},
5164
"devDependencies": {
52-
"@babel/cli": "7.13.10",
5365
"@babel/core": "7.13.10",
66+
"@babel/plugin-transform-destructuring": "7.20.2",
67+
"@babel/plugin-transform-for-of": "7.18.8",
5468
"@babel/preset-env": "7.13.10",
5569
"@babel/register": "7.13.8",
5670
"@commitlint/cli": "17.2.0",
@@ -68,6 +82,7 @@
6882
"esdoc-standard-plugin": "1.0.0",
6983
"fixpack": "4.0.0",
7084
"husky": "8.0.1",
85+
"microbundle": "0.15.1",
7186
"np": "7.4.0",
7287
"pinst": "3.0.0",
7388
"power-assert": "1.6.1",
@@ -166,6 +181,8 @@
166181
]
167182
],
168183
"plugins": [
184+
"@babel/plugin-transform-destructuring",
185+
"@babel/plugin-transform-for-of",
169186
"babel-plugin-unassert"
170187
]
171188
}

0 commit comments

Comments
 (0)