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