Skip to content

Commit e506857

Browse files
committed
chore: remove deprecated fs prop
1 parent 6a21c86 commit e506857

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

.sfdevrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"devDepOverrides": ["@types/node"],
23
"wireit": {
34
"compile": {
45
"clean": "if-file-deleted",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@types/graceful-fs": "^4.1.9",
5050
"@types/mime": "2.0.3",
5151
"@types/minimatch": "^5.1.2",
52+
"@types/node": "^20",
5253
"deep-equal-in-any-order": "^1.1.19",
5354
"esbuild": "^0.25.8",
5455
"eslint-plugin-sf-plugin": "^1.20.30",

test/registry/presetTesting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const registriesFromPresets = fs
2323
.filter((file) => !file.name.endsWith('CustomLabelsBeta.json'))
2424
.map((file) => ({
2525
name: file.name,
26-
registry: JSON.parse(fs.readFileSync(path.join(file.path, file.name), 'utf-8')) as MetadataRegistry,
26+
registry: JSON.parse(fs.readFileSync(path.join(file.parentPath, file.name), 'utf-8')) as MetadataRegistry,
2727
})) /*
2828
decomposedPermissionSetBeta2 has an invalid registry configured.
2929
this is because multiple children will map to the .objectSettings suffix, and currently, the registry only supports 1:1 suffix mapping

test/snapshot/helper/conversions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const resolveRelative = (parentDirs: string[]) => (subArray: string[], index: nu
123123
const getRelative = (parent: string) => (child: string) => path.relative(parent, child);
124124

125125
const isFile = (file: fs.Dirent) => file.isFile();
126-
const getFullPath = (file: fs.Dirent) => path.join(file.path, file.name);
126+
const getFullPath = (file: fs.Dirent) => path.join(file.parentPath, file.name);
127127

128128
/** dirEnts are sometimes folder, we don't want those. And we need the full paths */
129129
export const dirEntsToPaths = (dirEnts: fs.Dirent[]): string[] => dirEnts.filter(isFile).map(getFullPath);

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,13 @@
10191019
dependencies:
10201020
undici-types "~5.26.4"
10211021

1022+
"@types/node@^20":
1023+
version "20.19.11"
1024+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.11.tgz#728cab53092bd5f143beed7fbba7ba99de3c16c4"
1025+
integrity sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==
1026+
dependencies:
1027+
undici-types "~6.21.0"
1028+
10221029
"@types/normalize-package-data@^2.4.0":
10231030
version "2.4.1"
10241031
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
@@ -5840,6 +5847,11 @@ undici-types@~5.26.4:
58405847
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
58415848
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
58425849

5850+
undici-types@~6.21.0:
5851+
version "6.21.0"
5852+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
5853+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
5854+
58435855
universalify@^0.1.0:
58445856
version "0.1.2"
58455857
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"

0 commit comments

Comments
 (0)