-
Notifications
You must be signed in to change notification settings - Fork 133
fix: replace deprecated node FS prop W-19160014 #1607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"devDepOverrides": ["mocha"], | ||
"wireit": { | ||
"compile": { | ||
"clean": "if-file-deleted", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ | |
"devDependencies": { | ||
"@jsforce/jsforce-node": "^3.10.3", | ||
"@salesforce/cli-plugins-testkit": "^5.3.39", | ||
"@salesforce/dev-scripts": "^11.0.2", | ||
"@salesforce/dev-scripts": "^11.0.3", | ||
"@types/deep-equal-in-any-order": "^1.0.1", | ||
"@types/fast-levenshtein": "^0.0.4", | ||
"@types/graceful-fs": "^4.1.9", | ||
|
@@ -52,6 +52,7 @@ | |
"deep-equal-in-any-order": "^1.1.19", | ||
"esbuild": "^0.25.8", | ||
"eslint-plugin-sf-plugin": "^1.20.30", | ||
"mocha": "^11.7.1", | ||
"mocha-junit-reporter": "^1.23.3", | ||
"mocha-snap": "^5.0.0", | ||
"ts-morph": "^24.0.0", | ||
|
@@ -209,5 +210,8 @@ | |
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"resolutions": { | ||
"@types/node": "18.19.123" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we bumped these types in dev-script: forcedotcom/dev-scripts#388 but there's another |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ const registriesFromPresets = fs | |
.filter((file) => !file.name.endsWith('CustomLabelsBeta.json')) | ||
.map((file) => ({ | ||
name: file.name, | ||
registry: JSON.parse(fs.readFileSync(path.join(file.path, file.name), 'utf-8')) as MetadataRegistry, | ||
registry: JSON.parse(fs.readFileSync(path.join(file.parentPath, file.name), 'utf-8')) as MetadataRegistry, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the previous
|
||
})) /* | ||
decomposedPermissionSetBeta2 has an invalid registry configured. | ||
this is because multiple children will map to the .objectSettings suffix, and currently, the registry only supports 1:1 suffix mapping | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mocha v10 has a bug when loading TS files via a node loader:
mochajs/mocha#5314
after fixing the types in SDR we still get those wrong warnings:

this change overrides the version of mocha provided by dev-scripts so we can use mocha v11 here, see:
https://github.com/forcedotcom/dev-scripts/?tab=readme-ov-file#config-file-notes
related:
oclif/core#1416