MCPcopy Create free account
hub / github.com/MarsWang42/Awel / getPluginPath

Function getPluginPath

packages/cli/src/babel-setup.ts:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16];
17
18function getPluginPath(): string {
19 // babel-plugin-awel-source.cjs lives at the root of the cli package,
20 // which is one level up from dist/ (where this compiled file lives).
21 return join(__dirname, '..', '..', 'babel-plugin-awel-source.cjs');
22}
23
24function hasPackageJsonBabelKey(projectCwd: string): boolean {
25 const pkgPath = join(projectCwd, 'package.json');

Callers 2

createBabelConfigFunction · 0.85
ensureBabelPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected