Skip to content

Commit 0d780cc

Browse files
committed
deps: "glob" is a runtime dependency
Problem: "glob" is declared in "devDependencies", but it is used in runtime code. Solution: Install "glob" in "dependencies".
1 parent 99ea61e commit 0d780cc

File tree

6 files changed

+36
-73
lines changed

6 files changed

+36
-73
lines changed

package-lock.json

Lines changed: 26 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4281,7 +4281,7 @@
42814281
"@types/cross-spawn": "^6.0.0",
42824282
"@types/diff": "^5.0.7",
42834283
"@types/fs-extra": "^9.0.11",
4284-
"@types/glob": "^7.1.1",
4284+
"@types/glob": "^8.1.0",
42854285
"@types/js-yaml": "^4.0.5",
42864286
"@types/lodash": "^4.14.180",
42874287
"@types/markdown-it": "^13.0.2",
@@ -4320,7 +4320,6 @@
43204320
"eslint-plugin-header": "^3.1.1",
43214321
"eslint-plugin-no-null": "^1.0.2",
43224322
"file-loader": "^6.2.0",
4323-
"glob": "^10.3.10",
43244323
"husky": "^7.0.2",
43254324
"json-schema-to-typescript": "^13.1.1",
43264325
"marked": "^11.1.1",
@@ -4372,6 +4371,7 @@
43724371
"cross-spawn": "^7.0.3",
43734372
"fast-json-patch": "^3.1.1",
43744373
"fs-extra": "^10.0.1",
4374+
"glob": "^10.3.10",
43754375
"got": "^11.8.5",
43764376
"highlight.js": "^11.9.0",
43774377
"i18n-ts": "^1.0.5",

scripts/lint/testLint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
import glob from 'glob'
6+
import { glob } from 'glob'
77
import Mocha from 'mocha'
88
void (async () => {
99
try {
1010
console.log('Running linting tests...')
1111

1212
const mocha = new Mocha()
1313

14-
const testFiles = glob.sync('dist/src/testLint/**/*.test.js')
14+
const testFiles = await glob('dist/src/testLint/**/*.test.js')
1515
testFiles.forEach(file => {
1616
mocha.addFile(file)
1717
})

0 commit comments

Comments
 (0)