Skip to content

Commit 3d357c2

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/8134808bd3e9bcbb3e4b2ca5401e2dee58965a01/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent 17fdd6f commit 3d357c2

File tree

4 files changed

+1202
-70
lines changed

4 files changed

+1202
-70
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
@@ -32,12 +32,25 @@
3232
"the"
3333
],
3434
"sideEffects": false,
35-
"main": "lib/index.js",
35+
"source": "src/index.js",
36+
"main": "dist/index.cjs",
37+
"module": "dist/index.module.js",
38+
"esmodule": "dist/index.modern.js",
39+
"umd:main": "dist/index.umd.js",
40+
"unpkg": "dist/index.umd.js",
41+
"exports": {
42+
".": {
43+
"browser": "./dist/index.module.js",
44+
"umd": "./dist/index.umd.js",
45+
"require": "./dist/index.cjs",
46+
"default": "./dist/index.modern.js"
47+
}
48+
},
3649
"files": [
37-
"lib"
50+
"dist"
3851
],
3952
"scripts": {
40-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
53+
"build": "NODE_ENV=production microbundle",
4154
"build-docs": "esdoc",
4255
"build-gh-pages": "npm run build-docs",
4356
"commit-msg": "commitlint --edit",
@@ -65,7 +78,6 @@
6578
"@total-order/primitive": "^1.0.1"
6679
},
6780
"devDependencies": {
68-
"@babel/cli": "7.16.0",
6981
"@babel/core": "7.16.5",
7082
"@babel/preset-env": "7.16.5",
7183
"@babel/register": "7.16.5",
@@ -84,6 +96,7 @@
8496
"esdoc-standard-plugin": "1.0.0",
8597
"fixpack": "4.0.0",
8698
"husky": "7.0.4",
99+
"microbundle": "0.14.2",
87100
"np": "7.6.0",
88101
"pinst": "2.1.6",
89102
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)