File tree Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -16,28 +16,15 @@ module.exports = {
16
16
description : 'delete the dist directory and run all builds' ,
17
17
default : series (
18
18
rimraf ( 'dist' ) ,
19
- concurrent . nps (
20
- 'build.es' ,
21
- 'build.cjs' ,
22
- 'build.umd.main' ,
23
- 'build.umd.min'
24
- )
19
+ concurrent . nps ( 'build.umd.main' , 'build.umd.min' )
25
20
) ,
26
- es : {
27
- description : 'run the build with rollup (uses rollup.config.js)' ,
28
- script : 'rollup --config --environment FORMAT:es'
29
- } ,
30
- cjs : {
31
- description : 'run rollup build with CommonJS format' ,
32
- script : 'rollup --config --environment FORMAT:cjs'
33
- } ,
34
21
umd : {
35
22
min : {
36
23
description : 'run the rollup build with sourcemaps' ,
37
24
script : 'rollup --config --sourcemap --environment MINIFY,FORMAT:umd'
38
25
} ,
39
26
main : {
40
- description : 'builds the cjs and umd files' ,
27
+ description : 'builds the umd files' ,
41
28
script : 'rollup --config --sourcemap --environment FORMAT:umd'
42
29
}
43
30
} ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " redux-form-doc-version-checker" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" :
5
5
" A widget to notify people if they are not reading the most recent docs." ,
6
6
"main" : " dist/doc-check.cjs.js" ,
Original file line number Diff line number Diff line change @@ -7,15 +7,11 @@ import replace from 'rollup-plugin-replace'
7
7
8
8
const minify = process . env . MINIFY
9
9
const format = process . env . FORMAT
10
- const es = format === 'es'
11
10
const umd = format === 'umd'
12
- const cjs = format === 'cjs'
13
11
14
12
let output
15
13
16
- if ( es ) {
17
- output = { file : `dist/doc-check.es.js` , format : 'es' }
18
- } else if ( umd ) {
14
+ if ( umd ) {
19
15
if ( minify ) {
20
16
output = {
21
17
file : `dist/doc-check.umd.min.js` ,
@@ -24,15 +20,13 @@ if (es) {
24
20
} else {
25
21
output = { file : `dist/doc-check.umd.js` , format : 'umd' }
26
22
}
27
- } else if ( cjs ) {
28
- output = { file : `dist/doc-check.cjs.js` , format : 'cjs' }
29
23
} else if ( format ) {
30
24
throw new Error ( `invalid format specified: "${ format } ".` )
31
25
} else {
32
26
throw new Error ( 'no format specified. --environment FORMAT:xxx' )
33
27
}
34
28
35
- const exports = es ? 'named' : 'default'
29
+ const exports = 'default'
36
30
37
31
export default {
38
32
name : 'DocChecker' ,
You can’t perform that action at this time.
0 commit comments