Skip to content

Commit

Permalink
Remove use of core-object
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Dec 10, 2024
1 parent 1818a7e commit 4f97e8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/commands/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
let ResetTask = require('../tasks/reset');

let resetTask = new ResetTask({
ui: this.ui,
project: this.project,
config,
});
Expand Down
13 changes: 9 additions & 4 deletions lib/tasks/reset.js
Original file line number Diff line number Diff line change
@@ -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 ||
Expand All @@ -17,5 +22,5 @@ module.exports = CoreObject.extend({
}),
);
return new ScenarioManager({ dependencyManagerAdapters: dependencyAdapters }).cleanup();
},
});
}
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@
"npm": {
"publish": false
}
}
},
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab"
}

0 comments on commit 4f97e8e

Please sign in to comment.