mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-15 09:11:18 +00:00
25 lines
965 B
Diff
25 lines
965 B
Diff
diff --git a/lib/utils.js b/lib/utils.js
|
|
index 479f4dde6a2edb1240c9a893c822e3d0f4014f3f..2c0fed6cd120ca2feef912880eb29a2503be30b3 100644
|
|
--- a/lib/utils.js
|
|
+++ b/lib/utils.js
|
|
@@ -39,7 +39,7 @@ exports.getProxyAgent = getProxyAgent;
|
|
exports.dequal = dequal;
|
|
const fs = require("fs");
|
|
const path_1 = require("path");
|
|
-const minimatch = require("minimatch");
|
|
+const { minimatch } = require("minimatch");
|
|
const js_yaml_1 = require("./js-yaml");
|
|
const env_1 = require("./env");
|
|
const logger_1 = require("./logger");
|
|
diff --git a/src/utils.ts b/src/utils.ts
|
|
index 0d4bd2a1163882222373ef5aef99269abadced2e..b87c10c5e37d5925860c2e99c06d913856c37647 100644
|
|
--- a/src/utils.ts
|
|
+++ b/src/utils.ts
|
|
@@ -1,6 +1,6 @@
|
|
import * as fs from 'fs';
|
|
import { extname } from 'path';
|
|
-import * as minimatch from 'minimatch';
|
|
+import { minimatch } from 'minimatch';
|
|
import { parseYaml } from './js-yaml';
|
|
import { env } from './env';
|
|
import { logger, colorize } from './logger';
|