From a8f17625bf69c0b2ec3da1c59a01abe0b365a797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20I=2E=20Silva?= Date: Fri, 15 Feb 2019 00:31:12 -0800 Subject: [PATCH] bump Pretender version --- index.js | 8 ++++++++ package.json | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5d1a238..0249a5f 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ 'use strict'; var path = require('path'); var Funnel = require('broccoli-funnel'); +var concat = require('broccoli-concat'); var MergeTrees = require('broccoli-merge-trees'); module.exports = { @@ -25,6 +26,13 @@ module.exports = { destDir: '/pretender', }); + pretenderTree = concat(pretenderTree, { + outputFile: '/pretender/pretender.js', + footer: 'define(\'pretender\', [], function() {' + + ' return self.Pretender;' + + '});', + }); + var routeRecognizerFilename = path.basename(this._routeRecognizerPath); var routeRecognizerTree = new Funnel(path.dirname(this._routeRecognizerPath), { files: [routeRecognizerFilename, routeRecognizerFilename + '.map'], diff --git a/package.json b/package.json index b9814a8..6abe581 100644 --- a/package.json +++ b/package.json @@ -63,11 +63,12 @@ }, "dependencies": { "abortcontroller-polyfill": "^1.1.9", + "broccoli-concat": "^3.7.3", "broccoli-funnel": "^2.0.1", "broccoli-merge-trees": "^3.0.0", "ember-cli-babel": "^6.6.0", "fake-xml-http-request": "^2.0.0", - "pretender": "^2.1.0", + "pretender": "^3.0.0", "route-recognizer": "^0.3.3", "whatwg-fetch": "^3.0.0" }