Skip to content

Commit 98683d6

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

File tree

4 files changed

+1871
-123
lines changed

4 files changed

+1871
-123
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

+17-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,25 @@
2020
"maximum"
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+
"esmodule": "dist/index.modern.js",
27+
"umd:main": "dist/index.umd.js",
28+
"unpkg": "dist/index.umd.js",
29+
"exports": {
30+
".": {
31+
"browser": "./dist/index.module.js",
32+
"umd": "./dist/index.umd.js",
33+
"require": "./dist/index.js",
34+
"default": "./dist/index.modern.js"
35+
}
36+
},
2437
"files": [
25-
"lib"
38+
"dist"
2639
],
2740
"scripts": {
28-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
41+
"build": "NODE_ENV=production microbundle",
2942
"build-docs": "esdoc",
3043
"build-gh-pages": "npm run build-docs",
3144
"commit-msg": "commitlint --edit",
@@ -46,7 +59,6 @@
4659
"dependencies": {},
4760
"devDependencies": {
4861
"@aureooms/js-itertools": "5.0.1",
49-
"@babel/cli": "7.13.10",
5062
"@babel/core": "7.13.10",
5163
"@babel/preset-env": "7.13.10",
5264
"@babel/register": "7.13.8",
@@ -64,6 +76,7 @@
6476
"esdoc-standard-plugin": "1.0.0",
6577
"fixpack": "4.0.0",
6678
"husky": "6.0.0",
79+
"microbundle": "0.13.0",
6780
"np": "7.4.0",
6881
"pinst": "2.1.6",
6982
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)