How to use the @spotify/web-scripts-utils.getConsumingRoot function in @spotify/web-scripts-utils

To help you get started, we’ve selected a few @spotify/web-scripts-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spotify / web-scripts / packages / web-scripts / src / Paths.ts View on Github external
import { join } from 'path';
import { getConsumingRoot } from '@spotify/web-scripts-utils';

// The ROOT folder of the consuming package, aka where the user is using this
// package from.
export const CONSUMING_ROOT = getConsumingRoot();

// This tool's ROOT folder.
export const THIS_ROOT = join(__dirname, '..');

export const CONFIG_FOLDER = join(THIS_ROOT, 'config');
export const ESLINT_CONFIG = join(CONFIG_FOLDER, 'eslintrc.js');
export const PRETTIER_CONFIG = join(CONFIG_FOLDER, 'prettier.config.js');
export const TSCONFIG = join(CONFIG_FOLDER, 'tsconfig.json');
export const JEST_CONFIG = join(CONFIG_FOLDER, 'jest.config.js');
export const COMMITLINT_CONIFG = join(CONFIG_FOLDER, 'commitlint.config.js');
export const LINT_STAGED_CONFIG = join(CONFIG_FOLDER, 'lint-staged.config.js');

@spotify/web-scripts-utils

Private package which contains re-used utils within web-scripts projects

Apache-2.0
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis

Similar packages