Skip to content

Commit 3e30abb

Browse files
committed
Fixed an issue with multiple steps.
1 parent 0fd399b commit 3e30abb

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

Diff for: compiler.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
JavascriptPipelineCompiler = new Pipeline();
2-
Plugin.registerCompiler({
3-
extensions: ['js'],
4-
}, function () {
5-
return JavascriptPipelineCompiler;
6-
});
1+
if (!this.JavascriptPipelineCompiler) {
2+
this.JavascriptPipelineCompiler = new Pipeline();
3+
Plugin.registerCompiler({
4+
extensions: ['js'],
5+
}, function () {
6+
return this.JavascriptPipelineCompiler;
7+
});
8+
}
9+
10+
JavascriptPipelineCompiler = this.JavascriptPipelineCompiler;

Diff for: package.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
Package.describe({
22
name: 'pipeline:js',
3-
version: '0.0.1',
3+
version: '0.1.0',
44
summary: 'Javascript Pipeline',
55
git: 'https://github.com/MeteorPipeline/js',
66
documentation: null
77
});
88

99
Package.onUse(function(api) {
10-
api.use('isobuild:[email protected]');
11-
api.use('pipeline:[email protected]');
10+
api.use([
11+
'pipeline:[email protected]',
12+
13+
'isobuild:[email protected]'
14+
]);
1215
api.addFiles('compiler.js');
1316
api.export('JavascriptPipelineCompiler');
1417
});

0 commit comments

Comments
 (0)