Skip to content

Commit

Permalink
Patch to work with NPM 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Nov 2, 2015
1 parent 7bf3d5c commit 64a9c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/* jshint node: true */
'use strict';
var Funnel = require('broccoli-funnel');
var resolve = require('resolve');
var path = require('path');

module.exports = {
name: 'ember-content-kit',
treeForVendor: function() {
var files = new Funnel(__dirname + '/node_modules/content-kit-editor/dist/', {
var mainPath = resolve.sync('content-kit-editor');
var mainDir = path.dirname(mainPath);
var files = new Funnel(mainDir + '/../../', {
files: [
'css/content-kit-editor.css',
'global/content-kit-editor.js',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"content-kit-editor": "^0.5.0-beta.1",
"ember-cli-babel": "^5.1.3",
"ember-cli-htmlbars": "^1.0.0",
"ember-wormhole": "^0.3.4"
"ember-wormhole": "^0.3.4",
"resolve": "^1.1.6"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down

0 comments on commit 64a9c0e

Please sign in to comment.