Skip to content

Commit a4cda0c

Browse files
a-flying-potatomake-github-pseudonymous-again
authored andcommittedMar 25, 2021
🤖 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/e086830dfe927964be93f46b8ecdacd2597eb487/src/transforms/build:use-microbundle.js Please contact the author of the transform if you believe there was an error.
1 parent 6f06a8b commit a4cda0c

File tree

4 files changed

+1431
-137
lines changed

4 files changed

+1431
-137
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

+16-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,24 @@
2020
"primitive"
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+
"umd:main": "dist/index.umd.js",
27+
"unpkg": "dist/index.umd.js",
28+
"exports": {
29+
".": {
30+
"browser": "./dist/index.module.js",
31+
"umd": "./dist/index.umd.js",
32+
"require": "./dist/index.js",
33+
"default": "./dist/index.modern.js"
34+
}
35+
},
2436
"files": [
25-
"lib"
37+
"dist"
2638
],
2739
"scripts": {
28-
"build": "rm -rf lib && babel src -d lib",
40+
"build": "NODE_ENV=production microbundle",
2941
"build-docs": "esdoc",
3042
"build-gh-pages": "npm run build-docs",
3143
"commit-msg": "commitlint --edit",
@@ -45,7 +57,6 @@
4557
"@aureooms/js-algorithms": "^3.0.7",
4658
"@aureooms/js-int32": "^3.0.0",
4759
"@aureooms/js-random": "^2.0.0",
48-
"@babel/cli": "7.13.10",
4960
"@babel/core": "7.13.10",
5061
"@babel/preset-env": "7.13.12",
5162
"@babel/register": "7.13.8",
@@ -63,6 +74,7 @@
6374
"esdoc-standard-plugin": "1.0.0",
6475
"fixpack": "4.0.0",
6576
"husky": "5.2.0",
77+
"microbundle": "0.13.0",
6678
"np": "7.4.0",
6779
"pinst": "2.1.6",
6880
"power-assert": "1.6.1",

‎yarn.lock

+1,413-131
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.