fix(swagger-ui-react): fix build scripts and allow releasing (#9191)
Refs https://github.com/swagger-api/swagger-ui/releases/tag/v5.6.0
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
module.exports = {
|
||||
"env": {
|
||||
"commonjs": {
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"debug": false,
|
||||
"modules": "commonjs",
|
||||
"loose": true,
|
||||
"targets": "maintained node versions",
|
||||
"forceAllTransforms": false,
|
||||
"ignoreBrowserslistConfig": true,
|
||||
}
|
||||
],
|
||||
"@babel/preset-react",
|
||||
],
|
||||
},
|
||||
"esm": {
|
||||
"presets": [
|
||||
[
|
||||
|
||||
@@ -25,7 +25,7 @@ node create-manifest.js > ../dist/package.json
|
||||
|
||||
# Transpile our top-level component
|
||||
../../../node_modules/.bin/cross-env BABEL_ENV=commonjs ../../../node_modules/.bin/babel --config-file ../../../babel.config.js ../index.jsx > ../dist/index.cjs
|
||||
../../../node_modules/.bin/cross-env BABEL_ENV=es ../../../node_modules/.bin/babel --config-file ../../../babel.config.js ../index.jsx > ../dist/index.mjs
|
||||
../../../node_modules/.bin/cross-env BABEL_ENV=esm ../../../node_modules/.bin/babel --config-file ../../../babel.config.js ../index.jsx > ../dist/index.mjs
|
||||
|
||||
# Copy our README into the dist folder for npm
|
||||
cp ../README.md ../dist
|
||||
|
||||
Reference in New Issue
Block a user