Skip to content

Build failure with scoped package addon #46

@mriska

Description

@mriska

Hi, I was trying out this addon in one of our internal addons. Our addon is hosted privately in an organization scope on npmjs and the name in package.json is in the form @organization/package-name.

When running ember serve I got the following error message:

› ember s
Livereload server on http://localhost:7020
The Broccoli Plugin: [BroccoliMergeTrees] failed with:
Error: ENOENT: no such file or directory, open '/Users/xxx/work/package-name/tmp/docs_generator-output_path-Krhjlfrc.tmp/docs/project-versions/@organization/package-name-0.5.1+344612b9.json'
  at Object.fs.openSync (fs.js:646:18)
  at Object.fs.writeFileSync (fs.js:1291:33)
  at Object.writeFileSync (/Users/xxx/work/package-name/node_modules/ember-cli-addon-docs/node_modules/jsonfile/index.js:117:13)
  at DocsGenerator.build (/Users/xxx/work/package-name/node_modules/ember-cli-addon-docs/lib/broccoli/docs-generator.js:39:8)

And when checking the build output folder docs_generator-output_path-Krhjlfrc.tmp/docs I could see that the folders project-versions and projects were empty.

When temporary removing the scope from the package name in package.json the project builds as expected.

Should the folder name maybe be taken from the name specified in index.js instead?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions