Skip to content

Commit efec851

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 c629ccf commit efec851

File tree

4 files changed

+1206
-64
lines changed

4 files changed

+1206
-64
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
@@ -26,12 +26,25 @@
2626
"word-ram-model"
2727
],
2828
"sideEffects": false,
29-
"main": "lib/index.js",
29+
"source": "src/index.js",
30+
"main": "dist/index.cjs",
31+
"module": "dist/index.module.js",
32+
"esmodule": "dist/index.modern.js",
33+
"umd:main": "dist/index.umd.js",
34+
"unpkg": "dist/index.umd.js",
35+
"exports": {
36+
".": {
37+
"browser": "./dist/index.module.js",
38+
"umd": "./dist/index.umd.js",
39+
"require": "./dist/index.cjs",
40+
"default": "./dist/index.modern.js"
41+
}
42+
},
3043
"files": [
31-
"lib"
44+
"dist"
3245
],
3346
"scripts": {
34-
"build": "babel --delete-dir-on-start --env-name production src -d lib",
47+
"build": "NODE_ENV=production microbundle",
3548
"build-docs": "esdoc",
3649
"build-gh-pages": "npm run build-docs",
3750
"commit-msg": "commitlint --edit",
@@ -53,7 +66,6 @@
5366
"@combinatorics/permutation": "^4.0.0"
5467
},
5568
"devDependencies": {
56-
"@babel/cli": "7.16.0",
5769
"@babel/core": "7.16.5",
5870
"@babel/preset-env": "7.16.5",
5971
"@babel/register": "7.16.5",
@@ -81,6 +93,7 @@
8193
"esdoc-standard-plugin": "1.0.0",
8294
"fixpack": "4.0.0",
8395
"husky": "7.0.4",
96+
"microbundle": "0.14.2",
8497
"np": "7.6.0",
8598
"pinst": "2.1.6",
8699
"power-assert": "1.6.1",

0 commit comments

Comments
 (0)