mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
20 lines
547 B
JavaScript
20 lines
547 B
JavaScript
/* eslint-disable no-process-env */
|
|
|
|
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,
|
|
};
|
|
|
|
/* eslint-enable no-process-env */
|