mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
16 lines
474 B
JavaScript
16 lines
474 B
JavaScript
const args = process.argv.filter((value, index) => index >= 2);
|
|
const useAnalyser = args.find((value) => value === '--analyser');
|
|
const isProd = args.find((value) => value === '--production');
|
|
|
|
const rootPath = `${__dirname}/../../`;
|
|
const targetPath = isProd ? `${rootPath}lib/` : `${rootPath}examples/packages/@shopify/draggable`;
|
|
const resolveModules = ['node_modules', 'src/'];
|
|
|
|
module.exports = {
|
|
isProd,
|
|
rootPath,
|
|
targetPath,
|
|
resolveModules,
|
|
useAnalyser,
|
|
};
|