Skip to content

Commit

Permalink
fix(scripts): replace printf with process.stderr.write (#37841)
Browse files Browse the repository at this point in the history
* fix(scripts): replace `printf` with `console.warn()`

`printf` is not available on Windows.

* fix(scripts): write info messages to stderr
  • Loading branch information
caugner authored Jan 28, 2025
1 parent e70e952 commit 1c4e5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"type": "module",
"scripts": {
"info:deprecated": "printf '\\n🗑️ This command is deprecated, and will be removed soon.\\n\\n'",
"info:rari": "printf '\\n🐥 This command is now using rari: https://github.com/mdn/rari\\n🐞 Please report any issues here: https://github.com/mdn/rari/issues/new?template=bug.yml\\n\\n'",
"info:deprecated": "node -e \"process.stderr.write('\\n🗑️ This command is deprecated, and will be removed soon.\\n\\n')\"",
"info:rari": "node -e \"process.stderr.write('\\n🐥 This command is now using rari: https://github.com/mdn/rari\\n🐞 Please report any issues here: https://github.com/mdn/rari/issues/new?template=bug.yml\\n\\n')\"",
"postinstall": "node scripts/update-history.js",
"build": "yarn -s info:rari && env-cmd --silent cross-env CONTENT_ROOT=files BUILD_OUT_ROOT=build rari-build",
"build:legacy": "yarn -s info:deprecated && env-cmd --silent cross-env CONTENT_ROOT=files BUILD_OUT_ROOT=build yari-build",
Expand Down

0 comments on commit 1c4e5da

Please sign in to comment.