Skip to content

Commit a8f184c

Browse files
committed
Fix glob version for node 14
1 parent d189657 commit a8f184c

File tree

3 files changed

+33
-36
lines changed

3 files changed

+33
-36
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"@jest/globals": "^29.5.0",
6464
"@release-it-plugins/lerna-changelog": "^5.0.0",
6565
"@tsconfig/node12": "^1.0.11",
66+
"@types/glob": "^8.1.0",
6667
"@types/jscodeshift": "^0.11.6",
6768
"@typescript-eslint/eslint-plugin": "^5.59.1",
6869
"@typescript-eslint/parser": "^5.59.1",
@@ -74,7 +75,7 @@
7475
"eslint-plugin-node": "^11.1.0",
7576
"eslint-plugin-unicorn": "^46.0.0",
7677
"execa": "^5.1.1",
77-
"glob": "^10.2.2",
78+
"glob": "^8.1.0",
7879
"jest": "^29.5.0",
7980
"prettier": "^2.8.8",
8081
"release-it": "^15.10.1",

transforms/ember-object/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, test } from '@jest/globals';
22
import { setTelemetry } from 'ember-codemods-telemetry-helpers';
3-
import { globSync } from 'glob';
3+
import { GlobSync } from 'glob';
44
import { applyTransform } from 'jscodeshift/dist/testUtils';
55
import { existsSync, readFileSync } from 'node:fs';
66
import path from 'node:path';
@@ -9,7 +9,7 @@ import { assert } from '../helpers/util/types';
99
import mockTelemetryData from './__testfixtures__/-mock-telemetry.json';
1010

1111
const fixtureDir = 'transforms/ember-object/__testfixtures__/';
12-
const testFiles = globSync(`${fixtureDir}**/*.input.js`);
12+
const testFiles = new GlobSync(`${fixtureDir}**/*.input.js`).found;
1313

1414
const mockTelemetry: Record<string, unknown> = {};
1515
for (const testFile of testFiles) {

yarn.lock

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,14 @@
16761676
dependencies:
16771677
"@types/ms" "*"
16781678

1679+
"@types/glob@^8.1.0":
1680+
version "8.1.0"
1681+
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-8.1.0.tgz#b63e70155391b0584dce44e7ea25190bbc38f2fc"
1682+
integrity sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==
1683+
dependencies:
1684+
"@types/minimatch" "^5.1.2"
1685+
"@types/node" "*"
1686+
16791687
"@types/graceful-fs@^4.1.3":
16801688
version "4.1.6"
16811689
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.6.tgz#e14b2576a1c25026b7f02ede1de3b84c3a1efeae"
@@ -1732,6 +1740,11 @@
17321740
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
17331741
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
17341742

1743+
"@types/minimatch@^5.1.2":
1744+
version "5.1.2"
1745+
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca"
1746+
integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==
1747+
17351748
"@types/ms@*":
17361749
version "0.7.31"
17371750
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
@@ -3957,15 +3970,16 @@ glob@^7.0.0, glob@^7.1.3, glob@^7.1.4:
39573970
once "^1.3.0"
39583971
path-is-absolute "^1.0.0"
39593972

3960-
glob@^9.3.5:
3961-
version "9.3.5"
3962-
resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.5.tgz#ca2ed8ca452781a3009685607fdf025a899dfe21"
3963-
integrity sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==
3973+
glob@^8.1.0:
3974+
version "8.1.0"
3975+
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
3976+
integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==
39643977
dependencies:
39653978
fs.realpath "^1.0.0"
3966-
minimatch "^8.0.2"
3967-
minipass "^4.2.4"
3968-
path-scurry "^1.6.1"
3979+
inflight "^1.0.4"
3980+
inherits "2"
3981+
minimatch "^5.0.1"
3982+
once "^1.3.0"
39693983

39703984
global-dirs@^3.0.0:
39713985
version "3.0.1"
@@ -5566,11 +5580,6 @@ lru-cache@^6.0.0:
55665580
dependencies:
55675581
yallist "^4.0.0"
55685582

5569-
lru-cache@^9.0.0:
5570-
version "9.1.1"
5571-
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-9.1.1.tgz#c58a93de58630b688de39ad04ef02ef26f1902f1"
5572-
integrity sha512-65/Jky17UwSb0BuB9V+MyDpsOtXKmYwzhyl+cOa9XUiI4uV2Ouy/2voFP3+al0BjZbJgMBD8FojMpAf+Z+qn4A==
5573-
55745583
macos-release@^3.1.0:
55755584
version "3.1.0"
55765585
resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-3.1.0.tgz#6165bb0736ae567ed6649e36ce6a24d87cbb7aca"
@@ -5951,20 +5960,20 @@ minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatc
59515960
dependencies:
59525961
brace-expansion "^1.1.7"
59535962

5963+
minimatch@^5.0.1:
5964+
version "5.1.6"
5965+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
5966+
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
5967+
dependencies:
5968+
brace-expansion "^2.0.1"
5969+
59545970
minimatch@^7.4.6:
59555971
version "7.4.6"
59565972
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.6.tgz#845d6f254d8f4a5e4fd6baf44d5f10c8448365fb"
59575973
integrity sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==
59585974
dependencies:
59595975
brace-expansion "^2.0.1"
59605976

5961-
minimatch@^8.0.2:
5962-
version "8.0.4"
5963-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-8.0.4.tgz#847c1b25c014d4e9a7f68aaf63dedd668a626229"
5964-
integrity sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==
5965-
dependencies:
5966-
brace-expansion "^2.0.1"
5967-
59685977
minimist@^1.2.0, minimist@^1.2.6:
59695978
version "1.2.8"
59705979
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
@@ -6016,16 +6025,11 @@ minipass@^3.0.0, minipass@^3.1.0, minipass@^3.1.1, minipass@^3.1.3:
60166025
dependencies:
60176026
yallist "^4.0.0"
60186027

6019-
minipass@^4.0.0, minipass@^4.2.4:
6028+
minipass@^4.0.0:
60206029
version "4.2.8"
60216030
resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.8.tgz#f0010f64393ecfc1d1ccb5f582bcaf45f48e1a3a"
60226031
integrity sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==
60236032

6024-
minipass@^5.0.0:
6025-
version "5.0.0"
6026-
resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d"
6027-
integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==
6028-
60296033
minizlib@^2.0.0, minizlib@^2.1.1:
60306034
version "2.1.2"
60316035
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931"
@@ -6582,14 +6586,6 @@ path-root@^0.1.1:
65826586
dependencies:
65836587
path-root-regex "^0.1.0"
65846588

6585-
path-scurry@^1.6.1:
6586-
version "1.7.0"
6587-
resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.7.0.tgz#99c741a2cfbce782294a39994d63748b5a24f6db"
6588-
integrity sha512-UkZUeDjczjYRE495+9thsgcVgsaCPkaw80slmfVFgllxY+IO8ubTsOpFVjDPROBqJdHfVPUFRHPBV/WciOVfWg==
6589-
dependencies:
6590-
lru-cache "^9.0.0"
6591-
minipass "^5.0.0"
6592-
65936589
path-type@^4.0.0:
65946590
version "4.0.0"
65956591
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"

0 commit comments

Comments
 (0)