Skip to content

Commit

Permalink
feat: use @eggjs/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 10, 2024
1 parent 08d6564 commit 1b1a81e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/format_options.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const debug = require('util').debuglog('mm');
const path = require('path');
const mm = require('mm');
const utils = require('egg-utils');
const utils = require('@eggjs/utils');

/**
* format the options
* @param {Objct} options - options
* @param {Object} options - options
* @return {Object} options
*/
module.exports = function formatOptions(options) {
Expand All @@ -29,7 +29,7 @@ module.exports = function formatOptions(options) {
// test for framework
if (framework === true) {
framework = process.cwd();
// diable plugin test when framwork test
// disable plugin test when framework test
options.plugin = false;
} else {
// it will throw when framework is not found
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"ci": "npm run lint && npm run tsd && npm run cov"
},
"dependencies": {
"@eggjs/utils": "^4.0.2",
"@types/supertest": "^2.0.7",
"await-event": "^2.1.0",
"co": "^4.6.0",
"coffee": "^5.2.1",
"detect-port": "^2.0.1",
"egg-logger": "^3.5.0",
"egg-utils": "^2.4.1",
"extend2": "^1.0.0",
"get-ready": "^3.1.0",
"globby": "^11.1.0",
Expand Down

0 comments on commit 1b1a81e

Please sign in to comment.