File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 29
29
"_graphviz" : " madge src --dot > structure.gv" ,
30
30
"mortero" : " mortero -Ddist -spublic -X{_base,lib} -ecss.less" ,
31
31
"watch" : " npm run mortero -- -w" ,
32
- "build" : " npm run mortero -- -f _NODE_ENV=production " ,
32
+ "build" : " npm run mortero --" ,
33
33
"pretest" : " npm run lint && npm run build -- -ymain" ,
34
34
"copy:vendor" : " concat -o dist/vendor.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-browser-umd.min.js" ,
35
+ "copy:bundle" : " concat -o dist/bundle.js dist/vendor.js dist/main.iife.js" ,
35
36
"copy:wargs" : " concat -o dist/wargs.min.js node_modules/wargs/dist/wargs.min.js" ,
36
- "postbuild" : " echo 'module.exports = require(\" ./main.cjs.js\" ).default;' > dist/index.js" ,
37
+ "entry:cjs" : " echo 'module.exports = require(\" ./main.cjs.js\" ).default;' > dist/index.js" ,
38
+ "prepublishOnly" : " npm run build -- -f" ,
39
+ "postbuild" : " npm run copy:bundle && npm run entry:cjs" ,
37
40
"prebuild" : " mkdir -p dist && npm run copy:vendor && npm run copy:wargs" ,
38
41
"codecov" : " codecov --file=coverage/lcov.info -e TRAVIS_NODE_VERSION"
39
42
},
You can’t perform that action at this time.
0 commit comments