Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Preserve folder structure during build #719

Merged
merged 1 commit into from
Jul 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const chalk = require('chalk')
const { flowRight: compose } = require('lodash')
const readline = require('readline-sync')
const semver = require('semver')
const glob = require('glob')
const { pascalCase } = require('change-case')

const BIN = './node_modules/.bin'
Expand Down Expand Up @@ -86,14 +85,12 @@ try {

log('Compiling source files...')

const sourceFiles = glob.sync(`${sourceDir}/**/*.js`, {
ignore: `${sourceDir}/node_modules/**/*.js`,
})

exec(
'cross-env NODE_ENV=cjs ' +
`${path.resolve(BIN)}/babel ${sourceFiles.join(' ')} ` +
`--out-dir ${path.resolve(outDir)} --ignore="**/__tests__/**"`
`${path.resolve(BIN)}/babel ${sourceDir} ` +
`--out-dir ${path.resolve(
outDir
)} --ignore="**/__tests__/**,**/node_modules/**"`
)

log('Copying additional project files...')
Expand Down