MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / replaceExtension

Function replaceExtension

lib/models/blueprint.js:1768–1776  ·  view source on GitHub ↗
(filePath, newExt)

Source from the content-addressed store, hash-verified

1766}
1767
1768function replaceExtension(filePath, newExt) {
1769 const { dir, name } = path.parse(filePath);
1770
1771 return path.format({
1772 dir,
1773 name,
1774 ext: newExt,
1775 });
1776}
1777
1778function replaceTypeScriptExtension(filePath) {
1779 const extensionMap = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…