Skip to content

Commit 4f905fe

Browse files
authored
Merge pull request #105 from ro0gr/npmignore-addon-docs-config
Stop publishing "config/addon-docs.js"
2 parents 32226f6 + 32af322 commit 4f905fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blueprints/ember-cli-addon-docs/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ module.exports = {
3939
}
4040

4141
fs.writeFileSync(configPath, configContents, 'utf-8');
42+
43+
if (fs.existsSync('.npmignore')) {
44+
this.insertIntoFile('.npmignore', '/config/addon-docs.js');
45+
}
4246

4347
const hasPlugins = this.project.addons.some(function(addon) {
4448
const isPlugin = addon.pkg.keywords.indexOf('ember-cli-addon-docs-plugin') !== -1;

0 commit comments

Comments
 (0)