diff --git a/lib/commands/reset.js b/lib/commands/reset.js index 83ce3b08..892c0f64 100644 --- a/lib/commands/reset.js +++ b/lib/commands/reset.js @@ -10,7 +10,6 @@ module.exports = { let ResetTask = require('../tasks/reset'); let resetTask = new ResetTask({ - ui: this.ui, project: this.project, config, }); diff --git a/lib/tasks/reset.js b/lib/tasks/reset.js index 9d867b3b..d4529540 100644 --- a/lib/tasks/reset.js +++ b/lib/tasks/reset.js @@ -1,11 +1,16 @@ 'use strict'; -const CoreObject = require('core-object'); const debug = require('debug')('ember-try:commands:reset'); const ScenarioManager = require('../utils/scenario-manager'); const DependencyManagerAdapterFactory = require('./../utils/dependency-manager-adapter-factory'); -module.exports = CoreObject.extend({ +module.exports = class ResetTask { + constructor(options) { + this.config = options.config; + this.dependencyManagerAdapters = options.dependencyManagerAdapters; + this.project = options.project; + } + run() { let dependencyAdapters = this.dependencyManagerAdapters || @@ -17,5 +22,5 @@ module.exports = CoreObject.extend({ }), ); return new ScenarioManager({ dependencyManagerAdapters: dependencyAdapters }).cleanup(); - }, -}); + } +}; diff --git a/package.json b/package.json index be7e188c..377d74d6 100644 --- a/package.json +++ b/package.json @@ -87,5 +87,6 @@ "npm": { "publish": false } - } + }, + "packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab" }