-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
548 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,8 @@ | ||
import globals from '@jbrowse/core/ReExports/list' | ||
import { createRollupConfig } from '@jbrowse/development-tools' | ||
|
||
function stringToBoolean(string) { | ||
if (string === undefined) { | ||
return undefined | ||
} | ||
if (string === 'true') { | ||
return true | ||
} | ||
if (string === 'false') { | ||
return false | ||
} | ||
throw new Error('unknown boolean string') | ||
} | ||
|
||
const includeUMD = stringToBoolean(process.env.JB_UMD) | ||
const includeCJS = stringToBoolean(process.env.JB_CJS) | ||
const includeESMBundle = stringToBoolean(process.env.JB_ESM_BUNDLE) | ||
const includeNPM = stringToBoolean(process.env.JB_NPM) | ||
|
||
export default createRollupConfig(globals.default, { | ||
includeUMD, | ||
includeCJS, | ||
includeESMBundle, | ||
includeNPM, | ||
require('ts-node').register({ | ||
compilerOptions: { | ||
module: 'CommonJS', | ||
}, | ||
// and other tsconfig.json options as you like | ||
}) | ||
|
||
module.exports = require('./rollup.config.ts') |
Oops, something went wrong.