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

Function removeAddonPath

tests/acceptance/in-option-generate-test.js:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 });
35
36 function removeAddonPath() {
37 let packageJsonPath = path.join(process.cwd(), 'package.json');
38 let packageJson = fs.readJsonSync(packageJsonPath);
39
40 delete packageJson['ember-addon'].paths;
41
42 return fs.writeJsonSync(packageJsonPath, packageJson);
43 }
44
45 it('generate blueprint foo using lib', async function () {
46 // build an app with an in-repo addon in a non-standard path

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…