File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
flavors/swagger-ui-react/release Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ mkdir -p ../dist
1010
1111# Copy UI's dist files to our directory
1212cp ../../../dist/swagger-ui.js ../dist
13+ cp ../../../dist/swagger-ui-es-bundle.js ../dist
1314cp ../../../dist/swagger-ui.css ../dist
1415
1516# Create a releasable package manifest
1617node create-manifest.js > ../dist/package.json
1718
1819# Transpile our top-level component
19- ../../../node_modules/.bin/babel --config-file ../../../babel.config.json ../index.js > ../dist/index.js
20+ ../../../node_modules/.bin/cross-env BABEL_ENV=commonjs ../../../node_modules/.bin/babel --config-file ../../../babel.config.js ../index.js > ../dist/commonjs.js
21+ ../../../node_modules/.bin/cross-env BABEL_ENV=es ../../../node_modules/.bin/babel --config-file ../../../babel.config.js ../index.js > ../dist/index.js
2022
2123# Copy our README into the dist folder for npm
2224cp ../README.md ../dist
Original file line number Diff line number Diff line change 2626 "$remove" : true
2727 },
2828 "name" : " swagger-ui-react" ,
29- "main" : " index.js" ,
29+ "main" : " commonjs.js" ,
30+ "module" : " index.js" ,
3031 "repository" :
" [email protected] :swagger-api/swagger-ui.git" ,
3132 "contributors" : [
3233 " (in alphabetical order)" ,
You can’t perform that action at this time.
0 commit comments