draggable/scripts/build/config.ts
2023-09-22 10:43:58 -07:00

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/'];