Skip to content

Commit ae65238

Browse files
committed
build cleanup and output declarations
1 parent 7214d35 commit ae65238

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

ember-cli-build.js

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,19 @@ module.exports = function (app) {
5656
output: [{
5757
file: 'es6/backburner.js',
5858
format: 'es',
59-
sourcemap: true
60-
}, {
59+
sourcemap: true,
60+
exports: 'named'
61+
}],
62+
plugins: [
63+
loadWithInlineMap()
64+
]
65+
}
66+
});
67+
68+
const amdNamed = new Rollup(compiled, {
69+
rollup: {
70+
input: 'lib/index.js',
71+
output: [{
6172
file: 'named-amd/backburner.js',
6273
exports: 'named',
6374
format: 'amd',
@@ -81,22 +92,24 @@ module.exports = function (app) {
8192
rollup: {
8293
input: 'tests/index.js',
8394
external: ['backburner'],
84-
plugins: [
85-
loadWithInlineMap(),
86-
buble()
87-
],
8895
output: [{
8996
file: 'named-amd/tests.js',
9097
format: 'amd',
9198
amd: { id: 'backburner-tests' },
92-
sourcemap: true
93-
}]
99+
sourcemap: true,
100+
exports: 'named'
101+
}],
102+
plugins: [
103+
loadWithInlineMap(),
104+
buble()
105+
]
94106
}
95107
});
96108

97109
return new MergeTrees([
98110
backburner,
99111
compiledDeclarations,
112+
amdNamed,
100113
amdTests,
101114
qunit,
102115
loader,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"backburner": ["lib/index.ts"]
1313
}
1414
},
15-
"file": [
15+
"files": [
1616
"lib/index.ts",
1717
"tests/index.ts"
1818
]

0 commit comments

Comments
 (0)