Skip to content

Commit

Permalink
Fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 9, 2022
1 parent 63af8a3 commit f86e440
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions products/jbrowse-desktop/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
// eslint-disable-next-line import/no-extraneous-dependencies
const { getLoader, loaderByName } = require('@craco/craco')
const webpack = require('webpack')
const path = require('path')
const cp = require('child_process')

function getWorkspaces(fromDir) {
const cwd = fromDir || process.cwd()
const workspacesStr = cp
.execSync('yarn -s workspaces info', { cwd })
.toString()
return Object.values(JSON.parse(workspacesStr)).map(e =>
path.resolve(path.join('..', '..', e.location)),
)
}

const cp = require('child_process')

Expand Down
12 changes: 12 additions & 0 deletions products/jbrowse-web/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
// eslint-disable-next-line import/no-extraneous-dependencies
const { getLoader, loaderByName } = require('@craco/craco')
const webpack = require('webpack')
const path = require('path')
const cp = require('child_process')

function getWorkspaces(fromDir) {
const cwd = fromDir || process.cwd()
const workspacesStr = cp
.execSync('yarn -s workspaces info', { cwd })
.toString()
return Object.values(JSON.parse(workspacesStr)).map(e =>
path.resolve(path.join('..', '..', e.location)),
)
}

const cp = require('child_process')

Expand Down

0 comments on commit f86e440

Please sign in to comment.