Skip to content

Commit e5123d3

Browse files
authored
chore: update replace-in-file dev dependency version (#9543)
1 parent 5125df4 commit e5123d3

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"postcss-lit": "^1.2.0",
6969
"prettier": "^3.6.0",
7070
"prettier-plugin-package": "^1.4.0",
71-
"replace-in-file": "^6.3.5",
71+
"replace-in-file": "^8.3.0",
7272
"rimraf": "^6.0.1",
7373
"rollup": "^4.4.0",
7474
"stylelint": "^16.21.0",

scripts/updateVersion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import { spawn } from 'cross-spawn';
3-
import replace from 'replace-in-file';
3+
import { replaceInFile } from 'replace-in-file';
44
import lerna from '../lerna.json' with { type: 'json' };
55

66
const { version: oldVersion } = lerna;
@@ -45,7 +45,7 @@ if (!version) {
4545
async function main() {
4646
const fromRegex = new RegExp(`'${oldVersion.split('.').join('\\.')}'`, 'gu');
4747
const newVersion = `'${version.replace(/^v/u, '')}'`;
48-
const results = await replace({
48+
const results = await replaceInFile({
4949
files: ['packages/component-base/src/define.js'],
5050
from: fromRegex,
5151
to: newVersion,

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5732,7 +5732,7 @@ glob-watcher@^6.0.0:
57325732
async-done "^2.0.0"
57335733
chokidar "^3.5.3"
57345734

5735-
glob@^10.0.0, glob@^10.2.2, glob@^10.3.10:
5735+
glob@^10.0.0, glob@^10.2.2, glob@^10.3.10, glob@^10.4.2:
57365736
version "10.4.5"
57375737
resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956"
57385738
integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==
@@ -5756,7 +5756,7 @@ glob@^11.0.0, glob@^11.0.2:
57565756
package-json-from-dist "^1.0.0"
57575757
path-scurry "^2.0.0"
57585758

5759-
glob@^7.1.3, glob@^7.2.0:
5759+
glob@^7.1.3:
57605760
version "7.2.3"
57615761
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
57625762
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
@@ -9640,14 +9640,14 @@ replace-homedir@^2.0.0:
96409640
resolved "https://registry.yarnpkg.com/replace-homedir/-/replace-homedir-2.0.0.tgz#245bd9c909275e0beee75eae85bb40780cd61903"
96419641
integrity sha512-bgEuQQ/BHW0XkkJtawzrfzHFSN70f/3cNOiHa2QsYxqrjaC30X1k74FJ6xswVBP0sr0SpGIdVFuPwfrYziVeyw==
96429642

9643-
replace-in-file@^6.3.5:
9644-
version "6.3.5"
9645-
resolved "https://registry.yarnpkg.com/replace-in-file/-/replace-in-file-6.3.5.tgz#ff956b0ab5bc96613207d603d197cd209400a654"
9646-
integrity sha512-arB9d3ENdKva2fxRnSjwBEXfK1npgyci7ZZuwysgAp7ORjHSyxz6oqIjTEv8R0Ydl4Ll7uOAZXL4vbkhGIizCg==
9643+
replace-in-file@^8.3.0:
9644+
version "8.3.0"
9645+
resolved "https://registry.yarnpkg.com/replace-in-file/-/replace-in-file-8.3.0.tgz#53288f516fb8f3edc125c3af6b4b6adc2e5955bf"
9646+
integrity sha512-4VhddQiMCPIuypiwHDTM+XHjZoVu9h7ngBbSCnwGRcwdHwxltjt/m//Ep3GDwqaOx1fDSrKFQ+n7uo4uVcEz9Q==
96479647
dependencies:
9648-
chalk "^4.1.2"
9649-
glob "^7.2.0"
9650-
yargs "^17.2.1"
9648+
chalk "^5.3.0"
9649+
glob "^10.4.2"
9650+
yargs "^17.7.2"
96519651

96529652
require-directory@^2.1.1:
96539653
version "2.1.1"

0 commit comments

Comments
 (0)