Skip to content

Commit 9bffbc3

Browse files
committed
Keep non-js config files in place
1 parent 2a77db7 commit 9bffbc3

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

lib/engines/classic/config-file-info.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ var ConfigFileInfo = ClassicFileInfo.extend({
55

66

77
init: function(options) {
8+
// sourceRoot needs to be set before the super call so that non js files stay in place
9+
options.sourceRoot = '.';
810
this._super(options);
11+
912
options.type = 'config';
1013
options.base = '.';
11-
options.sourceRoot = '.';
1214
},
1315

1416
populateCollection: function() {

test/fixtures/config/input.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ module.exports = {
1010
}
1111
},
1212
config: {
13-
'environment.js': '"ENV"'
13+
'environment.js': '"ENV"',
14+
foo: {
15+
'baz.sh': 'yolo'
16+
}
1417
},
1518
tests: {
1619
'helpers': {

test/fixtures/config/output.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = {
1919
}
2020
},
2121
config: {
22-
'environment.js': '"ENV"'
22+
'environment.js': '"ENV"',
23+
foo: {
24+
'baz.sh': 'yolo'
25+
}
2326
},
2427
tests: {
2528
'helpers': {

0 commit comments

Comments
 (0)