Skip to content

Commit

Permalink
Include inputFile.getArch() in CoffeeScript cache key.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jan 14, 2018
1 parent f551a56 commit 620689f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/non-core/coffeescript-compiler/package.js
Expand Up @@ -13,7 +13,7 @@ Package.describe({
summary: 'Compiler for CoffeeScript code, supporting the coffeescript package',
// This version of NPM `coffeescript` module, with _1, _2 etc.
// If you change this, make sure to also update ../coffeescript/package.js to match.
version: '2.0.3_2'
version: '2.0.3_3'
});

Npm.depends({
Expand Down
4 changes: 2 additions & 2 deletions packages/non-core/coffeescript-test-helper/package.js
@@ -1,10 +1,10 @@
Package.describe({
summary: "Used by the coffeescript package's tests",
version: "1.1.1"
version: "1.1.2"
});

Package.onUse(function (api) {
api.use('coffeescript@2.0.3_2', ['client', 'server']);
api.use('coffeescript@2.0.3_3', ['client', 'server']);
api.export('COFFEESCRIPT_EXPORTED');
api.export('COFFEESCRIPT_EXPORTED_ONE_MORE');
api.export('COFFEESCRIPT_EXPORTED_WITH_BACKTICKS');
Expand Down
1 change: 1 addition & 0 deletions packages/non-core/coffeescript/compile-coffeescript.js
Expand Up @@ -16,6 +16,7 @@ class CachedCoffeeScriptCompiler extends CachingCompiler {

getCacheKey(inputFile) {
return [
inputFile.getArch(),
inputFile.getSourceHash(),
inputFile.getDeclaredExports(),
this.coffeeScriptCompiler.getCompileOptions(inputFile),
Expand Down
4 changes: 2 additions & 2 deletions packages/non-core/coffeescript/package.js
Expand Up @@ -6,12 +6,12 @@ Package.describe({
// so bumping the version of this package will be how they get newer versions
// of `coffeescript-compiler`. If you change this, make sure to also update
// ../coffeescript-compiler/package.js to match.
version: '2.0.3_2'
version: '2.0.3_3'
});

Package.registerBuildPlugin({
name: 'compile-coffeescript',
use: ['caching-compiler@1.1.9', 'ecmascript@0.8.3', 'coffeescript-compiler@=2.0.3_2'],
use: ['caching-compiler@1.1.9', 'ecmascript@0.8.3', 'coffeescript-compiler@=2.0.3_3'],
sources: ['compile-coffeescript.js']
});

Expand Down

0 comments on commit 620689f

Please sign in to comment.