mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
588a79c80c
Before this commit, we had a yarn package set up in the root directory and also in `app/assets/javascripts`. That meant two `yarn install` calls and two `node_modules` directories. This commit merges them both into the root location, and updates references to node_modules. A previous attempt can be found at https://github.com/discourse/discourse/pull/21172. This commit re-uses that script to merge the `yarn.lock` files. Co-authored-by: Jarek Radosz <jradosz@gmail.com>
41 lines
1.9 KiB
Diff
41 lines
1.9 KiB
Diff
diff --git a/node_modules/ember-this-fallback/index.js b/node_modules/ember-this-fallback/index.js
|
|
index afa73eb..168bb16 100644
|
|
--- a/node_modules/ember-this-fallback/index.js
|
|
+++ b/node_modules/ember-this-fallback/index.js
|
|
@@ -8,7 +8,7 @@ module.exports = {
|
|
|
|
setupPreprocessorRegistry(type, registry) {
|
|
if (type === 'parent') {
|
|
- const options = getOptions(findHost(this));
|
|
+ const options = getOptions(this.parent); // findHost doesn't work for us - not sure why
|
|
registry.add('htmlbars-ast-plugin', this._buildPlugin(options));
|
|
}
|
|
},
|
|
diff --git a/node_modules/ember-this-fallback/lib/helpers/deprecations.js b/node_modules/ember-this-fallback/lib/helpers/deprecations.js
|
|
index 5a00c44..993e3cf 100644
|
|
--- a/node_modules/ember-this-fallback/lib/helpers/deprecations.js
|
|
+++ b/node_modules/ember-this-fallback/lib/helpers/deprecations.js
|
|
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.deprecationOptionsFor = void 0;
|
|
const assert_1 = __importDefault(require("../types/assert"));
|
|
const CURRENT_DEPRECATIONS = [
|
|
+ [
|
|
+ 'this-property-fallback',
|
|
{
|
|
- id: 'this-property-fallback',
|
|
+ id: 'ember-this-fallback.this-property-fallback', // Updating deprecation id so we can distinguish it from Ember's
|
|
until: 'n/a',
|
|
for: 'ember-this-fallback',
|
|
url: 'https://deprecations.emberjs.com/v3.x#toc_this-property-fallback',
|
|
@@ -15,8 +17,9 @@ const CURRENT_DEPRECATIONS = [
|
|
available: '0.2.0',
|
|
},
|
|
},
|
|
+ ]
|
|
];
|
|
-const DEPRECATION_OPTIONS_MAP = new Map(CURRENT_DEPRECATIONS.map((options) => [options.id, options]));
|
|
+const DEPRECATION_OPTIONS_MAP = new Map(CURRENT_DEPRECATIONS);
|
|
function deprecationOptionsFor(id) {
|
|
const options = DEPRECATION_OPTIONS_MAP.get(id);
|
|
(0, assert_1.default)(`expected to find DeprecationOptions for id=${id}`, options);
|