Skip to content

Commit 10a073b

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 34c9a62 commit 10a073b

File tree

4 files changed

+1208
-75
lines changed

4 files changed

+1208
-75
lines changed

.codeclimate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
exclude_patterns:
22
- doc/**
3-
- lib/**
3+
- dist/**
44
- test/**

.gitignore

+1-1
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

+21-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,25 @@
2222
"structures"
2323
],
2424
"sideEffects": false,
25-
"main": "lib/index.js",
25+
"source": "src/index.js",
26+
"main": "dist/index.cjs",
27+
"module": "dist/index.module.js",
28+
"esmodule": "dist/index.modern.js",
29+
"umd:main": "dist/index.umd.js",
30+
"unpkg": "dist/index.umd.js",
31+
"exports": {
32+
".": {
33+
"browser": "./dist/index.module.js",
34+
"umd": "./dist/index.umd.js",
35+
"require": "./dist/index.cjs",
36+
"default": "./dist/index.modern.js"
37+
}
38+
},
2639
"files": [
27-
"lib"
40+
"dist"
2841
],
2942
"scripts": {
30-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
43+
"build": "NODE_ENV=production microbundle",
3144
"build-docs": "esdoc",
3245
"build-gh-pages": "npm run build-docs",
3346
"commit-msg": "commitlint --edit",
@@ -50,8 +63,9 @@
5063
"@iterable-iterator/zip": "^1.0.1"
5164
},
5265
"devDependencies": {
53-
"@babel/cli": "7.19.3",
5466
"@babel/core": "7.19.6",
67+
"@babel/plugin-transform-destructuring": "7.20.0",
68+
"@babel/plugin-transform-for-of": "7.18.8",
5569
"@babel/preset-env": "7.19.4",
5670
"@babel/register": "7.18.9",
5771
"@commitlint/cli": "17.2.0",
@@ -78,6 +92,7 @@
7892
"esdoc-standard-plugin": "1.0.0",
7993
"fixpack": "4.0.0",
8094
"husky": "8.0.1",
95+
"microbundle": "0.15.1",
8196
"np": "7.6.2",
8297
"pinst": "3.0.0",
8398
"power-assert": "1.6.1",
@@ -175,6 +190,8 @@
175190
]
176191
],
177192
"plugins": [
193+
"@babel/plugin-transform-destructuring",
194+
"@babel/plugin-transform-for-of",
178195
"babel-plugin-unassert"
179196
]
180197
}

0 commit comments

Comments
 (0)